Revert "hipcc defaults to code object v3 (#1298)"
This reverts commite5a2ba9602. [ROCm/clr commit:446718f990]
Цей коміт міститься в:
@@ -352,7 +352,6 @@ my $runCmd = 1;
|
||||
my $buildDeps = 0;
|
||||
my $linkType = 1;
|
||||
my $setLinkType = 0;
|
||||
my $coFormatv3 = 1;
|
||||
|
||||
my @options = ();
|
||||
my @inputs = ();
|
||||
@@ -472,22 +471,6 @@ foreach $arg (@ARGV)
|
||||
$swallowArg = 1;
|
||||
}
|
||||
|
||||
# code object format parsing
|
||||
if ($trimarg eq '-mcode-object-v3') {
|
||||
$coFormatv3 = 1;
|
||||
# hip-clang already recognizes -mcode-object-v3, so we just pass it on
|
||||
if ($HIP_PLATFORM eq 'hcc') {
|
||||
$swallowArg = 1;
|
||||
}
|
||||
}
|
||||
if ($trimarg eq '-mno-code-object-v3') {
|
||||
$coFormatv3 = 0;
|
||||
# hip-clang already recognizes -mno-code-object-v3, so we just pass it on
|
||||
if ($HIP_PLATFORM eq 'hcc') {
|
||||
$swallowArg = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (($arg =~ /--genco/) and $HIP_PLATFORM eq 'clang' ) {
|
||||
$arg = "--cuda-device-only";
|
||||
}
|
||||
@@ -870,12 +853,6 @@ if($HIP_PLATFORM eq "hcc" or $HIP_PLATFORM eq "clang"){
|
||||
}
|
||||
}
|
||||
|
||||
# hcc defaults to v2, so we need to convert to the appropriate flag
|
||||
# hip-clang defaults to v3, so we don't need to do anything
|
||||
if ($coFormatv3 and $HIP_PLATFORM eq 'hcc') {
|
||||
$HIPLDFLAGS .= " -Wl,-hcc-cov3 ";
|
||||
}
|
||||
|
||||
if ($hasC and $HIP_PLATFORM eq 'nvcc') {
|
||||
$HIPCXXFLAGS .= " -x cu";
|
||||
}
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача