summaryrefslogtreecommitdiff
path: root/Modules/CMakeTestHIPCompiler.cmake
Commit message (Collapse)AuthorAgeFilesLines
* HIP: Add missing space when appending --cuda-host-onlyBrad King2021-10-261-1/+1
| | | | Fixes: #22805
* HIP: Simplify detection of HIP runtime CMake packageBrad King2021-09-161-21/+0
| | | | | | | 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.
* enable_language: Fix test for working compiler with CMP0126 NEW behaviorBrad King2021-07-151-0/+3
| | | | | | | | | | | | | | Update the logic that converts a `try_compile` result from a cache entry to a normal variable to tolerate an existing normal variable under CMP0126 NEW behavior. Otherwise the `try_compile` result is ignored because CMake uses the false value of the normal variable, and CMake incorrectly reports that the compiler does not work. This went unnoticed for some languages (e.g. C and CXX) because the check for a working compiler is skipped if ABI detection works. It does affect other languages (e.g. CSharp). Fixes: #22423
* HIP: Automatically inject the `hip::device` runtime targetRobert Maynard2021-06-071-0/+21
| | | | | Any target that might need to link to hip code needs the `hip::device` target
* HIP: Add language to CMakeRobert Maynard2021-06-071-0/+98