File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,6 @@ sub get_normalized_path {
230
230
my $hasOMPTargets = 0; # If OMP targets is mentioned
231
231
my $hasC = 0; # options contain a c-style file
232
232
my $hasCXX = 0; # options contain a cpp-style file (NVCC must force recognition as GPU file)
233
- my $hasCU = 0; # options contain a cu-style file (HCC must force recognition as GPU file)
234
233
my $hasHIP = 0; # options contain a hip-style file (HIP-Clang must pass offloading options)
235
234
my $printHipVersion = 0; # print HIP version
236
235
my $printCXXFlags = 0; # print HIPCXXFLAGS
@@ -441,6 +440,9 @@ sub get_normalized_path {
441
440
$needCXXFLAGS = 1;
442
441
if ($HIP_COMPILE_CXX_AS_HIP eq ' 0' or $HIP_PLATFORM ne " amd" or $hasOMPTargets eq 1) {
443
442
$hasCXX = 1;
443
+ if ($HIP_PLATFORM eq " nvidia" ) {
444
+ $toolArgs .= " -x cu" ;
445
+ }
444
446
} elsif ($HIP_PLATFORM eq " amd" ) {
445
447
$hasHIP = 1;
446
448
$toolArgs .= " -x hip" ;
@@ -451,7 +453,6 @@ sub get_normalized_path {
451
453
$hasHIP = 1;
452
454
$toolArgs .= " -x hip" ;
453
455
} elsif ($HIP_PLATFORM eq " nvidia" ) {
454
- $hasCU = 1;
455
456
$toolArgs .= " -x cu" ;
456
457
}
457
458
}
You can’t perform that action at this time.
0 commit comments