diff --git a/rocclr/compiler/lib/utils/v0_8/libUtils.cpp b/rocclr/compiler/lib/utils/v0_8/libUtils.cpp index 3b831682fb..d68f150edc 100644 --- a/rocclr/compiler/lib/utils/v0_8/libUtils.cpp +++ b/rocclr/compiler/lib/utils/v0_8/libUtils.cpp @@ -33,6 +33,8 @@ static const std::string sgfx907 = "AMD:AMDGPU:9:0:7"; static const std::string sgfx1000 = "AMD:AMDGPU:10:0:0"; static const std::string sgfx1001 = "AMD:AMDGPU:10:0:1"; +static const std::string legacyLibName = LINUX_ONLY("lib") "amdocl12cl" LP64_SWITCH(LINUX_SWITCH("32", ""), "64") LINUX_SWITCH(".so", ".dll"); + // Utility function to set a flag in option structure // of the aclDevCaps. void @@ -1139,3 +1141,7 @@ void dump(aclBinary *bin) { bifbase *elfBin = reinterpret_cast(bin->bin); elfBin->dump(); } + +const std::string &getLegacyLibName() { + return legacyLibName; +} diff --git a/rocclr/compiler/lib/utils/v0_8/libUtils.h b/rocclr/compiler/lib/utils/v0_8/libUtils.h index ebbbfffe90..3d288359ea 100644 --- a/rocclr/compiler/lib/utils/v0_8/libUtils.h +++ b/rocclr/compiler/lib/utils/v0_8/libUtils.h @@ -291,6 +291,8 @@ inline bool isHSAILTarget(const aclTargetInfo& target) return (target.arch_id == aclHSAIL || target.arch_id == aclHSAIL64); } +const std::string& getLegacyLibName(); + enum scId { SC_AMDIL = 0, SC_HSAIL = 0,