OpenMP 4.5 won't offload to GPU with target directive
问题 I am trying to make a simple GPU offloading program using openMP. However, when I try to offload it still runs on the default device, i.e. my CPU. I have installed a compiler, g++ 7.2.0 that has CUDA support (is in on a cluster that I use). When I run the below code it shows me that it can see the 8 GPUs but when I try to offload it says that it is still on the CPU. #include <omp.h> #include <iostream> #include <stdio.h> #include <math.h> #include <algorithm> #define n 10000 #define m 10000