Remove HSA dependency from hipFunction_t

Place _groupSegmentSize and _privateSegmentSize inside Function,
remove hsa_executable_symbol_t.
This commit is contained in:
Ben Sander
2016-12-17 07:21:15 -06:00
vanhempi 6ed7e1c1c1
commit 8bf4bd2f7d
2 muutettua tiedostoa jossa 37 lisäystä ja 34 poistoa
@@ -30,10 +30,10 @@ THE SOFTWARE.
#include <stdint.h>
#include <stddef.h>
#include <string>
#include <hip/hcc_detail/host_defines.h>
#include <hip/hip_runtime_api.h>
#include <hsa/hsa.h>
#if defined (__HCC__) && (__hcc_workweek__ < 16155)
#error("This version of HIP requires a newer version of HCC.");
@@ -73,8 +73,10 @@ typedef struct ihipIpcEventHandle_t *hipIpcEventHandle_t;
typedef struct ihipModule_t *hipModule_t;
struct ihipModuleSymbol_t{
hsa_executable_symbol_t _hsaSymbol;
uint64_t _object; // The kernel object.
uint64_t _object; // The kernel object.
uint32_t _groupSegmentSize;
uint32_t _privateSegmentSize;
//std::string _name; // TODO - review for performance cost. Name is just used for debug.
};
typedef struct ihipModuleSymbol_t hipFunction_t;