I understand nvcc
can generate GPU code using CUDA and OpenACC using #pragma acc kernels
. Since OpenMP 4.0 released, it had the target
construct to offload work to a GPU. Can nvcc
be used to generate GPU code using the OpenMP target
construct?
For OpenMP support, you need to use nvc++ (provided as part of the NVIDIA HPC SDK).