Skip to content

Commit fe5e3f7

Browse files
committed
[AMD][HIPCC] Set function support to 1 by default
Change-Id: I42e6fffdc7ee69091af0dea6a97c9b45f53fd0e6
1 parent 6706369 commit fe5e3f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

amd/hipcc/bin/hipcc.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ sub get_normalized_path {
173173
$HIPLDFLAGS .= " --ld-path=" . get_normalized_path("$HIP_CLANG_PATH/lld-link.exe");
174174
}
175175

176-
# get Clang RT Builtin path
176+
# get Clang RT Builtin path
177177
$HIP_CLANG_RT_LIB = `$HIPCC --print-runtime-dir`;
178178
chomp($HIP_CLANG_RT_LIB);
179179

@@ -233,7 +233,7 @@ sub get_normalized_path {
233233
my $runCmd = 1;
234234
my $buildDeps = 0;
235235
my $hsacoVersion = 0;
236-
my $funcSupp = 0; # enable function support
236+
my $funcSupp = 1; # enable function support
237237
my $rdc = 0; # whether -fgpu-rdc is on
238238

239239
my @options = ();

amd/hipcc/src/hipBin_amd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ void HipBinAmd::executeHipCCCmd(vector<string> argv) {
456456
bool runCmd = 1;
457457
bool buildDeps = 0;
458458
string hsacoVersion;
459-
bool funcSupp = 0; // enable function support
459+
bool funcSupp = 1; // enable function support
460460
bool rdc = 0; // whether -fgpu-rdc is on
461461

462462
string prevArg; // previous argument
@@ -534,7 +534,7 @@ void HipBinAmd::executeHipCCCmd(vector<string> argv) {
534534
if (hipBinUtilPtr_->stringRegexMatch(arg, pattern)) {
535535
if (targetOpt == "--amdgpu-target=") {
536536
std::cerr << "Warning: The --amdgpu-target option has been deprecated and will be removed in the future."
537-
<< " Use --offload-arch instead.\n";
537+
<< " Use --offload-arch instead.\n";
538538
}
539539
// If targets string is not empty,
540540
// add a comma before adding new target option value.

0 commit comments

Comments
 (0)