summaryrefslogtreecommitdiffstats
path: root/Tests/HIP
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Update HIP.MathFunctions case for nodiscard enforcementBrad King2023-11-171-4/+8
|
* HIP: Add tests for special NVIDIA values of CMAKE_HIP_ARCHITECTURESBrad King2023-09-253-0/+72
|
* HIP: Fix linking mixed-lang binary with CXX compiler and Makefile generatorsBrad King2023-09-251-0/+4
| | | | | | | | Following commit 6377a43814 (CUDA: Support response files with nvcc, 2022-06-01, v3.25.0-rc1~636^2), while determining the compiler ABI, do not use response files, so that we can extract implicit link flags. Fixes: #25272
* HIP: Add support for NVIDIA GPUsBrad King2023-09-216-2/+19
| | | | | | Add support for using the CUDA Toolkit's NVCC to compile HIP code. Fixes: #25143
* HIP: Add CMAKE_HIP_PLATFORM variable to specify GPU platformBrad King2023-09-213-3/+13
| | | | | For now, require the value to be `amd`, since that is the only platform we currently support.
* Tests/HIP/WithDefs: Clean up test caseBrad King2023-09-211-5/+3
| | | | | | | Fix code copied from equivalent CUDA test. Drop `CMAKE_HIP_ARCHITECTURES=OFF`. That is already covered by a dedicated `HIP.ArchitectureOff` test.
* Tests/HIP/ArchitectureOff: Cover HIP_ARCHITECTURES initializationBrad King2023-09-211-1/+5
| | | | Verify that the property is initialized by `CMAKE_HIP_ARCHITECTURES`.
* HIP: Remove ROMClang compiler id and use Clang directlyBrad King2021-09-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit bd844387df (ROCMClang: Add the ROCm toolkit derived clang compiler to CMake, 2020-08-28, v3.21.0-rc1~66^2~6) and commit ff0d2858e1 (HIP: Extract clang compiler details from hipcc, 2020-10-21, v3.21.0-rc1~66^2~5), the separate `ROCMClang` compiler id for `hipcc` has caused a few problems: * The compiler id changed from behavior of CMake 3.20 and below, breaking projects that already built with `hipcc` treated as `Clang`. * The implementation of `target_compile_features` was incomplete for the `ROCMClang` identity. * Only `hipcc` was identified as `ROCMClang`, so after it is unwrapped to the underlying `clang++`, future runs of new CMake versions on an existing build tree would not repeat this. * Clang should be usable as a HIP compiler without the `hipcc` wrapper. Remove the `ROMClang` compiler identity, and revise HIP language support to work directly with a Clang compiler. Reject direct `hipcc` usage as a HIP compiler. For now it cannot be supported because it interferes with flags CMake needs to pass to Clang. Fixes: #22536, #22460, #22593
* HIP: analyze output of `hipcc` to determine default GPU architectureZack Galbreath2021-06-074-4/+0
|
* HIP: All HIP tests now run on CMake's current AMD hardwareRobert Maynard2021-06-076-0/+6
|
* HIP: Automatically inject the `hip::device` runtime targetRobert Maynard2021-06-0715-0/+255
| | | | | Any target that might need to link to hip code needs the `hip::device` target
* HIP: Add language to CMakeRobert Maynard2021-06-0717-0/+340