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

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

Change-Id: I3d171540403f74222e631d1a8e393386461c9729


[ROCm/hip commit: 87c69c5759]
This commit is contained in:
ROCm CI Service Account
2022-08-31 05:23:21 +05:30
committato da GitHub
parent 825bd9b2ce
commit 1c54135503
24 ha cambiato i file con 100 aggiunte e 99 eliminazioni
@@ -190,7 +190,7 @@ static bool validatePageTableAllocations(const char *devList, int visDevCnt) {
setenv("HIP_VISIBLE_DEVICES", devList, 1);
// First Call to initialize hip api
hipGetDeviceCount(&tmpdev);
HIP_CHECK(hipGetDeviceCount(&tmpdev));
// Get memory snapshot before hostmalloc
@@ -214,7 +214,7 @@ static bool validatePageTableAllocations(const char *devList, int visDevCnt) {
printf("Error while running rsmi_dev_memory_usage_get func\n");
dlclose(rocm_smi_h);
rsmi_shut_down_fp();
hipHostFree(ptr);
HIP_CHECK(hipHostFree(ptr));
return false;
}
current.push_back(used);
@@ -236,7 +236,7 @@ static bool validatePageTableAllocations(const char *devList, int visDevCnt) {
testPassed = false;
}
hipHostFree(ptr);
HIP_CHECK(hipHostFree(ptr));
// writing only, no need for read-descriptor
close(fd[0]);