SWDEV-307184 - Make sure runtime passes CO version into comgr

Disable devlib linking when runtime links multiple objects from
the app. Otherwise devlibs will be linked twice and may cause
undefined behavior with COv5.

Change-Id: I3b8640c64ff898893225fe3af5b4b4a32d42bf40
This commit is contained in:
German Andryeyev committed 2022-04-25 09:53:59 -04:00
1 parent f80769ef1a
commit c275d9b4b3
3 files changed
+29 -13

No files matched your search

+2 -1
View File
@@ -456,7 +456,8 @@ class Program : public amd::HeapObject {
bool linkLLVMBitcode(const amd_comgr_data_set_t inputs,
const std::vector<std::string>& options, const bool requiredDump,
amd::option::Options* amdOptions, amd_comgr_data_set_t* output,
char* binaryData[] = nullptr, size_t* binarySize = nullptr);
char* binaryData[] = nullptr, size_t* binarySize = nullptr,
const bool link_dev_libs = true);
//! Create the bitcode of the compiled input dataset
bool compileToLLVMBitcode(const amd_comgr_data_set_t compileInputs,