gcc/libgomp/config
Marcel Vollweiler 0bd247bbbe 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.
2022-01-19 05:03:54 -08:00
..
accel Update copyright years. 2022-01-03 10:42:10 +01:00
bsd Update copyright years. 2022-01-03 10:42:10 +01:00
darwin Update copyright years. 2022-01-03 10:42:10 +01:00
gcn libgomp, OpenMP: Fix issue for omp_get_device_num on gcn targets. 2022-01-19 05:03:54 -08:00
hpux Update copyright years. 2022-01-03 10:42:10 +01:00
linux Update copyright years. 2022-01-03 10:42:10 +01:00
mingw32 Update copyright years. 2022-01-03 10:42:10 +01:00
nvptx Update copyright years. 2022-01-03 10:42:10 +01:00
posix Update copyright years. 2022-01-03 10:42:10 +01:00
rtems Update copyright years. 2022-01-03 10:42:10 +01:00
t-aix aix: remove libgomp and libatomic archives before creating FAT archives 2020-10-11 17:30:24 -04:00