diff --git a/src/hip_hcc.h b/src/hip_hcc.h index 82290bc489..3228222d69 100644 --- a/src/hip_hcc.h +++ b/src/hip_hcc.h @@ -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; }; diff --git a/src/hip_memory.cpp b/src/hip_memory.cpp index f2ab6d19a0..ee62ecab61 100644 --- a/src/hip_memory.cpp +++ b/src/hip_memory.cpp @@ -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; @@ -1098,3 +1098,4 @@ hipError_t hipIpcCloseMemHandle(void *devPtr){ // hipError_t hipIpcOpenEventHandle(hipEvent_t* event, hipIpcEventHandle_t handle){ // return hipSuccess; // } +#endif