From 00fad59d49d31538270b811903aeb449c97ca152 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 22 Jan 2021 16:18:04 -0500 Subject: Add nvrtc shared library/dll names (#1673) * #include an absolute path didn't work - because paths were taken to always be relative. * Add other NVRTC versions. Co-authored-by: Tim Foley --- source/core/slang-nvrtc-compiler.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/core/slang-nvrtc-compiler.cpp b/source/core/slang-nvrtc-compiler.cpp index a5720ddc8..1bdb4dfa7 100644 --- a/source/core/slang-nvrtc-compiler.cpp +++ b/source/core/slang-nvrtc-compiler.cpp @@ -504,7 +504,6 @@ SlangResult NVRTCDownstreamCompiler::compile(const CompileOptions& options, RefP // // It would probably be good to support 32- and 64-bit here, and also // to deal with any variation in the shared library name across platforms - // ( // static const char* kNVRTCLibraryNames[] { @@ -512,8 +511,17 @@ SlangResult NVRTCDownstreamCompiler::compile(const CompileOptions& options, RefP // a library simply named `nvrtc` (well, `libnvrtc`) which // is expected to match whatever the user has installed. // + + // A list of versions is here + // https://developer.nvidia.com/cuda-toolkit-archive + "nvrtc", + "nvrtc64_112_0", + + "nvrtc64_111_1", + "nvrtc64_111_0", + "nvrtc64_110_0", "nvrtc64_102_0", "nvrtc64_101_0", -- cgit v1.2.3