changed internal structure of hipFunction and hipModule

Change-Id: Ifa343782e29d7e056efc47e56253311013005093
This commit is contained in:
Aditya Atluri
2016-08-24 09:47:11 -05:00
parent 2287af23a1
commit cb996c7b7a
3 changed files with 32 additions and 36 deletions
+14
View File
@@ -396,6 +396,20 @@ public:
typedef ihipStreamCriticalBase_t<StreamMutex> ihipStreamCritical_t;
typedef LockedAccessor<ihipStreamCritical_t> LockedAccessor_StreamCrit_t;
class ihipModule_t{
public:
hsa_executable_t executable;
hsa_code_object_t object;
std::string fileName;
};
class ihipFunction_t{
public:
hsa_executable_symbol_t kernel_symbol;
uint64_t kernel;
};
// Internal stream structure.
class ihipStream_t {
public:
+2 -8
View File
@@ -52,15 +52,9 @@ typedef struct ihipDevice_t *hipDevice_t;
typedef struct ihipStream_t *hipStream_t;
typedef struct {
uint64_t kernel;
uint64_t symbol;
}hipFunction;
typedef struct ihipModule_t *hipModule;
typedef struct{
uint64_t executable;
uint64_t object;
} hipModule;
typedef struct ihipFunction_t *hipFunction;
typedef struct hipEvent_t {
struct ihipEvent_t *_handle;