From c01ec4e5079e42a52a8224b53e5e31ecc642e423 Mon Sep 17 00:00:00 2001 From: kjayapra-amd Date: Mon, 25 Jan 2021 20:35:49 -0500 Subject: [PATCH] SWDEV-270007 - Fixing the hipMemoryAllocateCoherent test binary path for hipMemoryAllocateCoherentDriver test path. Change-Id: Iae5363685d10fce32ff80ac5d6bfba460dc2b574 [ROCm/hip commit: f78522c2268d7c0ad900487908ada8133dd66cb6] --- .../runtimeApi/memory/hipMemoryAllocateCoherentDriver.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/hip/tests/src/runtimeApi/memory/hipMemoryAllocateCoherentDriver.cpp b/projects/hip/tests/src/runtimeApi/memory/hipMemoryAllocateCoherentDriver.cpp index b9d7602039..21ab3bed6a 100644 --- a/projects/hip/tests/src/runtimeApi/memory/hipMemoryAllocateCoherentDriver.cpp +++ b/projects/hip/tests/src/runtimeApi/memory/hipMemoryAllocateCoherentDriver.cpp @@ -33,10 +33,15 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA using namespace std; +const string coherent_test_dir = string(".") + PATH_SEPERATOR_STR + "directed_tests" + + PATH_SEPERATOR_STR + "runtimeApi" + PATH_SEPERATOR_STR + + "memory"; + string getRes() { FILE* in; char buff[512], buff_2[512]; - string str = "./hipMemoryAllocateCoherent"; + string coherent_test_str = "hipMemoryAllocateCoherent"; + string str = coherent_test_dir + PATH_SEPERATOR_STR + coherent_test_str; if (!(in = popen(str.c_str(), "r"))) { exit(1); }