Set CUDA_MODULE_LOADING=EAGER for grok (#2638).
authorCarl Hetherington <cth@carlh.net>
Wed, 22 Nov 2023 08:24:03 +0000 (09:24 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 16 Dec 2023 01:07:38 +0000 (02:07 +0100)
src/lib/util.cc

index 1186795bd55e48b9e352191ce6dda000146c2a92..8cfdf0552307148d10dad94d30764dc1c2249872 100644 (file)
@@ -428,6 +428,11 @@ dcpomatic_setup ()
        SetUnhandledExceptionFilter(exception_handler);
 #endif
 
+#ifdef DCPOMATIC_GROK
+       /* This makes grok support work with CUDA 12.2 */
+       setenv("CUDA_MODULE_LOADING", "EAGER", 1);
+#endif
+
 #ifdef DCPOMATIC_HAVE_AVREGISTER
 LIBDCP_DISABLE_WARNINGS
        av_register_all ();