Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 426
    • Issues 426
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #735
Closed
Open
Issue created Feb 16, 2018 by Admin@OpenFOAM-adminMaintainer

snappyHexMesh openmp compilation error for linux64IccKNL and INTELMPI targets

The $WM_PROJECT_DIR/wmake/rules/linux64IccKNL/openmp macro is not working for snappyHexMesh. The Intel compiler outputs the following error regarding openmp library calls:

/opt/app/openfoam/ThirdParty-v1712-intelmpi-knl/platforms/linux64IccKNLDPInt32/lib/libkahip.so: undefined reference to omp_get_max_threads

/opt/app/openfoam/ThirdParty-v1712-intelmpi-knl/platforms/linux64IccKNLDPInt32/lib/libkahip.so: undefined reference to omp_get_thread_num

Intel compiler: icpc --version icpc (ICC) 18.0.0 20170811 Copyright (C) 1985-2017 Intel Corporation. All rights reserved.

$WM_PROJECT_DIR/etc/bashrc was configured with the following modified values:

export WM_PROJECT_VERSION=v1712-intelmpi-knl

export WM_COMPILER=IccKNL

export WM_MPLIB=INTELMPI

As a workaround, the -qopenmp compiling option was added to the CC variable line in $WM_PROJECT_DIR/wmake/rules/linux64IccKNL/c++

CC = icpc -std=c++11 -xmic-avx512 -qopenmp -fp-trap=common -fp-model precise -fp-speculation=safe

OpenFOAM is being compiled now without errors.

bashrc c++

## Reattaching the author to the issue ticket: @braulhiu ##

Edited Dec 11, 2019 by Kutalmış Berçin
Assignee
Assign to
Time tracking