Skip to content

Commit 1b63721

Browse files
authored
Merge pull request intel#1409 from myler/CMPLRTST-18797-xmain
add CL_CONFIG_CPU_TARGET_ARCH=sapphirerapids for sde -spr
2 parents 6b6f1b4 + 1595aa3 commit 1b63721

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

llvm_test_suite_sycl.pl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,10 +1000,15 @@ sub run_cmake
10001000
copy($config_file, $config_file_original);
10011001
}
10021002

1003+
my $extra_env = "";
1004+
if ($current_optset =~ m/opt_use_cpu_spr/ ){
1005+
$extra_env = "CL_CONFIG_CPU_TARGET_ARCH=sapphirerapids";
1006+
}
1007+
10031008
open my $in, "<", $config_file_original || die "Cannot open file lit.cfg.py.ori: $!";
10041009
open my $out, ">", $config_file || die "Cannot open file lit.cfg.py: $!";
10051010
while (<$in>) {
1006-
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;
10071012
print $out $_;
10081013
}
10091014
close $in;

0 commit comments

Comments
 (0)