From d50a280d729d726d08ac7f6b6a17efd3a5ae5b16 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Fri, 9 Sep 2016 12:06:19 +0530 Subject: [PATCH] Remove redundant API hipDeviceGetFromId from HCC path Change-Id: Id6b4f1374b12cb3949d725f0859425cd8de6d868 [ROCm/hip commit: 51f25f92716c55fa9af3ac5a89f6948c41630c94] --- .../hip/include/hcc_detail/hip_runtime_api.h | 7 ------- projects/hip/src/hip_device.cpp | 16 ---------------- 2 files changed, 23 deletions(-) diff --git a/projects/hip/include/hcc_detail/hip_runtime_api.h b/projects/hip/include/hcc_detail/hip_runtime_api.h index e447fb609c..71e46612de 100644 --- a/projects/hip/include/hcc_detail/hip_runtime_api.h +++ b/projects/hip/include/hcc_detail/hip_runtime_api.h @@ -1260,13 +1260,6 @@ hipError_t hipCtxDisablePeerAccess (hipCtx_t peerCtx); * @} */ - -// TODO-ctx -/** - * @return hipSuccess, hipErrorInvalidDevice - */ -hipError_t hipDeviceGetFromId(hipDevice_t *device, int deviceId); - /** * @brief Returns a handle to a compute device * @param [out] device diff --git a/projects/hip/src/hip_device.cpp b/projects/hip/src/hip_device.cpp index fdfb25d7b0..fe7ad6ecd7 100644 --- a/projects/hip/src/hip_device.cpp +++ b/projects/hip/src/hip_device.cpp @@ -245,22 +245,6 @@ hipError_t hipSetDeviceFlags( unsigned int flags) return ihipLogStatus(e); }; -hipError_t hipDeviceGetFromId(hipDevice_t *device, int deviceId) -{ - HIP_INIT_API(device, deviceId); - - hipError_t e = hipSuccess; - - *device = ihipGetDevice(deviceId); - - if (device == nullptr) { - e = hipErrorInvalidDevice; - } - - - return ihipLogStatus(e); -} - hipError_t hipDeviceComputeCapability(int *major, int *minor, hipDevice_t device) { HIP_INIT_API(major,minor, device);