-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
On supercomputers it is common for compiler paths to be set automatically when modules are loaded. They are usually set to an absolute path in case there are multiple versions of the same compiler installed.
The Makefile does not take this into consideration when deciding which flags to use:
Lines 4 to 10 in 9425386
| ifeq ($(CXX),icpc) | |
| CXX_FLAGS += -qopenmp -xhost | |
| else | |
| ifeq ($(CXX),g++) | |
| CXX_FLAGS += -fopenmp -march=native | |
| else | |
| ifeq ($(CXX),clang++) |
as a result OpenMP flags are not added. A similar problem would occur if the compiler was set to a specific version (e.g. g++-13). The Makefile should probably use $(findstring find,in) instead to avoid such errors
Metadata
Metadata
Assignees
Labels
No labels