https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79236
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- To test, one can e.g. move libcuda.so.1 out of the way where dlopen will find it, or I guess setting say OMP_DEFAULT_DEVICE=10000 in the environment.