1fc7f2dec7
Change-Id: I53c1845d985ac3e9708d952865009c0021f3bb4f
[ROCm/ROCR-Runtime commit: 7e3db20826]
30 строки
582 B
C++
30 строки
582 B
C++
#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
|