We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 03f4719 + 5acd455 commit 4f34a07Copy full SHA for 4f34a07
ggml/src/ggml-cuda/ggml-cuda.cu
@@ -273,6 +273,15 @@ static ggml_cuda_device_info ggml_cuda_init() {
273
} else if (device_name.substr(0, 21) == "NVIDIA GeForce GTX 16") {
274
turing_devices_without_mma.push_back({ id, device_name });
275
}
276
+
277
+ // Temporary performance fix:
278
+ // Setting device scheduling strategy for iGPUs with cc121 to "spinning" to avoid delays in cuda synchronize calls.
279
+ // TODO: Check for future drivers the default scheduling strategy and
280
+ // remove this call again when cudaDeviceScheduleSpin is default.
281
+ if (prop.major == 12 && prop.minor == 1) {
282
+ CUDA_CHECK(cudaSetDeviceFlags(cudaDeviceScheduleSpin));
283
+ }
284
285
#endif // defined(GGML_USE_HIP)
286
287
0 commit comments