aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/IScheduler.cpp
diff options
context:
space:
mode:
authorPablo Tello <pablo.tello@arm.com>2018-01-31 17:27:09 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:45:03 +0000
commit456e47901692b03d29f5207c6ef64deb25059f35 (patch)
tree58adf6a73c3d49d9dfe50aaded4beee8efa14aff /src/runtime/IScheduler.cpp
parent52140b42f4f663da7f4537abbdebd13df541bcea (diff)
downloadComputeLibrary-456e47901692b03d29f5207c6ef64deb25059f35.tar.gz
COMPMID-765: Fixed CPU detection code to read larger buffer (was failing on Arm Cortex-A55 FPGA with 8 CPUs with lots of flags).
Change-Id: I493fb1013c6c25d9b9c809705b1ee24abac1d8d1 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/118456 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/runtime/IScheduler.cpp')
-rw-r--r--src/runtime/IScheduler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/IScheduler.cpp b/src/runtime/IScheduler.cpp
index 02541810bd..1d06c4e5e9 100644
--- a/src/runtime/IScheduler.cpp
+++ b/src/runtime/IScheduler.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2017 ARM Limited.
+ * Copyright (c) 2016-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -38,7 +38,7 @@ unsigned int get_cpu_impl()
{
#ifndef BARE_METAL
int fd = open("/proc/cpuinfo", 0); // NOLINT
- std::array<char, 1200> buff{ {} };
+ std::array<char, 3000> buff{ {} };
char *pos = nullptr;
char *end = nullptr;
bool foundid = false;
@@ -50,7 +50,7 @@ unsigned int get_cpu_impl()
return 0;
}
- int charsread = read(fd, buff.data(), 1200);
+ int charsread = read(fd, buff.data(), 3000);
pos = buff.data();
end = buff.data() + charsread;