-
Notifications
You must be signed in to change notification settings - Fork 66
Merge CK validation to release/2.6 #2016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/2.6
Are you sure you want to change the base?
Conversation
…eate link target. Enable USE_CK_FLASH_ATTENTION based on USE_FLASH_ATTENTION option.
… using lintrunner.
b47638e
to
20ad852
Compare
Jenkins build for 6943678cdc3d79c37906161e88df783828f8d403 commit finished as FAILURE Detected error during Pytorch building:
|
Jenkins build for 6943678cdc3d79c37906161e88df783828f8d403 commit finished as FAILURE Detected error during Pytorch building:
|
include(${CMAKE_SOURCE_DIR}/cmake/public/LoadHIP.cmake) | ||
|
||
# full path for CK library on compute-artifactory.amd.com | ||
set(url "https://compute-artifactory.amd.com/artifactory/rocm-generic-local") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider reuse the release page of https://github.com/ROCm/composable_kernel
(There is no need to create new releases, just re-use any existing release to store the assets)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I don't think https://github.com/ROCm/composable_kernel is an option, since we don't own that repo and I don't think it'd be appropriate to store these artifacts on their repo, given that they are generated using scripts that are not even in their repo.
Alternately, we could instead create releases on https://github.com/ROCm/CK_kernels, since we own that repo.
@pruthvistony, can we file an OSRB request for CK_kernels repo (if we want to use the same solution for upstream)?
CMakeLists.txt
Outdated
@@ -888,6 +895,13 @@ if(USE_ROCM) | |||
endif() | |||
endif() | |||
|
|||
# CK shared lib linkage | |||
if(USE_ROCM) | |||
if(UNIX AND (USE_CK_FLASH_ATTENTION)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the UNIX
part since USE_ROCM
is defined as cmake_dependent_option(USE_ROCM "Use ROCm" ON "LINUX" OFF)
?
Also, please correct indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aotriton.cmake is getting linked similarly using condition if(UNIX AND (USE_FLASH_ATTENTION...
I borrowed the logic from there and linked in a similar way.
Will correct the indentation and the spacing though.
include(${CMAKE_SOURCE_DIR}/cmake/public/LoadHIP.cmake) | ||
|
||
# full path for CK library on compute-artifactory.amd.com | ||
set(url "https://compute-artifactory.amd.com/artifactory/rocm-generic-local") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pruthvistony @jeffdaily Should this be a concern about putting artifactory links in a public repo?
… and code cleanup.
Jenkins build for 507e0aa5b054253f13bc8cdfe6826baea425f464 commit finished as FAILURE Detected error during Pytorch building:
|
Jenkins build for 507e0aa5b054253f13bc8cdfe6826baea425f464 commit finished as FAILURE |
Jenkins build for 507e0aa5b054253f13bc8cdfe6826baea425f464 commit finished as FAILURE |
Jenkins build for 507e0aa5b054253f13bc8cdfe6826baea425f464 commit finished as FAILURE |
Jenkins build for 507e0aa5b054253f13bc8cdfe6826baea425f464 commit finished as FAILURE |
Jenkins build for 507e0aa5b054253f13bc8cdfe6826baea425f464 commit finished as FAILURE |
Jenkins build for 507e0aa5b054253f13bc8cdfe6826baea425f464 commit is in progress |
Jenkins build for 507e0aa5b054253f13bc8cdfe6826baea425f464 commit is in progress |
Refiled version of #2007
These are the changes made for this PR-
Removed generating and building CK kernels when building pytorch.
Download CK library from compute-artifactory and link with pytorch.
Enabled USE_CK_FLASH_ATTENTION based on USE_FLASH_ATTENTION option.
Added USE_CK_FLASH_ATTENTION as a cmake variable
Fixed lint/NIT errors using lintrunner.
Steps for validating CK library-
Note: I used MI-200, hence, used gfx90a.
As a proof for validation the sdpa.py should successfully run to completion.