Skip to content

Commit eae8647

Browse files
David SalinasDavid Salinas
authored andcommitted
hipconfig -C adds extra newline
SWDEV-436587 : [CRAYA-410] hipconfig -C" adds extra newline in rocm 5.7.0 Change-Id: I5f090896e58ae26343589adf1a65694c35cb653f
1 parent 622be37 commit eae8647

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

amd/hipcc/bin/hipconfig.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ BEGIN
6969
$HIP_CLANG_INCLUDE = `\"$HIP_CLANG_PATH/clang++\" --print-resource-dir`;
7070
} else {
7171
$HIP_CLANG_INCLUDE = `$HIP_CLANG_PATH/clang++ --print-resource-dir`;
72+
chomp($HIP_CLANG_INCLUDE)
7273
}
7374

7475
$CPP_CONFIG = " -D__HIP_PLATFORM_HCC__= -D__HIP_PLATFORM_AMD__=";

amd/hipcc/src/hipBin_amd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void HipBinAmd::printCompilerInfo() const {
228228
const string& hipClangPath = getCompilerPath();
229229
const string& hipPath = getHipPath();
230230
if (os == windows) {
231-
string cmd = hipClangPath + "/clang++ --version";
231+
string cmd = hipClangPath + "/clang++ --print-resource-dir";
232232
system(cmd.c_str()); // hipclang version
233233
cout << "llc-version :" << endl;
234234
cmd = hipClangPath + "/llc --version";
@@ -241,7 +241,7 @@ void HipBinAmd::printCompilerInfo() const {
241241
system(cmd.c_str()); // ld flags
242242
cout << endl;
243243
} else {
244-
string cmd = hipClangPath + "/clang++ --version";
244+
string cmd = hipClangPath + "/clang++ --print-resource-dir";
245245
system(cmd.c_str()); // hipclang version
246246
cmd = hipClangPath + "/llc --version";
247247
system(cmd.c_str()); // llc version

0 commit comments

Comments
 (0)