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
Esse commit está contido em:
German Andryeyev
2022-04-11 10:50:02 -04:00
commit c275d9b4b3
3 arquivos alterados com 29 adições e 13 exclusões
+2 -1
Ver Arquivo
@@ -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,