Clean up disable.

Add USE_HCC_LOCK (disabled)
Disable USE_PEER_TO_PEER.
This commit is contained in:
Ben Sander
2016-04-11 09:09:36 -05:00
parent a894ca3abb
commit efffb0ed86
5 changed files with 10 additions and 11 deletions
-4
View File
@@ -63,7 +63,6 @@ hipError_t hipDeviceDisablePeerAccess (int peerDeviceId)
HIP_INIT_API(peerDeviceId);
hipError_t err = hipSuccess;
#if USE_PEER_TO_PEER
auto thisDevice = ihipGetTlsDefaultDevice();
auto peerDevice = ihipGetDevice(peerDeviceId);
@@ -92,7 +91,6 @@ hipError_t hipDeviceDisablePeerAccess (int peerDeviceId)
} else {
err = hipErrorInvalidDevice;
}
#endif
return ihipLogStatus(err);
};
@@ -105,7 +103,6 @@ hipError_t hipDeviceEnablePeerAccess (int peerDeviceId, unsigned int flags)
HIP_INIT_API(peerDeviceId, flags);
hipError_t err = hipSuccess;
#if USE_PEER_TO_PEER
if (flags != 0) {
err = hipErrorInvalidValue;
} else {
@@ -125,7 +122,6 @@ hipError_t hipDeviceEnablePeerAccess (int peerDeviceId, unsigned int flags)
err = hipErrorInvalidDevice;
}
}
#endif
return ihipLogStatus(err);
}