Build ROCr core and image libraries as one shared object
Change-Id: I3a16c1227e7db2e386ab33886965596fa0fb0c87
This commit is contained in:
committed by
Sean Keely
parent
db6a781f0c
commit
0ca0691ca7
@@ -1349,13 +1349,9 @@ void Runtime::LoadExtensions() {
|
||||
#ifdef HSA_LARGE_MODEL
|
||||
static const std::string kFinalizerLib[] = {"hsa-ext-finalize64.dll",
|
||||
"libhsa-ext-finalize64.so.1"};
|
||||
static const std::string kImageLib[] = {"hsa-ext-image64.dll",
|
||||
"libhsa-ext-image64.so.1"};
|
||||
#else
|
||||
static const std::string kFinalizerLib[] = {"hsa-ext-finalize.dll",
|
||||
"libhsa-ext-finalize.so.1"};
|
||||
static const std::string kImageLib[] = {"hsa-ext-image.dll",
|
||||
"libhsa-ext-image.so.1"};
|
||||
#endif
|
||||
|
||||
// Update Hsa Api Table with handle of Finalizer extension Apis
|
||||
@@ -1366,7 +1362,7 @@ void Runtime::LoadExtensions() {
|
||||
core::HsaApiTable::HSA_EXT_FINALIZER_API_TABLE_ID);
|
||||
|
||||
// Update Hsa Api Table with handle of Image extension Apis
|
||||
extensions_.LoadImage(kImageLib[os_index(os::current_os)]);
|
||||
extensions_.LoadImage();
|
||||
hsa_api_table_.LinkExts(&extensions_.image_api,
|
||||
core::HsaApiTable::HSA_EXT_IMAGE_API_TABLE_ID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user