2020-09-01 18:38:50 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "opencl/source/platform/platform.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
2020-09-04 17:22:19 +08:00
|
|
|
void __attribute__((constructor)) platformsConstructor() {
|
|
|
|
platformsImpl = new std::vector<std::unique_ptr<Platform>>;
|
|
|
|
}
|
2020-09-01 18:38:50 +08:00
|
|
|
void __attribute__((destructor)) platformsDestructor() {
|
|
|
|
delete platformsImpl;
|
|
|
|
platformsImpl = nullptr;
|
|
|
|
}
|
|
|
|
} // namespace NEO
|