hsa-runtime integration
Change-Id: I48968966ffe164218ebff88d0e3a1268e96bf1dd
[ROCm/ROCR-Runtime commit: 4174f07fd1]
Este commit está contenido en:
cometido por
Evgeny Shcherbakov
padre
7892cc861c
commit
ce82829fc1
@@ -51,12 +51,14 @@ namespace core {
|
||||
|
||||
static const uint32_t HSA_EXT_FINALIZER_API_TABLE_ID = 0;
|
||||
static const uint32_t HSA_EXT_IMAGE_API_TABLE_ID = 1;
|
||||
static const uint32_t HSA_EXT_AQLPROFILE_API_TABLE_ID = 2;
|
||||
|
||||
::HsaApiTable hsa_api;
|
||||
::CoreApiTable core_api;
|
||||
::AmdExtTable amd_ext_api;
|
||||
::FinalizerExtTable finalizer_api;
|
||||
::ImageExtTable image_api;
|
||||
::AqlProfileExtTable aqlprofile_api;
|
||||
|
||||
HsaApiTable();
|
||||
void Init();
|
||||
|
||||
@@ -65,10 +65,14 @@ class ExtensionEntryPoints {
|
||||
// Table of function pointers for Hsa Extension Finalizer
|
||||
FinalizerExtTable finalizer_api;
|
||||
|
||||
// Table of function pointers for Hsa Extension AqlProfiler
|
||||
AqlProfileExtTable aqlprofile_api;
|
||||
|
||||
ExtensionEntryPoints();
|
||||
|
||||
bool LoadFinalizer(std::string library_name);
|
||||
bool LoadImage(std::string library_name);
|
||||
bool LoadAqlProfileApi(std::string library_name);
|
||||
void Unload();
|
||||
|
||||
private:
|
||||
@@ -83,6 +87,9 @@ class ExtensionEntryPoints {
|
||||
// Initialize table for HSA Image Extension Api's
|
||||
void InitImageExtTable();
|
||||
|
||||
// Initialize table for HSA AqlProfile Extension Api's
|
||||
void InitAqlProfileExtTable();
|
||||
|
||||
// Initialize Amd Ext table for Api related to Images
|
||||
void InitAmdExtTable();
|
||||
|
||||
|
||||
Referencia en una nueva incidencia
Block a user