Files
compute-runtime/opencl/source/os_interface/linux/platform_teardown_linux.cpp
Mateusz Jablonski 48c084ca32 Create platformsImpl when needed
Change-Id: Ie89356761fc39910c765066d40cd363c93002692
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-09-07 16:36:40 +02:00

19 lines
406 B
C++

/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/platform/platform.h"
namespace NEO {
void __attribute__((constructor)) platformsConstructor() {
platformsImpl = new std::vector<std::unique_ptr<Platform>>;
}
void __attribute__((destructor)) platformsDestructor() {
delete platformsImpl;
platformsImpl = nullptr;
}
} // namespace NEO