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
This commit is contained in:
zatwierdzone przez
Ramesh Errabolu
rodzic
d23b26f760
commit
f4fe7ddf47
@@ -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