aboutsummaryrefslogtreecommitdiff
path: root/gcc/bitmap.cc
diff options
context:
space:
mode:
authorMarcel Vollweiler <marcel@codesourcery.com>2022-01-19 05:03:54 -0800
committerMarcel Vollweiler <marcel@codesourcery.com>2022-01-19 05:03:54 -0800
commit0bd247bbbe4cf396173f09eeec37e116e98f8471 (patch)
tree5656b6bc58528b5f268ed7082237125b5519c8ae /gcc/bitmap.cc
parent39f581028c76ebfc94a5c2714f43c9e56089a9b0 (diff)
downloadgcc-0bd247bbbe4cf396173f09eeec37e116e98f8471.zip
gcc-0bd247bbbe4cf396173f09eeec37e116e98f8471.tar.gz
gcc-0bd247bbbe4cf396173f09eeec37e116e98f8471.tar.bz2
libgomp, OpenMP: Fix issue for omp_get_device_num on gcn targets.
Currently omp_get_device_num does not work on gcn targets with more than one offload device. The reason is that GOMP_DEVICE_NUM_VAR is static in icv-device.c and thus "__gomp_device_num" is not visible in the offload image. This patch removes "static" such that "__gomp_device_num" is now part of the offload image and can now be found in GOMP_OFFLOAD_load_image in the plugin. This is not an issue for nvptx. There, "__gomp_device_num" is in the offload image even with "static". libgomp/ChangeLog: * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove "static") to make the device num available in the offload image.
Diffstat (limited to 'gcc/bitmap.cc')
0 files changed, 0 insertions, 0 deletions