mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-03 23:49:44 +00:00
Fix CUDA 10.1 DLL names (#3102)
This commit is contained in:
parent
681b5deb99
commit
4dde50e7fb
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue