We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b6f1b4 + 1595aa3 commit 1b63721Copy full SHA for 1b63721
llvm_test_suite_sycl.pl
@@ -1000,10 +1000,15 @@ sub run_cmake
1000
copy($config_file, $config_file_original);
1001
}
1002
1003
+ my $extra_env = "";
1004
+ if ($current_optset =~ m/opt_use_cpu_spr/ ){
1005
+ $extra_env = "CL_CONFIG_CPU_TARGET_ARCH=sapphirerapids";
1006
+ }
1007
+
1008
open my $in, "<", $config_file_original || die "Cannot open file lit.cfg.py.ori: $!";
1009
open my $out, ">", $config_file || die "Cannot open file lit.cfg.py: $!";
1010
while (<$in>) {
- s/env\s+SYCL_DEVICE_FILTER=(\S+)/env SYCL_DEVICE_FILTER=$1 $insert_command /g;
1011
+ s/env\s+SYCL_DEVICE_FILTER=(\S+)/env SYCL_DEVICE_FILTER=$1 $extra_env $insert_command /g;
1012
print $out $_;
1013
1014
close $in;
0 commit comments