aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Burnus <tburnus@baylibre.com>2025-04-24 18:26:30 +0200
committerSandra Loosemore <sloosemore@baylibre.com>2025-05-15 20:25:54 +0000
commitbfc85ec56e3f1695519b4682143ee5099352a402 (patch)
treec182f116fe65c5dd5872c1e437558dff6c3c80b1 /gcc
parent0c81b0c22610a0c6a55c295d6a5d11f5919648d9 (diff)
downloadgcc-bfc85ec56e3f1695519b4682143ee5099352a402.zip
gcc-bfc85ec56e3f1695519b4682143ee5099352a402.tar.gz
gcc-bfc85ec56e3f1695519b4682143ee5099352a402.tar.bz2
libgomp/testsuite: Fix hip_header_nvidia check, add workaround to test
This is all about using the AMD's HIP header files with __HIP_PLATFORM_NVIDIA__ defined, i.e. HIP with Nvidia/CUDA; in that case, HIP is a thin layer on top of CUDA. First, the check_effective_target_gomp_hip_header_nvidia check failed; to fix it, -Wno-deprecated-declarations was added - and likewise to the two affected testcases that actually used the HIP headers on Nvidia. Doing so, the HIP tested was successful but the HIP-BLAS one showed two issues: * One seems to be related to include search paths as the HIP header uses #include "library_types.h" to include that CUDA header. Seemingly, it tried to included (again) the HIP header hip/library_types.h, not the CUDA one. I guess, some tweaking of -isystem vs. -I could have prevented this, but the simpler workaround was to just explicitly include the CUDA one before the HIP header files. * Once done, everything compiled but linking failed as the association between three HIP-BLAS functions and their CUDA-BLAS ones did not work. Solution: Just add three #define for mapping them. libgomp/ChangeLog: * testsuite/lib/libgomp.exp (check_effective_target_gomp_hip_header_nvidia): Compile with "-Wno-deprecated-declarations". * testsuite/libgomp.c/interop-hip-nvidia-full.c: Likewise. * testsuite/libgomp.c/interop-hipblas-nvidia-full.c: Likewise. * testsuite/libgomp.c/interop-hipblas.h: Add workarounds when using the HIP headers with __HIP_PLATFORM_NVIDIA__. (cherry picked from commit 8ef0518bce489c4c0c252a0e0c44193c5f7cf777)
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions