aboutsummaryrefslogtreecommitdiff
path: root/gcc/coverage.c
diff options
context:
space:
mode:
authorTobias Burnus <tburnus@baylibre.com>2025-04-24 18:26:30 +0200
committerTobias Burnus <tburnus@baylibre.com>2025-05-19 09:49:41 +0200
commite8b69eeb1c3d217f344fe92e758a30851883ab08 (patch)
tree24bdae89301aa4b8f437125e55cad315b4c1f01d /gcc/coverage.c
parent951d02dde2b86cbc999ef8c6c2256c2cde21735f (diff)
downloadgcc-e8b69eeb1c3d217f344fe92e758a30851883ab08.zip
gcc-e8b69eeb1c3d217f344fe92e758a30851883ab08.tar.gz
gcc-e8b69eeb1c3d217f344fe92e758a30851883ab08.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/coverage.c')
0 files changed, 0 insertions, 0 deletions