diff options
| -rw-r--r-- | source/compiler-core/slang-nvrtc-compiler.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/compiler-core/slang-nvrtc-compiler.cpp b/source/compiler-core/slang-nvrtc-compiler.cpp index 0042ad708..0811a072f 100644 --- a/source/compiler-core/slang-nvrtc-compiler.cpp +++ b/source/compiler-core/slang-nvrtc-compiler.cpp @@ -705,6 +705,19 @@ SlangResult NVRTCDownstreamCompiler::_findCUDAIncludePath(String& outPath) } } +#if SLANG_LINUX_FAMILY + // Try /usr/include + { + String includePath = "/usr/include"; + + if (File::exists(Path::combine(includePath, g_fp16HeaderName))) + { + outPath = includePath; + return SLANG_OK; + } + } +#endif + return SLANG_E_NOT_FOUND; } |
