From af570d8d634e69fed21eb850fadbc33713bccb5a Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Mon, 20 Nov 2023 10:08:16 +0000 Subject: [PATCH] SWDEV-433143 - Changes VLA to std::vector in hipDeviceGetUuid Change-Id: I7251b6a6e8efa7d4051c50422c0022623862d8ae [ROCm/hip-tests commit: 9c0686ddedc0c50bce9a97aa174f28eddd20fa3b] --- projects/hip-tests/catch/unit/device/hipDeviceGetUuid.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip-tests/catch/unit/device/hipDeviceGetUuid.cc b/projects/hip-tests/catch/unit/device/hipDeviceGetUuid.cc index 42a3d8d0e5..3ba0493eca 100644 --- a/projects/hip-tests/catch/unit/device/hipDeviceGetUuid.cc +++ b/projects/hip-tests/catch/unit/device/hipDeviceGetUuid.cc @@ -134,7 +134,7 @@ TEST_CASE("Unit_hipDeviceGetUuid_From_RocmInfo") { } char command_op[BUFFER_LEN]; int j = 0; - std::string output[deviceCount]; //NOLINT + std::vector output(deviceCount); //NOLINT while (fgets(command_op, BUFFER_LEN, fpipe)) { std::string rocminfo_line(command_op); if ((std::string::npos != rocminfo_line.find("CPU-"))) {