From 7fa5b6ddfe68db20502013687cff8632d8796ce8 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Thu, 10 Mar 2022 15:04:48 +0530 Subject: [PATCH] SWDEV-323849 - Fix for dtests failures (#2539) Change-Id: Iffd78656d7f67b11d3eb6d1e7859bb6168b68a57 --- catch/multiproc/hipMemCoherencyTstMProc.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/catch/multiproc/hipMemCoherencyTstMProc.cc b/catch/multiproc/hipMemCoherencyTstMProc.cc index 0f842464b9..8e36c4331d 100644 --- a/catch/multiproc/hipMemCoherencyTstMProc.cc +++ b/catch/multiproc/hipMemCoherencyTstMProc.cc @@ -1,5 +1,5 @@ /* - Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. + Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -128,7 +128,7 @@ TEST_CASE("Unit_malloc_CoherentTst") { // Read string from child and close reading end. read(fd1[0], GpuId, 2 * sizeof(int)); close(fd1[0]); - if ((GpuId[0] == 1) || (GpuId[0] == 1)) { + if ((GpuId[0] == 1) || (GpuId[1] == 1)) { WARN("This test is not applicable on MI60 & MI100." "Skipping the test!!"); exit(0); @@ -223,7 +223,7 @@ TEST_CASE("Unit_malloc_CoherentTstWthAdvise") { // Read string from child and close reading end. read(fd1[0], GpuId, 2 * sizeof(int)); close(fd1[0]); - if ((GpuId[0] == 1) || (GpuId[0] == 1)) { + if ((GpuId[0] == 1) || (GpuId[1] == 1)) { WARN("This test is not applicable on MI60 & MI100." "Skipping the test!!"); exit(0); @@ -320,7 +320,7 @@ TEST_CASE("Unit_mmap_CoherentTst") { // Read string from child and close reading end. read(fd1[0], GpuId, 2 * sizeof(int)); close(fd1[0]); - if ((GpuId[0] == 1) || (GpuId[0] == 1)) { + if ((GpuId[0] == 1) || (GpuId[1] == 1)) { WARN("This test is not applicable on MI60 & MI100." "Skipping the test!!"); exit(0); @@ -418,7 +418,7 @@ TEST_CASE("Unit_mmap_CoherentTstWthAdvise") { // Read string from child and close reading end. read(fd1[0], GpuId, 2 * sizeof(int)); close(fd1[0]); - if ((GpuId[0] == 1) || (GpuId[0] == 1)) { + if ((GpuId[0] == 1) || (GpuId[1] == 1)) { WARN("This test is not applicable on MI60 & MI100." "Skipping the test!!"); exit(0);