forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Driver][SYCL] Handle invalid characters from device in temp files (i…
…ntel#14563) When using command lines such as -fsycl -fsycl-targets=spir64_gen --offload-new-driver -Xsycl-target-backend "-device *" there is a temporary file that is generated that contains the arch value. Eliminate any possible invalid characters from being used with this temporary file.
- Loading branch information
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Test valid file names from -device values for GPU | ||
// REQUIRES: system-windows | ||
|
||
// RUN: %clang -### --target=x86_64-pc-windows-msvc -fsycl \ | ||
// RUN: -fsycl-targets=spir64_gen --offload-new-driver \ | ||
// RUN: -Xsycl-target-backend "-device arch1:arch2" %s 2>&1 \ | ||
// RUN: | FileCheck %s -check-prefix=CHECK_COLON | ||
|
||
// CHECK_COLON: sycl-windows-device-filename-arch1@arch2 | ||
// CHECK_COLON: arch=arch1:arch2 | ||
// CHECK_COLON-NOT: sycl-windows-device-filename-arch1:arch2 | ||
|
||
// RUN: %clang -### --target=x86_64-pc-windows-msvc -fsycl \ | ||
// RUN: -fsycl-targets=spir64_gen --offload-new-driver \ | ||
// RUN: -Xsycl-target-backend "-device *" %s 2>&1 \ | ||
// RUN: | FileCheck %s -check-prefix=CHECK_STAR | ||
|
||
// CHECK_STAR: sycl-windows-device-filename-@ | ||
// CHECK_STAR: arch=* | ||
// CHECK_STAR-NOT: sycl-windows-device-filename-* |