- removed comment
Carpet dev fails to compile without OpenMP
Issue #795
resolved
Compilation errors out in SetupGH.cc on line 359 due to the call to omp_get_thread_num() function without OpenMP.
Keyword:
Comments (3)
-
repo owner -
- removed comment
This patch is fine (if it builds and works).
An alternative implementation would be an #ifdef _OPENMP around the call to set the CPU affinity, and replacing the thread number with 0 in the #else branch.
-
repo owner - changed status to resolved
- removed comment
applied the patches.
- Log in to comment
Attached please find my current best guess for a fix. They _should_ work but I am still testing them, and after the last two try-and-revert cycles I wanted to be a bit cautious.