Skip to content

Using the OpenMP library #246

@tkoskela

Description

@tkoskela

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

  1. Using a preprocessor directive to only compile the module when compiling with -fopenmp
  2. Creating a dummy omp_lib.mod that would get included when compiling without -fopenmp. For example https://people.sc.fsu.edu/~jburkardt/f77_src/openmp_stubs/openmp_stubs.html
  3. Not calling omp_get_max_threads, but using the value of the environment variable OMP_NUM_THREADS instead

Metadata

Metadata

Assignees

Labels

area: main-sourceRelating to the src/ directory (main Conquest source code)improves: stabilityFix or enhance issues with stability or robustnesstime: hourstype: questionIssue to be discussed by developers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions