Files
compute-runtime/level_zero/core/source/global_teardown.h
Neil R Spruit 102c38fc34 feature: Use L0 Loader teardown callback
Related-To: LOCI-4174

- Call zelSetDriverTeardown during L0 Driver teardown to prevent users
from calling into destroyed functions and encountering crashes
during teardown.

Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com>
2023-05-02 19:42:06 +02:00

19 lines
401 B
C++

/*
* Copyright (C) 2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <level_zero/ze_api.h>
#include <string>
namespace L0 {
using zelSetDriverTeardown_fn = ze_result_t (*)();
static const std::string loaderLibraryFilename = "ze_loader";
void globalDriverTeardown();
ze_result_t setDriverTeardownHandleInLoader(std::string loaderLibraryName);
} // namespace L0