so here is the problem, newest Xcode 5.0 uses Clang as default C/C++ compiler, so I went to the makefile of “cudaOpenMP” (CUDA sample) to see how OpenMP is detected. I run the code with Clang as default compiler (the GCC didn’t work when I tried) even though it is not Maverick yet, and got a message from Clang
clang: warning: argument unused during compilation: '-fopenmp'
however there is NO msg “WARNING - CUDA OpenMP Libraries are not found” showed up.
so my questions here:
1.does it means that OpenMP is detected? where is it exactly? is it in “/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/” ?
2.why “-fopenmp” is detected as unused?