Move Images code to hsa-runtime folder
Change-Id: I53c1845d985ac3e9708d952865009c0021f3bb4f
[ROCm/ROCR-Runtime commit: 7e3db20826]
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#include "inc/hsa.h"
|
||||
#include "inc/hsa_api_trace.h"
|
||||
#include "core/inc/hsa_table_interface.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void HSA_API_EXPORT Load(const ::HsaApiTable* table);
|
||||
void HSA_API_EXPORT Unload();
|
||||
|
||||
// Per library unload callback function. Set by the finalizer or image library
|
||||
// when needed.
|
||||
void (*UnloadCallback)() = NULL;
|
||||
|
||||
void Load(const ::HsaApiTable* table) {
|
||||
// Setup to bypass the runtime intercept layer.
|
||||
hsa_table_interface_init(table);
|
||||
}
|
||||
|
||||
void Unload() {
|
||||
if (UnloadCallback != NULL) {
|
||||
UnloadCallback();
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Fai riferimento in un nuovo problema
Block a user