aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/ext/random
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2022-11-25 13:48:17 +0100
committerTobias Burnus <tobias@codesourcery.com>2022-11-25 13:48:17 +0100
commit9f9d128f459e0c5ace8f7b85504d277b5a838daf (patch)
treec935998f0c1a3490cd5beec437d84a01ea14e0f3 /libstdc++-v3/include/ext/random
parentc16e85d726a7793c05209af031dac0bebf035ab9 (diff)
downloadgcc-9f9d128f459e0c5ace8f7b85504d277b5a838daf.zip
gcc-9f9d128f459e0c5ace8f7b85504d277b5a838daf.tar.gz
gcc-9f9d128f459e0c5ace8f7b85504d277b5a838daf.tar.bz2
libgomp: Add no-target-region rev offload test + fix plugin-nvptx
OpenMP permits that a 'target device(ancestor:1)' is called without being enclosed in a target region - using the current device (i.e. the host) in that case. This commit adds a testcase for this. In case of nvptx, the missing on-device 'GOMP_target_ext' call causes that it and also the associated on-device GOMP_REV_OFFLOAD_VAR variable are not linked in from nvptx's libgomp.a. Thus, handle the failing cuModuleGetGlobal gracefully by disabling reverse offload and assuming that the failure is fine. libgomp/ChangeLog: * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR as valid and the code having no reverse-offload code. * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
Diffstat (limited to 'libstdc++-v3/include/ext/random')
0 files changed, 0 insertions, 0 deletions