]> gcc.gnu.org Git - gcc.git/commit
libgomp/testsuite: Improve omp_get_device_num() tests
authorTobias Burnus <tobias@codesourcery.com>
Tue, 4 Jan 2022 13:58:06 +0000 (14:58 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 4 Jan 2022 13:58:06 +0000 (14:58 +0100)
commitbe661959a6b6d8f9c3c8608a746789e7b2ec3ca4
tree98077e9867316d3f3827f560d06deff68cdf351a
parentebc853deb7cc0487de9ef6e891a007ba853d1933
libgomp/testsuite: Improve omp_get_device_num() tests

Related to r12-6208-gebc853deb7cc0487de9ef6e891a007ba853d1933
"libgomp: Fix GOMP_DEVICE_NUM_VAR stringification during offload image load"

That commit fixed an issue with omp_get_device_num() on gcn/nvptx that
resulted in having always the value 0.
This commit modifies the tests to iterate over all devices such that on a
multi-nonhost-device system it had detected that always-zero issue.

libgomp/ChangeLog:

* testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
* testsuite/libgomp.fortran/target10.f90: Likewise.
libgomp/testsuite/libgomp.c-c++-common/target-45.c
libgomp/testsuite/libgomp.fortran/target10.f90
This page took 0.056389 seconds and 5 git commands to generate.