Skip to content

Commit c29d5d4

Browse files
committed
musa: fix failures in test-backend-ops for mul_mat_id op
Signed-off-by: Xiaodong Ye <[email protected]>
1 parent 1d72c84 commit c29d5d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/common.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ static bool turing_mma_available(const int cc) {
312312
}
313313

314314
static bool ampere_mma_available(const int cc) {
315-
return cc < GGML_CUDA_CC_OFFSET_AMD && ggml_cuda_highest_compiled_arch(cc) >= GGML_CUDA_CC_AMPERE;
315+
return GGML_CUDA_CC_IS_NVIDIA(cc) && ggml_cuda_highest_compiled_arch(cc) >= GGML_CUDA_CC_AMPERE;
316316
}
317317

318318
static bool cp_async_available(const int cc) {

0 commit comments

Comments
 (0)