-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Labels
area: main-sourceRelating to the src/ directory (main Conquest source code)Relating to the src/ directory (main Conquest source code)improves: stabilityFix or enhance issues with stability or robustnessFix or enhance issues with stability or robustnesstime: hourstype: questionIssue to be discussed by developersIssue to be discussed by developers
Description
In order to write the number of threads being used into the output file, I have to call omp_get_max_threads from the omp library. I've put the call in a separate module. However, compiling the module will fail if -fopenmp is not included in compiler flags because it won't be able to use omp_lib. We discussed a few options for making this work flexibly
- Using a preprocessor directive to only compile the module when compiling with
-fopenmp - Creating a dummy
omp_lib.modthat would get included when compiling without-fopenmp. For example https://people.sc.fsu.edu/~jburkardt/f77_src/openmp_stubs/openmp_stubs.html - Not calling
omp_get_max_threads, but using the value of the environment variableOMP_NUM_THREADSinstead
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: main-sourceRelating to the src/ directory (main Conquest source code)Relating to the src/ directory (main Conquest source code)improves: stabilityFix or enhance issues with stability or robustnessFix or enhance issues with stability or robustnesstime: hourstype: questionIssue to be discussed by developersIssue to be discussed by developers