Carpet dev fails to compile without OpenMP

Issue #795 closed
Tanja Bode created an issue

Compilation errors out in SetupGH.cc on line 359 due to the call to omp_get_thread_num() function without OpenMP.

Keyword:

Comments (4)

  1. Roland Haas
    • removed 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.

  2. Erik Schnetter
    • 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.

  3. Log in to comment