Skip to content

Commit

Permalink
[ROCm] fix nightly 5.6 build (pytorch#116029)
Browse files Browse the repository at this point in the history
ROCm 5.6 nightly wheel build broken by pytorch#114329.  This fixes it.

Pull Request resolved: pytorch#116029
Approved by: https://github.com/huydhn, https://github.com/jithunnair-amd, https://github.com/atalman
  • Loading branch information
jeffdaily authored and dmenig committed Dec 21, 2023
1 parent c78631c commit 8e59208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aten/src/ATen/cuda/CUDABlas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ void int8_gemm(
#endif // (!defined(USE_ROCM) && !defined(_MSC_VER)) || (defined(USE_ROCM) && ROCM_VERSION >= 50700)

// ROCm 5.6 hipblas matches the const Dtype *A API, but prior hipblas does not.
#if defined(USE_ROCM) && ROCM_VERSION <= 50600
#if defined(USE_ROCM) && ROCM_VERSION < 50600
#define ROCM_CONST_BUG
#else
#define ROCM_CONST_BUG const
Expand Down
2 changes: 1 addition & 1 deletion aten/src/ATen/cuda/CublasHandlePool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace at::cuda {

namespace {

#ifdef USE_ROCM
#if defined(USE_ROCM) && ROCM_VERSION >= 50700
void createCublasLtHandle(cublasLtHandle_t *handle) {
TORCH_CUDABLAS_CHECK(cublasLtCreate(handle));
}
Expand Down

0 comments on commit 8e59208

Please sign in to comment.