SWDEV-353807 - Fixes multiple catch issues (#2912)

- enforcing c++17 for all tests
- Warning as error: ignoring return value

Change-Id: I3d171540403f74222e631d1a8e393386461c9729
Αυτή η υποβολή περιλαμβάνεται σε:
ROCm CI Service Account authored and GitHub committed 2022-08-30 16:53:21 -07:00
1 γονέας ba5a0b9af5
υποβολή d0aaed906d
24 files changed
+100 -99

No files matched your search

@@ -53,7 +53,7 @@ TEST_CASE("Unit_hipManagedKeyword_SingleGpu") {
hipLaunchKernelGGL(add, dimGrid, dimBlock, 0, 0, static_cast<const float*>(A),
static_cast<float*>(B));
hipDeviceSynchronize();
HIP_CHECK(hipDeviceSynchronize());
float maxError = 0.0f;
for (int i = 0; i < N; i++)
@@ -64,12 +64,12 @@ TEST_CASE("Unit_hipManagedKeyword_SingleGpu") {
TEST_CASE("Unit_hipManagedKeyword_MultiGpu") {
int numDevices = 0;
hipGetDeviceCount(&numDevices);
HIP_CHECK(hipGetDeviceCount(&numDevices));
for (int i = 0; i < numDevices; i++) {
hipSetDevice(i);
HIP_CHECK(hipSetDevice(i));
GPU_func<<< 1, 1 >>>();
hipDeviceSynchronize();
HIP_CHECK(hipDeviceSynchronize());
}
REQUIRE(x == numDevices);
}