Skip to content

Commit 6fa1b17

Browse files
jagadish-amdpytorchmergebot
authored andcommitted
ROCm: Add trailing comma for consistency in gfx architecture list (pytorch#150250)
Adding trailing comma for consistency. Pull Request resolved: pytorch#150250 Approved by: https://github.com/petrex, https://github.com/jeffdaily, https://github.com/cyyever
1 parent e6e07ec commit 6fa1b17

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aten/src/ATen/Context.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ at::BlasBackend Context::blasPreferredBackend() {
359359
static const std::vector<std::string> archs = {
360360
"gfx90a", "gfx942",
361361
#if ROCM_VERSION >= 60300
362-
"gfx1100", "gfx1101", "gfx1200", "gfx1201"
362+
"gfx1100", "gfx1101", "gfx1200", "gfx1201",
363363
#endif
364364
#if ROCM_VERSION >= 60500
365365
"gfx950"

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ static bool isSupportedHipLtROCmArch(int index) {
268268
static const std::vector<std::string> archs = {
269269
"gfx90a", "gfx942",
270270
#if ROCM_VERSION >= 60300
271-
"gfx1100", "gfx1101", "gfx1200", "gfx1201"
271+
"gfx1100", "gfx1101", "gfx1200", "gfx1201",
272272
#endif
273273
#if ROCM_VERSION >= 60500
274274
"gfx950"
@@ -935,7 +935,7 @@ static bool _scaled_mm_allowed_device() {
935935
static const std::vector<std::string> archs = {
936936
"gfx942",
937937
#if ROCM_VERSION >= 60300
938-
"gfx1200", "gfx1201"
938+
"gfx1200", "gfx1201",
939939
#endif
940940
#if ROCM_VERSION >= 60500
941941
"gfx950"

0 commit comments

Comments
 (0)