Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 9 additions & 3 deletions aten/src/ATen/cuda/detail/CUDAHooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,11 @@ bool CUDAHooks::isGPUArch(const std::vector<std::string>& archs, DeviceIndex dev
const std::vector<std::string>& CUDAHooks::getHipblasltPreferredArchs() const {
static const std::vector<std::string> archs = {
"gfx90a", "gfx942",
#if ROCM_VERSION >= 60400
"gfx1200", "gfx1201",
#if ROCM_VERSION >= 60300
"gfx1100", "gfx1101", "gfx1102", "gfx1200", "gfx1201",
#endif
#if ROCM_VERSION >= 60402
"gfx1150", "gfx1151",
#endif
#if ROCM_VERSION >= 70000
"gfx950"
Expand All @@ -570,8 +573,11 @@ const std::vector<std::string>& CUDAHooks::getHipblasltSupportedArchs() const {
#if ROCM_VERSION >= 60300
"gfx1100", "gfx1101", "gfx1103", "gfx1200", "gfx1201", "gfx908",
#endif
#if ROCM_VERSION >= 60402
"gfx1150", "gfx1151",
#endif
#if ROCM_VERSION >= 70000
"gfx950", "gfx1150", "gfx1151",
"gfx950",
#endif
#if ROCM_VERSION >= 70200
"gfx1250"
Expand Down
7 changes: 6 additions & 1 deletion test/test_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,12 @@ def _check_default():
gcn_arch = str(
torch.cuda.get_device_properties(0).gcnArchName.split(":", 1)[0]
)
if gcn_arch in ["gfx90a", "gfx942", "gfx950", "gfx1200", "gfx1201"]:
if gcn_arch in [
"gfx90a", "gfx942", "gfx950",
"gfx1100", "gfx1101", "gfx1102",
"gfx1150", "gfx1151",
"gfx1200", "gfx1201",
]:
self.assertTrue(default == torch._C._BlasBackend.Cublaslt)
else:
self.assertTrue(default == torch._C._BlasBackend.Cublas)
Expand Down