https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119677
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> --- Additionally, there is a check for a conforming device number for metadirectives: omp_device_num_check (tree *device_num, bool *is_host) { ... /* Otherwise, test that -1 <= *device_num <= omp_get_num_devices (). */ which needs to be updated as well.