From 0d69b79622205b861a9bdf41f05197ea5963e199 Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Wed, 1 Apr 2020 12:29:13 -0400 Subject: [PATCH] SWDEV-184709 - support hipLaunchCooperativeKernel() - Enable cooperative tests for single and multiple devices Change-Id: I54b6713f578b6b5e670f117b17469c0091028c99 --- tests/src/runtimeApi/module/hipLaunchCoopMultiKernel.cpp | 4 +--- tests/src/runtimeApi/module/hipLaunchCooperativeKernel.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/src/runtimeApi/module/hipLaunchCoopMultiKernel.cpp b/tests/src/runtimeApi/module/hipLaunchCoopMultiKernel.cpp index b4d57a7693..31b9d94ac2 100644 --- a/tests/src/runtimeApi/module/hipLaunchCoopMultiKernel.cpp +++ b/tests/src/runtimeApi/module/hipLaunchCoopMultiKernel.cpp @@ -20,7 +20,7 @@ THE SOFTWARE. // Simple test for hipLaunchCooperativeKernelMultiDevice API. /* HIT_START - * BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM all + * BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc * TEST: %t * HIT_END */ @@ -179,8 +179,6 @@ int main() { hipLaunchCooperativeKernelMultiDevice(launchParamsList, nGpu, 0); - HIPCHECK(hipMemcpy(init, dC, sizeof(long), hipMemcpyDeviceToHost)); - if (*dC != (((long)(BufferSizeInDwords) * (BufferSizeInDwords - 1)) / 2)) { std::cout << "Data validation failed for grid size = " << dimGrid.x << " and block size = " << dimBlock.x << "\n"; std::cout << "Test failed! \n"; diff --git a/tests/src/runtimeApi/module/hipLaunchCooperativeKernel.cpp b/tests/src/runtimeApi/module/hipLaunchCooperativeKernel.cpp index c76685fa89..6862c61b1e 100644 --- a/tests/src/runtimeApi/module/hipLaunchCooperativeKernel.cpp +++ b/tests/src/runtimeApi/module/hipLaunchCooperativeKernel.cpp @@ -22,7 +22,7 @@ THE SOFTWARE. // Simple test for hipLaunchCooperativeKernel API. /* HIT_START - * BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM all + * BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc * TEST: %t * HIT_END */