Skip to content

Commit f42312e

Browse files
committed
replace minimum cc value with a constant
1 parent ab40e66 commit f42312e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml-cuda.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2474,7 +2474,7 @@ GGML_CALL static enum ggml_status ggml_backend_cuda_graph_compute(ggml_backend_t
24742474
void * ggml_cuda_cpy_fn_ptr = nullptr;
24752475

24762476
if (cuda_ctx->cuda_graph->graph == nullptr) {
2477-
if (ggml_cuda_info().devices[cuda_ctx->device].cc < 800) {
2477+
if (ggml_cuda_info().devices[cuda_ctx->device].cc < CC_AMPERE) {
24782478
cuda_ctx->cuda_graph->disable_due_to_gpu_arch = true;
24792479
#ifndef NDEBUG
24802480
fprintf(stderr, "%s: disabling CUDA graphs due to GPU architecture\n", __func__);

0 commit comments

Comments
 (0)