You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+51-1Lines changed: 51 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -361,6 +361,46 @@ if(BUILD_CLANG_PLUGIN)
361
361
message(SEND_ERROR"CLANG_INCLUDE_PATH ${CLANG_INCLUDE_PATH} does not exist. Please provide clang's internal include path manually: Find the directory where __clang_cuda_runtime_wrapper.h is. Provide this directory for older ROCm versions and the parent directory for newer ones.")
362
362
endif()
363
363
if(WITH_ROCM_BACKEND)
364
+
# Check if we're building against ROCm LLVM. This code checks if
365
+
# CLANG_EXECUTABLE_PATH is located within ROCM_PATH.
366
+
# Note: This might fail in ROCm distributions where ROCm is strongly decomposed
367
+
# (spack?) but it is more reliable than just parsing the output of clang++ --version.
368
+
# This is then later used to decide whether we need to make exemptions
message(SEND_ERROR"AdaptiveCpp LLVM version (${LLVM_VERSION_MAJOR}) must be <= ROCm LLVM version (${ROCM_LLVM_MAJOR}) for the AdaptiveCpp generic JIT compiler.")
398
+
endif()
399
+
endif()
400
+
endif()
401
+
endif()
402
+
# Find ROCm version - this may not work for ROCm distributions repackaged
403
+
# by Linux distributions as they may be missing the roc-* identifier in the output :(
0 commit comments