Fixed hipPeerToPeer_simple test

- Moved test inside p2p dir
- Updated HIPCHECK to ignore hipErrorPeerAccessAlreadyEnabled
- Added check for mGPUs


[ROCm/clr commit: 2de0f1cafd]
Этот коммит содержится в:
Rahul Garg
2017-12-11 15:21:39 +05:30
родитель 16eec2b1ca
Коммит 56754062fc
2 изменённых файлов: 9 добавлений и 2 удалений
@@ -23,7 +23,7 @@ THE SOFTWARE.
// Also serves as a template for other tests.
/* HIT_START
* BUILD: %t %s test_common.cpp
* BUILD: %t %s ../test_common.cpp
* RUN: %t EXCLUDE_HIP_PLATFORM all
* RUN: %t --memcpyWithPeer EXCLUDE_HIP_PLATFORM all
* RUN: %t --mirrorPeers EXCLUDE_HIP_PLATFORM all
@@ -391,7 +391,14 @@ void simpleNegative()
int main(int argc, char *argv[])
{
parseMyArguments(argc, argv);
int gpuCount;
HIPCHECK(hipGetDeviceCount(&gpuCount));
if (gpuCount < 2)
{
printf("P2P application requires atleast 2 gpu devices\n");
return 0;
}
if (p_tests & 0x100) {
testPeerHostToDevice(false/*useAsyncCopy*/);
+1 -1
Просмотреть файл
@@ -70,7 +70,7 @@ THE SOFTWARE.
#define HIPCHECK(error) \
{\
hipError_t localError = error; \
if (localError != hipSuccess) { \
if ((localError != hipSuccess) && (localError != hipErrorPeerAccessAlreadyEnabled)){ \
printf("%serror: '%s'(%d) from %s at %s:%d%s\n", \
KRED,hipGetErrorString(localError), localError,\
#error,\