Skip to content

Commit 4b40a71

Browse files
committed
Add warning
1 parent b730706 commit 4b40a71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ggml/src/ggml-cuda/ggml-cuda.cu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ static ggml_cuda_device_info ggml_cuda_init() {
261261
info.devices[id].cc = 100*prop.major + 10*prop.minor;
262262
GGML_LOG_INFO(" Device %d: %s, compute capability %d.%d, VMM: %s\n",
263263
id, prop.name, prop.major, prop.minor, device_vmm ? "yes" : "no");
264+
if (ggml_cuda_highest_compiled_arch(info.devices[id].cc) >= GGML_CUDA_CC_TURING && info.devices[id].nsm <= 24 && info.devices[id].cc == 750)
265+
GGML_LOG_INFO("Turing without tensor cores detected. Please compile with different options (e.g. `-DCMAKE_CUDA_ARCHITECTURES=61 -DGGML_CUDA_FORCE_MMQ=1`) for better performance.\n");
266+
264267
#endif // defined(GGML_USE_HIP)
265268
}
266269

0 commit comments

Comments
 (0)