从该地方搜到如下信息,详见此链接http://forums.nvidia.com/lofiversion/index.php?t53738.html,但是,最后Paulius的回复如下:
Use the following flags when compiling a .cu file to use OpenMP:
--host-compilation=C++ -Xcompiler /openmp
That's what cudaOpenMP SDK sample uses (available in Windows). You'll have to provide the proper gcc flag after -Xcompiler for Linux (not sure what that is, but gcc 4.2 and later does support OpenMP).
看起来与这句话的意思差不多:“nvcc是编译cu与生成中间cpp的.OPENMP的参数还是要加在实际的后面的cpp的编译器上.” 问题是,该如何增加呢,能否有一个具体步骤的说明呢? 查看了cudaopenmp sdk sample,也没有找到她是如何配置的。还望能够答疑解惑!!!!