Skip to content

Commit 39aaf53

Browse files
committed
fix: hipBLASLt support for gfx15X has been added starting from ROCm 6.4.2
1 parent b8bf963 commit 39aaf53

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

aten/src/ATen/Context.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,10 @@ at::BlasBackend Context::blasPreferredBackend() {
336336
static const std::vector<std::string> archs = {
337337
"gfx90a", "gfx942",
338338
#if ROCM_VERSION >= 60400
339-
"gfx1150", "gfx1151", "gfx1200", "gfx1201",
339+
"gfx1200", "gfx1201",
340+
#endif
341+
#if ROCM_VERSION >= 60402
342+
"gfx1150", "gfx1151",
340343
#endif
341344
#if ROCM_VERSION >= 60500
342345
"gfx950"
@@ -364,6 +367,9 @@ at::BlasBackend Context::blasPreferredBackend() {
364367
#if ROCM_VERSION >= 60300
365368
"gfx1100", "gfx1101", "gfx1200", "gfx1201",
366369
#endif
370+
#if ROCM_VERSION >= 60402
371+
"gfx1150", "gfx1151",
372+
#endif
367373
#if ROCM_VERSION >= 60500
368374
"gfx950"
369375
#endif

aten/src/ATen/native/cuda/Blas.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,10 @@ static bool isSupportedHipLtROCmArch(int index) {
270270
static const std::vector<std::string> archs = {
271271
"gfx90a", "gfx942",
272272
#if ROCM_VERSION >= 60300
273-
"gfx1100", "gfx1101", "gfx1150", "gfx1151", "gfx1200", "gfx1201",
273+
"gfx1100", "gfx1101", "gfx1200", "gfx1201",
274+
#endif
275+
#if ROCM_VERSION >= 60402
276+
"gfx1150", "gfx1151",
274277
#endif
275278
#if ROCM_VERSION >= 60500
276279
"gfx950"

0 commit comments

Comments
 (0)