@@ -64,7 +64,6 @@ class HipBinAmd : public HipBinBase {
64
64
virtual string getDeviceLibPath () const ;
65
65
virtual string getHipLibPath () const ;
66
66
virtual string getHipCC () const ;
67
- virtual string getCompilerIncludePath ();
68
67
virtual string getHipInclude () const ;
69
68
virtual void initializeHipCXXFlags ();
70
69
virtual void initializeHipCFlags ();
@@ -166,9 +165,6 @@ void HipBinAmd::initializeHipLdFlags() {
166
165
167
166
void HipBinAmd::initializeHipCFlags () {
168
167
string hipCFlags;
169
- string hipclangIncludePath;
170
- hipclangIncludePath = getHipInclude ();
171
- hipCFlags += " -isystem \" " + hipclangIncludePath + " \" " ;
172
168
const OsType& os = getOSInfo ();
173
169
if (os != windows) {
174
170
string hsaPath;
@@ -203,12 +199,6 @@ string HipBinAmd::getHipInclude() const {
203
199
void HipBinAmd::initializeHipCXXFlags () {
204
200
string hipCXXFlags;
205
201
const OsType& os = getOSInfo ();
206
- string hipClangIncludePath;
207
- hipClangIncludePath = getCompilerIncludePath ();
208
- hipCXXFlags += " -isystem \" " + hipClangIncludePath;
209
- fs::path hipCXXFlagsTempFs = hipCXXFlags;
210
- hipCXXFlagsTempFs /= " ..\" " ;
211
- hipCXXFlags = hipCXXFlagsTempFs.string ();
212
202
const EnvVariables& var = getEnvVariables ();
213
203
// Allow __fp16 as function parameter and return type.
214
204
if (var.hipClangHccCompactModeEnv_ .compare (" 1" ) == 0 ) {
@@ -324,28 +314,19 @@ string HipBinAmd::getCppConfig() {
324
314
string compilerVersion;
325
315
compilerVersion = getCompilerVersion ();
326
316
327
- fs::path hipPathInclude, hipClangInclude, cppConfigFs;
328
- string hipClangVersionPath;
317
+ fs::path hipPathInclude, cppConfigFs;
329
318
const string& hipPath = getHipPath ();
330
319
hipPathInclude = hipPath;
331
320
hipPathInclude /= " include" ;
332
-
333
- const string& compilerPath = getCompilerPath ();
334
- hipClangInclude = compilerPath;
335
- hipClangInclude = hipClangInclude.parent_path ();
336
- hipClangInclude /= " lib/clang/" ;
337
- hipClangInclude /= compilerVersion;
338
- string hipClangPath = hipClangInclude.string ();
339
-
340
321
const OsType& osInfo = getOSInfo ();
341
322
if (osInfo == windows) {
342
- cppConfig += " -I" + hipPathInclude.string () + " -I " + hipClangPath ;
323
+ cppConfig += " -I" + hipPathInclude.string ();
343
324
cppConfigFs = cppConfig;
344
325
cppConfigFs /= " /" ;
345
326
} else {
346
327
const string& hsaPath = getHsaPath ();
347
328
cppConfig += " -I" + hipPathInclude.string () +
348
- " -I" + hipClangPath + " -I " + hsaPath;
329
+ " -I" + hsaPath;
349
330
cppConfigFs = cppConfig;
350
331
cppConfigFs /= " include" ;
351
332
cppConfig = cppConfigFs.string ();
@@ -439,23 +420,6 @@ string HipBinAmd::getHipCC() const {
439
420
return hipCC;
440
421
}
441
422
442
-
443
-
444
- string HipBinAmd::getCompilerIncludePath () {
445
- string hipClangVersion, includePath, compilerIncludePath;
446
- const string& hipClangPath = getCompilerPath ();
447
- hipClangVersion = getCompilerVersion ();
448
- fs::path includePathfs = hipClangPath;
449
- includePathfs = includePathfs.parent_path ();
450
- includePathfs /= " lib/clang/" ;
451
- includePathfs /= hipClangVersion;
452
- includePathfs /= " include" ;
453
- includePathfs = fs::absolute (includePathfs).string ();
454
- compilerIncludePath = includePathfs.string ();
455
- return compilerIncludePath;
456
- }
457
-
458
-
459
423
void HipBinAmd::checkHipconfig () {
460
424
printFull ();
461
425
cout << endl << " Check system installation: " << endl;
@@ -581,14 +545,13 @@ void HipBinAmd::executeHipCCCmd(vector<string> argv) {
581
545
HIPCXXFLAGS = getHipCXXFlags ();
582
546
HIPLDFLAGS = getHipLdFlags ();
583
547
string hipLibPath;
584
- string hipclangIncludePath , hipIncludePath, deviceLibPath;
548
+ string hipIncludePath, deviceLibPath;
585
549
hipLibPath = getHipLibPath ();
586
550
const string& roccmPath = getRoccmPath ();
587
551
const string& hipPath = getHipPath ();
588
552
const PlatformInfo& platformInfo = getPlatformInfo ();
589
553
const string& rocclrHomePath = getRocclrHomePath ();
590
554
const string& hipClangPath = getCompilerPath ();
591
- hipclangIncludePath = getCompilerIncludePath ();
592
555
hipIncludePath = getHipInclude ();
593
556
deviceLibPath = getDeviceLibPath ();
594
557
const string& hipVersion = getHipVersion ();
@@ -600,7 +563,6 @@ void HipBinAmd::executeHipCCCmd(vector<string> argv) {
600
563
cout << " ROCM_PATH=" << roccmPath << endl;
601
564
cout << " HIP_ROCCLR_HOME=" << rocclrHomePath << endl;
602
565
cout << " HIP_CLANG_PATH=" << hipClangPath <<endl;
603
- cout << " HIP_CLANG_INCLUDE_PATH=" << hipclangIncludePath <<endl;
604
566
cout << " HIP_INCLUDE_PATH=" << hipIncludePath <<endl;
605
567
cout << " HIP_LIB_PATH=" << hipLibPath <<endl;
606
568
cout << " DEVICE_LIB_PATH=" << deviceLibPath <<endl;
0 commit comments