mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-06-29 11:16:59 +00:00
Update CMakeLists.txt
This commit is contained in:
@@ -12,9 +12,22 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
set(CK_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/..)
|
||||
configure_file(${CK_ROOT}/include/ck/config.h.in ${CK_ROOT}/include/ck/config.h)
|
||||
|
||||
find_package(ROCM)
|
||||
if (WIN32)
|
||||
find_package(ROCmCMakeBuildTools REQUIRED PATHS C:/dist/TheRock)
|
||||
set(HIP_PLATFORM "amd" CACHE STRING "HIP platform")
|
||||
else()
|
||||
find_package(ROCM REQUIRED PATHS /opt/rocm)
|
||||
endif()
|
||||
|
||||
include(ROCMInstallTargets)
|
||||
include(ROCMTest)
|
||||
include(ROCMPackageConfigHelpers)
|
||||
include(ROCMSetupVersion)
|
||||
include(ROCMInstallSymlinks)
|
||||
include(ROCMCreatePackage)
|
||||
include(CheckCXXCompilerFlag)
|
||||
include(ROCMCheckTargetIds)
|
||||
include(TargetFlags)
|
||||
|
||||
list(APPEND CMAKE_PREFIX_PATH /opt/rocm $ENV{ROCM_PATH})
|
||||
find_package(hiprtc REQUIRED)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user