diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 3cee60f3f8..44d18814dd 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -725,7 +725,7 @@ if (onnxruntime_USE_CUDA) if (WIN32) link_directories(${onnxruntime_CUDNN_HOME}/lib/x64) - file(GLOB cuda_dll_paths "${onnxruntime_CUDA_HOME}/bin/cublas64_*" "${onnxruntime_CUDA_HOME}/bin/cudart64_*") + file(GLOB cuda_dll_paths "${onnxruntime_CUDA_HOME}/bin/cublas64_*" "${onnxruntime_CUDA_HOME}/bin/cudart64_*" "${onnxruntime_CUDA_HOME}/bin/curand64_*") set(onnxruntime_DELAYLOAD_FLAGS "${onnxruntime_DELAYLOAD_FLAGS} /DELAYLOAD:cudnn64_7.dll") foreach(cuda_dll_path ${cuda_dll_paths}) get_filename_component(cuda_dll_file_name ${cuda_dll_path} NAME) diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/SessionOptions.cs b/csharp/src/Microsoft.ML.OnnxRuntime/SessionOptions.cs index 8b93b943ce..45c4087461 100644 --- a/csharp/src/Microsoft.ML.OnnxRuntime/SessionOptions.cs +++ b/csharp/src/Microsoft.ML.OnnxRuntime/SessionOptions.cs @@ -37,7 +37,7 @@ namespace Microsoft.ML.OnnxRuntime public class SessionOptions : IDisposable { private IntPtr _nativePtr; - private static string[] cudaDelayLoadedLibs = { "cublas64_100.dll", "cudnn64_7.dll" }; + private static string[] cudaDelayLoadedLibs = { "cublas64_10.dll", "cudnn64_7.dll", "curand64_10.dll" }; #region Constructor and Factory methods