SWDEV-209747 - Staging Copy will not be supported in HIP, adjust test case accordingly.

Change-Id: Iad616ef3990d539cdb82bbd8a22ea2124f7abe50
Этот коммит содержится в:
kjayapra-amd
2020-06-22 19:26:54 -04:00
коммит произвёл Karthik Jayaprakash
родитель 93da1b1f11
Коммит 04b58e6e50
5 изменённых файлов: 35 добавлений и 5 удалений
Обычный файл → Исполняемый файл
+7 -1
Просмотреть файл
@@ -272,7 +272,6 @@ void HipMemcpyWithStreamtests::TestkindDtoD(void) {
size_t Nbytes = N * sizeof(int);
int numDevices = 0;
unsigned blocks = HipTest::setNumBlocks(blocksPerCU, threadsPerBlock, N);
HIPCHECK(hipGetDeviceCount(&numDevices));
// If you have single GPU machine the return
@@ -280,6 +279,13 @@ void HipMemcpyWithStreamtests::TestkindDtoD(void) {
return;
}
int canAccessPeer = 0;
hipDeviceCanAccessPeer(&canAccessPeer, 0, 1);
if (!canAccessPeer) {
std::cout<<"Machine does not seem to have P2P Capabilities"<<std::endl;
return;
}
int *A_d[numDevices], *B_d[numDevices], *C_d[numDevices];
int *A_h[numDevices], *B_h[numDevices], *C_h[numDevices];