From d72639ef775a23a910d6ea19cfde9367204330b2 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Thu, 27 Feb 2020 14:43:16 -0800 Subject: [PATCH] Fix CUDA 10.1 DLL names (#3102) --- cmake/CMakeLists.txt | 2 +- csharp/src/Microsoft.ML.OnnxRuntime/SessionOptions.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 7238b2350a..cd586f22c6 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -724,7 +724,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 6f24f49634..228b9e1b98 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