30.03.2022, 08:17
(30.03.2022, 05:25)Selur Wrote: Please do a clean setup of the Vapoursynth-folder.(you also need to copy vsViewer, the Qt6*.dlls and the platforms folder into the Vapoursynth folder)
Quote:It seems that if the environment variable CUDA_PATH is not found the CUDA library is not loaded. But first the module try to initialize CUDA in any case if is not defined the environment variable ORT_CUDA_UNAVAILABLE.That conclusion does not fit the code you posted.
The code states that if onnxruntime is compiled with CUDA support and the ORT_CUDA_UNAVAILABLE is empty (or non existant), TryGetProviderInfo_CUDA is triggered. If TryGetProviderInfo_CUDA returns cuda_provider_info everything is fine. Only if cuda_provider_info is null and the CUDA_PATH isn't set the dlls are not cloaded.
-> since on my setup either of the variables are set TryGetProviderInfo_CUDA is triggered and successfully gets the cuda_provider_info.
Cu Selur
I read the code in a hurry, but at first there is a check for the env variable ORT_CUDA_UNAVAILABLE, if it is not defined try to load CUDA, if it fails check if the env variable CUDA_PATH is defined, if not issue an error. So it seems that the the presence of CUDA_PATH is necessary for a successful load of CUDA library. But I will try again this afternoon.