From 446718f990bc591ecacd693e91754035dcbaba2a Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Thu, 17 Oct 2019 09:11:32 -0700 Subject: [PATCH] Revert "hipcc defaults to code object v3 (#1298)" This reverts commit c8f38a139a9d21bf25da2b93e517beed3635c64e. --- hipamd/bin/hipcc | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/hipamd/bin/hipcc b/hipamd/bin/hipcc index 0f97bf0e21..3686d51abe 100755 --- a/hipamd/bin/hipcc +++ b/hipamd/bin/hipcc @@ -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"; }