Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Coreneuron doesn't build properly with AppleClang and libomp (via brew) on OSX #817

Open
pramodk opened this issue May 12, 2022 · 0 comments

Comments

@pramodk
Copy link
Collaborator

pramodk commented May 12, 2022

Describe the issue

If we install OpenMP runtime via brew and try to build CoreNEURON with AppleClang then building as well as running tests fail.

To Reproduce

brew install libomp

# cd to build dir
cmake ..
make -j

Consolidate compiler generated dependencies of target corenrn_mpi
[ 31%] Building CXX object coreneuron/CMakeFiles/corenrn_mpi.dir/mpi/lib/nrnmpi.cpp.o
/Users/kumbhar/workarena/repos/bbp/coreneuron/coreneuron/mpi/lib/nrnmpi.cpp:18:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^~~~~~~

Expected behavior

Build should be successful with or without libomp.

System (please complete the following information)

  • OS: Mac OS
  • Compiler: AppleClang

Additional context

  • See the BBP slack discussion
  • AppleClang never ships OpenMP. Recently MacOS CI images on Azure & GitHub are coming with libomp and that's when we are seeing the issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant