Add autoconf macro to test for OpenMP collapse statement

Create issue
Issue #865 closed
Erik Schnetter created an issue


Comments (5)

  1. Erik Schnetter reporter
    • removed comment

    It turns out that it would be difficult to create an actual autoconf test, since the symptoms are bad behaviour at run time. Instead, we should check the compiler vendor or version

    I checked, and #defining collapse(N) should work fine.

  2. Roland Haas
    • changed status to open
    • removed comment

    Patch looks ok. One comment: maybe we want to add a define for COLLAPSE (uppercase) as well as collapse for the Fortran case to provide some case insensitivity (assuming that no one spells collapse as "CoLllaSE" in Fortran even though they migh).

  3. Log in to comment