mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
create trace files about cl_cache usage
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ad8e640545
commit
53223dc2b5
@@ -26,9 +26,6 @@ struct CompilerCacheConfig {
|
||||
|
||||
class CompilerCache {
|
||||
public:
|
||||
static const std::string getCachedFileName(const HardwareInfo &hwInfo, ArrayRef<const char> input,
|
||||
ArrayRef<const char> options, ArrayRef<const char> internalOptions);
|
||||
|
||||
CompilerCache(const CompilerCacheConfig &config);
|
||||
virtual ~CompilerCache() = default;
|
||||
|
||||
@@ -37,6 +34,9 @@ class CompilerCache {
|
||||
CompilerCache &operator=(const CompilerCache &) = delete;
|
||||
CompilerCache &operator=(CompilerCache &&) = delete;
|
||||
|
||||
const std::string getCachedFileName(const HardwareInfo &hwInfo, ArrayRef<const char> input,
|
||||
ArrayRef<const char> options, ArrayRef<const char> internalOptions);
|
||||
|
||||
MOCKABLE_VIRTUAL bool cacheBinary(const std::string kernelFileHash, const char *pBinary, uint32_t binarySize);
|
||||
MOCKABLE_VIRTUAL std::unique_ptr<char[]> loadCachedBinary(const std::string kernelFileHash, size_t &cachedBinarySize);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user