I want to support the openmp features in the host code. However, I failed. I got the error “This application has failed to start because vompd.dll was not found.”. How to solve this problem? thanks. Here is a brief description on what I have done: (1) OS: winXP. IDE: VS2005. (2) I have included “omp.h” (3) I have added “/openmp” in the nvcc compilation. (4) The code is as followed: { #pragma omp parallel for for( i=0; i<numThread; i++ ) { //do something. } }
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).