mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
Change-Id: Ie89356761fc39910c765066d40cd363c93002692 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
19 lines
406 B
C++
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
|