File tree 3 files changed +2
-12
lines changed
3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -895,9 +895,9 @@ if(USE_ROCM)
895
895
endif ()
896
896
endif ()
897
897
898
- # CK shared lib linkage
898
+ # link CK library
899
899
if (USE_ROCM)
900
- if (UNIX AND ( USE_CK_FLASH_ATTENTION) )
900
+ if (UNIX AND USE_CK_FLASH_ATTENTION)
901
901
include (cmake/External/ck.cmake)
902
902
endif ()
903
903
endif ()
Original file line number Diff line number Diff line change @@ -173,13 +173,6 @@ file(GLOB flash_attention_hip_hip "native/transformers/hip/flash_attn/*.hip")
173
173
# if USE_FLASH_ATTENTION is set, ensure CK instances get generated
174
174
if (USE_FLASH_ATTENTION)
175
175
if (USE_CK_FLASH_ATTENTION)
176
- if (DEFINED ENV{PYTORCH_ROCM_ARCH})
177
- list (LENGTH PYTORCH_ROCM_ARCH NUM_ARCHS)
178
- if (NUM_ARCHS GREATER 1)
179
- message (WARNING "Building CK for multiple archs can increase build time considerably!
180
- Consider setting PYTORCH_ROCM_ARCH env var value as the gfx arch you need to build for" )
181
- endif ()
182
- endif ()
183
176
message (STATUS "USE_CK_FLASH_ATTENTION is set; building PyTorch with CK Flash Attention enabled" )
184
177
message (STATUS "Generating CK kernel instances..." )
185
178
# disable buidling CK files
Original file line number Diff line number Diff line change 18
18
message (FATAL_ERROR "Failed to get submodule status for composable_kernel." )
19
19
endif ()
20
20
21
- # get ROCm version from LoadHIP.cmake
22
- include (${CMAKE_SOURCE_DIR} /cmake/public /LoadHIP.cmake)
23
-
24
21
# full path for CK library on compute-artifactory.amd.com
25
22
set (url "https://compute-artifactory.amd.com/artifactory/rocm-generic-local" )
26
23
set (ck_lib_full_path "${url} /torch_ck_gen_lib/ck_${ck_commit_hash} /rocm_${ROCM_VERSION_DEV} /libck_kernels.so" )
You can’t perform that action at this time.
0 commit comments