Skip to content

Commit

Permalink
Disable incomplete IPC APIs
Browse files Browse the repository at this point in the history
Change-Id: I322d7fc78aafa0ff558d5caa75e06950f6f6feba
  • Loading branch information
mangupta committed Dec 13, 2016
1 parent 95ae514 commit 22bce40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/hip_hcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ struct LockedBase {
class ihipIpcMemHandle_t
{
public:
#ifdef ENABLE_HIP_IPC
hsa_amd_ipc_memory_t ipc_handle; ///< ipc memory handle on ROCr
#endif
char reserved[HIP_IPC_HANDLE_SIZE];
size_t psize;
};
Expand Down
3 changes: 2 additions & 1 deletion src/hip_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ hipError_t hipMemGetAddressRange ( hipDeviceptr_t* pbase, size_t* psize, hipDevi


//TODO: IPC implementaiton:

#ifdef ENABLE_HIP_IPC
hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t* handle, void* devPtr){
HIP_INIT_API ( handle, devPtr);
hipError_t hipStatus = hipSuccess;
Expand Down Expand Up @@ -1098,3 +1098,4 @@ hipError_t hipIpcCloseMemHandle(void *devPtr){
// hipError_t hipIpcOpenEventHandle(hipEvent_t* event, hipIpcEventHandle_t handle){
// return hipSuccess;
// }
#endif

0 comments on commit 22bce40

Please sign in to comment.