Skip to content
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

rocblas -> hipblas changes for ROCm #5401

Merged
merged 9 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions csrc/includes/gemm_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ class StridedGemmTest {
stride_b,
stride_c,
bsz,
#if defined(__HIP_PLATFORM_AMD__) && TORCH_VERSION_MAJOR <= 2 && TORCH_VERSION_MINOR <=0
static_cast<rocblas_gemm_algo>(algo));
#if defined(__HIP_PLATFORM_AMD__) && TORCH_VERSION_MAJOR <= 2 && TORCH_VERSION_MINOR <=0
static_cast<rocblas_gemm_algo>(algo));
loadams marked this conversation as resolved.
Show resolved Hide resolved
#else
static_cast<cublasGemmAlgo_t>(algo));
#endif
Expand Down
4 changes: 2 additions & 2 deletions csrc/includes/strided_batch_gemm.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ class StridedBatchGemm {
stride_b,
stride_c,
bsz,
#if defined(__HIP_PLATFORM_AMD__) && TORCH_VERSION_MAJOR <= 2 && TORCH_VERSION_MINOR <=0
rocblas_gemm_algo(_config.gemm_algos[2]));
#if defined(__HIP_PLATFORM_AMD__) && TORCH_VERSION_MAJOR <= 2 && TORCH_VERSION_MINOR <=0
rocblas_gemm_algo(_config.gemm_algos[2]));
#else
cublasGemmAlgo_t(_config.gemm_algos[2]));
#endif
Expand Down
6 changes: 3 additions & 3 deletions csrc/transformer/cublas_wrappers.cu
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ int cublas_gemm_ex(cublasHandle_t handle,
algo);
#endif

#if defined(__HIP_PLATFORM_AMD__) && TORCH_VERSION_MAJOR <= 2 && TORCH_VERSION_MINOR <=0
#if defined(__HIP_PLATFORM_AMD__) && TORCH_VERSION_MAJOR <= 2 && TORCH_VERSION_MINOR <=0
if (status != rocblas_status_success) {
#else
if (status != CUBLAS_STATUS_SUCCESS) {
Expand Down Expand Up @@ -335,7 +335,7 @@ int cublas_strided_batched_gemm(cublasHandle_t handle,
algo);
#endif

#if defined(__HIP_PLATFORM_AMD__) && TORCH_VERSION_MAJOR <= 2 && TORCH_VERSION_MINOR <=0
#if defined(__HIP_PLATFORM_AMD__) && TORCH_VERSION_MAJOR <= 2 && TORCH_VERSION_MINOR <=0
if (status != rocblas_status_success) {
#else
if (status != CUBLAS_STATUS_SUCCESS) {
Expand Down Expand Up @@ -463,7 +463,7 @@ int cublas_strided_batched_gemm(cublasHandle_t handle,
algo);
#endif

#if defined(__HIP_PLATFORM_AMD__) && TORCH_VERSION_MAJOR <= 2 && TORCH_VERSION_MINOR <=0
#if defined(__HIP_PLATFORM_AMD__) && TORCH_VERSION_MAJOR <= 2 && TORCH_VERSION_MINOR <=0
if (status != rocblas_status_success) {
#else
if (status != CUBLAS_STATUS_SUCCESS) {
Expand Down