File tree Expand file tree Collapse file tree 5 files changed +5
-17
lines changed Expand file tree Collapse file tree 5 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ void RocmInstallationDetector::scanLibDevicePath(llvm::StringRef Path) {
59
59
OCKL = FilePath;
60
60
} else if (BaseName == " opencl" ) {
61
61
OpenCL = FilePath;
62
- } else if (BaseName == " hip" ) {
63
- HIP = FilePath;
64
62
} else if (BaseName == " asanrtl" ) {
65
63
AsanRTL = FilePath;
66
64
} else if (BaseName == " oclc_finite_only_off" ) {
Original file line number Diff line number Diff line change @@ -392,9 +392,6 @@ HIPAMDToolChain::getDeviceLibs(const llvm::opt::ArgList &DriverArgs) const {
392
392
StringRef GpuArch = getGPUArch (DriverArgs);
393
393
assert (!GpuArch.empty () && " Must have an explicit GPU arch." );
394
394
395
- // Add the HIP specific bitcode library.
396
- BCLibs.emplace_back (RocmInstallation->getHIPPath ());
397
-
398
395
// Add common device libraries like ocml etc.
399
396
for (auto N : getCommonDeviceLibNames (DriverArgs, GpuArch.str ()))
400
397
BCLibs.emplace_back (N);
Original file line number Diff line number Diff line change @@ -127,7 +127,6 @@ class RocmInstallationDetector {
127
127
128
128
// Libraries that are always linked depending on the language
129
129
SmallString<0 > OpenCL;
130
- SmallString<0 > HIP;
131
130
132
131
// Asan runtime library
133
132
SmallString<0 > AsanRTL;
@@ -149,7 +148,7 @@ class RocmInstallationDetector {
149
148
bool Verbose;
150
149
151
150
bool allGenericLibsValid () const {
152
- return !OCML.empty () && !OCKL.empty () && !OpenCL.empty () && !HIP. empty () &&
151
+ return !OCML.empty () && !OCKL.empty () && !OpenCL.empty () &&
153
152
WavefrontSize64.isValid () && FiniteOnly.isValid () &&
154
153
UnsafeMath.isValid () && DenormalsAreZero.isValid () &&
155
154
CorrectlyRoundedSqrt.isValid ();
@@ -229,11 +228,6 @@ class RocmInstallationDetector {
229
228
return OpenCL;
230
229
}
231
230
232
- StringRef getHIPPath () const {
233
- assert (!HIP.empty ());
234
- return HIP;
235
- }
236
-
237
231
// / Returns empty string of Asan runtime library is not available.
238
232
StringRef getAsanRTLPath () const { return AsanRTL; }
239
233
Original file line number Diff line number Diff line change 208
208
// ALL-NOT: error:
209
209
// ALL: {{"[^"]*clang[^"]*"}}
210
210
211
- // RESDIR-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR:[^"]+(/|\\\\)rocm_resource_dir(/|\\\\)lib(64)?(/|\\\\)amdgcn(/|\\\\).*]]hip .bc"
212
- // ROCMDIR-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR:[^"]+(/|\\\\)rocm(/|\\\\)amdgcn(/|\\\\).*]]hip .bc"
211
+ // RESDIR-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR:[^"]+(/|\\\\)rocm_resource_dir(/|\\\\)lib(64)?(/|\\\\)amdgcn(/|\\\\).*]]ocml .bc"
212
+ // ROCMDIR-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR:[^"]+(/|\\\\)rocm(/|\\\\)amdgcn(/|\\\\).*]]ocml .bc"
213
213
214
- // ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]ocml.bc"
215
214
// ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]ockl.bc"
216
215
217
216
// FLUSHD-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_daz_opt_on.bc"
Original file line number Diff line number Diff line change 52
52
// CHECK-NOT: {{"[^"]*lld(\.exe){0,1}".* ".*hip.bc"}}
53
53
// CHECK: {{"[^"]*clang[^"]*".* "-triple" "x86_64-unknown-linux-gnu".* "-fsanitize=address"}}
54
54
55
- // NORDC: {{"[^"]*clang[^"]*".* "-emit-obj".* "-fcuda-is-device".* "-mlink-builtin-bitcode" ".*hip.bc" .* "-mlink-bitcode-file" ".*asanrtl.bc".* "-fsanitize=address".*}} "-o" "[[OUT:[^"]*.o]]"
55
+ // NORDC: {{"[^"]*clang[^"]*".* "-emit-obj".* "-fcuda-is-device".* .* "-mlink-bitcode-file" ".*asanrtl.bc".* "-fsanitize=address".*}} "-o" "[[OUT:[^"]*.o]]"
56
56
// NORDC-NOT: {{"[^"]*lld(\.exe){0,1}".*}} "[[OUT]]" {{".*asanrtl.bc" ".*hip.bc"}}
57
57
// NORDC: {{"[^"]*clang[^"]*".* "-triple" "x86_64-unknown-linux-gnu".* "-fsanitize=address"}}
58
58
59
59
// RDC: {{"[^"]*clang[^"]*".* "-triple" "x86_64-unknown-linux-gnu".* "-fsanitize=address"}}
60
- // RDC: {{"[^"]*clang[^"]*".* "-emit-llvm-bc".* "-fcuda-is-device".* "-mlink-builtin-bitcode" ".*hip.bc".* "-mlink- bitcode-file" ".*asanrtl.bc".* "-fsanitize=address".*}} "-o" "[[OUT:[^"]*.bc]]"
60
+ // RDC: {{"[^"]*clang[^"]*".* "-emit-llvm-bc".* "-fcuda-is-device".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-fsanitize=address".*}} "-o" "[[OUT:[^"]*.bc]]"
61
61
// RDC-NOT: {{"[^"]*lld(\.exe){0,1}".*}} "[[OUT]]" {{".*asanrtl.bc" ".*hip.bc"}}
62
62
63
63
// FAIL: error: cannot find ROCm device library for ABI version 5; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library
You can’t perform that action at this time.
0 commit comments