From 38ee9fb2c327f818fcb3936b973ac91484f8c4e6 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Fri, 23 Sep 2022 12:35:04 +0530 Subject: [PATCH] SWDEV-312707 - Avoid Char[] memory corrption on high GPU systems by increasing array size. (#2954) Change-Id: Ia743e87d4cbcc9ccaa9e782109114dd878ab8b0d [ROCm/hip commit: 411a00b23260fddee9f756782f8fc7e4184104c9] --- projects/hip/tests/src/runtimeApi/device/hipSetGetDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/tests/src/runtimeApi/device/hipSetGetDevice.cpp b/projects/hip/tests/src/runtimeApi/device/hipSetGetDevice.cpp index d82ac5916e..63dd1b01c9 100644 --- a/projects/hip/tests/src/runtimeApi/device/hipSetGetDevice.cpp +++ b/projects/hip/tests/src/runtimeApi/device/hipSetGetDevice.cpp @@ -86,7 +86,7 @@ void getDeviceCount(int *numDevices) { #endif } -#define MAX_SIZE 30 +#define MAX_SIZE 1024 // Pass either -1 in deviceNumber or invalid device number bool testInvalidDevice(int numDevices, bool useRocrEnv, int deviceNumber) {