mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Added support for new Compiler Cache environment variables in Level Zero. Moved `opencl/source/compiler_interface/default_cache_config.cpp` `level_zero/core/source/compiler_interface/default_cache_config.cpp` to shared directory `source/compiler_interface/default_cache_config.cpp` Switched enabling cache by default from per OS to per API. Changed default state of cl_cache in Level Zero to disabled. Related-To: NEO-10045 Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
16 lines
390 B
C++
16 lines
390 B
C++
/*
|
|
* Copyright (C) 2023-2024 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <string>
|
|
|
|
namespace NEO {
|
|
class EnvironmentVariableReader;
|
|
bool checkDefaultCacheDirSettings(std::string &cacheDir, NEO::EnvironmentVariableReader &reader);
|
|
time_t getFileModificationTime(const std::string &path);
|
|
size_t getFileSize(const std::string &path);
|
|
} // namespace NEO
|