[Openmp-dev] OpenMP support in clang compiler
Joachim Protze via Openmp-dev
openmp-dev at lists.llvm.org
Tue May 1 12:33:00 PDT 2018
Hi all,
I wonder about the reason, that clang sets the _OPENMP macro to 201107
when compiling with -fopenmp flag. I also found the flag
-fopenmp-version=45 which changes the value of the macro to 201511.
Unfortunately, I couldn't find information on this flag, especially
whether this flag has other effects for the compiler.
Thanks,
Joachim
PS: I used this code for testing:
#include "stdio.h"
int main(){
printf("%i\n", _OPENMP);
}
More information about the Openmp-dev
mailing list