Skip to content

Commit 7179053

Browse files
committed
Address review comments
Signed-off-by: Xiaodong Ye <[email protected]>
1 parent c29d5d4 commit 7179053

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
@@ -316,7 +316,7 @@ static bool ampere_mma_available(const int cc) {
316316
}
317317

318318
static bool cp_async_available(const int cc) {
319-
return cc < GGML_CUDA_CC_OFFSET_AMD && ggml_cuda_highest_compiled_arch(cc) >= GGML_CUDA_CC_AMPERE;
319+
return GGML_CUDA_CC_IS_NVIDIA(cc) && ggml_cuda_highest_compiled_arch(cc) >= GGML_CUDA_CC_AMPERE;
320320
}
321321

322322
static constexpr __device__ int ggml_cuda_get_physical_warp_size() {

0 commit comments

Comments
 (0)