SWDEV-433143 - Changes VLA to std::vector in hipDeviceGetUuid
Change-Id: I7251b6a6e8efa7d4051c50422c0022623862d8ae
[ROCm/hip-tests commit: 9c0686dded]
This commit is contained in:
@@ -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<std::string> output(deviceCount); //NOLINT
|
||||
while (fgets(command_op, BUFFER_LEN, fpipe)) {
|
||||
std::string rocminfo_line(command_op);
|
||||
if ((std::string::npos != rocminfo_line.find("CPU-"))) {
|
||||
|
||||
Reference in New Issue
Block a user