Create platformsImpl when needed

Change-Id: Ie89356761fc39910c765066d40cd363c93002692
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-09-04 11:22:19 +02:00
committed by sys_ocldev
parent 38ecb25ee6
commit 48c084ca32
5 changed files with 11 additions and 4 deletions

View File

@@ -37,7 +37,7 @@
#include <map>
namespace NEO {
std::vector<std::unique_ptr<Platform>> *platformsImpl = new std::vector<std::unique_ptr<Platform>>;
std::vector<std::unique_ptr<Platform>> *platformsImpl = nullptr;
Platform::Platform(ExecutionEnvironment &executionEnvironmentIn) : executionEnvironment(executionEnvironmentIn) {
clDevices.reserve(4);