Files
compute-runtime/opencl/source/global_teardown/global_platform_teardown.cpp
Maciej Plewka 1dafb66463 fix: return success from release calls after platform teardown
Related-To: NEO-11282
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2024-09-26 19:30:26 +02:00

23 lines
440 B
C++

/*
* Copyright (C) 2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/platform/platform.h"
namespace NEO {
volatile bool wasPlatformTeardownCalled = false;
void globalPlatformSetup() {
platformsImpl = new std::vector<std::unique_ptr<Platform>>;
}
void globalPlatformTeardown() {
delete platformsImpl;
platformsImpl = nullptr;
wasPlatformTeardownCalled = true;
}
} // namespace NEO