File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,8 @@ CudaInstallationDetector::CudaInstallationDetector(
202
202
LibPath = InstallPath + " /lib/x64" ;
203
203
else if (FS.exists (InstallPath + " /lib/Win32" ))
204
204
LibPath = InstallPath + " /lib/Win32" ;
205
+ else if (FS.exists (InstallPath + " /lib" ))
206
+ LibPath = InstallPath + " /lib" ;
205
207
else
206
208
continue ;
207
209
} else {
@@ -746,7 +748,7 @@ void CudaToolChain::addClangTargetOptions(
746
748
for (StringRef LibraryPath : LibraryPaths) {
747
749
SmallString<128 > LibSpirvTargetFile (LibraryPath);
748
750
llvm::sys::path::append (LibSpirvTargetFile, LibSpirvTargetName);
749
- if (llvm::sys::fs::exists (LibSpirvTargetFile)) {
751
+ if (llvm::sys::fs::exists (LibSpirvTargetFile) || DriverArgs. hasArg (options::OPT__HASH_HASH_HASH) ) {
750
752
LibSpirvFile = std::string (LibSpirvTargetFile.str ());
751
753
break ;
752
754
}
Original file line number Diff line number Diff line change
1
+ // RUN: %clang -### -fsycl -fsycl-targets=nvptx64-nvidia-cuda-sycldevice -nocudalib -target x86_64-unknown-windows-msvc %s 2> %t.win.out
2
+ // RUN: FileCheck %s --check-prefixes=CHECK-WINDOWS --input-file %t.win.out
3
+ // CHECK-WINDOWS: remangled-l32-signed_char.libspirv-nvptx64--nvidiacl.bc
4
+ //
5
+ // RUN: %clang -### -fsycl -fsycl-targets=nvptx64-nvidia-cuda-sycldevice -nocudalib -target x86_64-unknown-linux-gnu %s 2> %t.lnx.out
6
+ // RUN: FileCheck %s --check-prefixes=CHECK-LINUX --input-file %t.lnx.out
7
+ // CHECK-LINUX: remangled-l64-signed_char.libspirv-nvptx64--nvidiacl.bc
You can’t perform that action at this time.
0 commit comments