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 작성하고 GitHub가 2022-08-30 16:53:21 -07:00를 커밋함
1 부모 ba5a0b9af5
커밋 d0aaed906d
24 파일이 변경됨
+100 -99

검색과 일치하는 파일 없음

+4 -4
파일 보기
@@ -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);
}