Make explicit reference between init modules.
Make explicit reference to hsa_api_trace.cpp from
initialization of hsa_table_interface.cpp. Breaks
the ability to use hsa_table_interface.cpp in plugins.
Change-Id: I22a42d3a132512b0d9ec7a1ca629b169e7f8eba7
[ROCm/ROCR-Runtime commit: f4fe7ddf47]
This commit is contained in:
committed by
Ramesh Errabolu
parent
f9cfe09894
commit
b6ed5e92bd
@@ -57,6 +57,12 @@ const HsaApiTable* hsa_table_interface_get_table() {
|
||||
return hsaApiTable;
|
||||
}
|
||||
|
||||
class Init {
|
||||
public:
|
||||
Init() { rocr::core::LoadInitialHsaApiTable(); }
|
||||
};
|
||||
static Init LinkAtLoadOrFirstTranslationUnitAccess;
|
||||
|
||||
// Pass through stub functions
|
||||
hsa_status_t HSA_API hsa_init() { return coreApiTable->hsa_init_fn(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user