summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeHIPInformation.cmake
Commit message (Collapse)AuthorAgeFilesLines
* HIP: Add support for NVIDIA GPUsBrad King2023-09-211-1/+14
| | | | | | Add support for using the CUDA Toolkit's NVCC to compile HIP code. Fixes: #25143
* HIP: Fix search for hip-lang CMake package on multiarch distrosBrad King2023-05-311-1/+1
| | | | | | | | | | We need `CMAKE_LIBRARY_ARCHITECTURE` to find the package before HIP compiler ABI detection. However, if HIP is the first enabled language, the value is not known until `CMAKE_HIP_LIBRARY_ARCHITECTURE` is determined by the ABI detection step. Resolve this by detecting `CMAKE_HIP_LIBRARY_ARCHITECTURE` from the compiler id output. Fixes: #24562
* HIP: Find hip-lang-config.cmake with REQUIREDGergely Meszaros2022-10-091-1/+1
| | | | | | Use REQUIRED for the find_package that loads the hip config, because it may fail, e.g. because dependent libraries are not found. Before this if the find_package failed cmake silently continued.
* Merge topic 'hip-no-hipcc'Brad King2021-09-201-4/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | cb93f72624 HIP: Simplify detection of HIP runtime CMake package a71f0fc9c7 HIP: Remove ROMClang compiler id and use Clang directly b125e9809a HIP: Detect ROCm path earlier 735f41fc2d HIP: Use 'rocm_agent_enumerator' to determine CMAKE_HIP_ARCHITECTURES Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Raul Tambre <raul@tambre.ee> Acked-by: Axel Huebl <axel.huebl@plasma.ninja> Merge-request: !6533
| * HIP: Simplify detection of HIP runtime CMake packageBrad King2021-09-161-4/+7
| | | | | | | | | | | | | | It only makes sense to use the CMake package from the same ROCm installation that the compiler uses. Ask the HIP compiler to report the location of the ROCm installation. Verify up front that it contains the expected CMake package file.
* | LINK_WHAT_YOU_USE feature: externalize configurationMarc Chevrier2021-07-091-0/+9
|/ | | | | | | | Currently, this feature is only supported on ELF platforms. So, the property LINK_WHAT_YOU_USE will be ignored for other plateforms. Moreover, flags and commands are now controled by CMake variables. Fixes: #20174
* HIP: Automatically inject the `hip::device` runtime targetRobert Maynard2021-06-071-0/+7
| | | | | Any target that might need to link to hip code needs the `hip::device` target
* HIP: Add language to CMakeRobert Maynard2021-06-071-0/+132