When I use gcc-10 (and 9, 8, 7) from default repositories on Ubuntu 18.04, omp_get_num_devices()
returns 0
, even though I have:
paul@desktop:~$ nvidia-smi
...
| NVIDIA-SMI 450.80.02 Driver Version: 450.80.02 CUDA Version: 11.0 |
Do I need a special version of gcc to get target offload capability? A special build process for my project?