mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
feature: enable cl_cache by default on Linux
Resolves: NEO-4262 Signed-off-by: Kacper Kasper <kacper.k.kasper@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
154530ad23
commit
269cba1659
@@ -17,6 +17,10 @@
|
||||
#include <link.h>
|
||||
|
||||
namespace NEO {
|
||||
int64_t defaultCacheEnabled() {
|
||||
return 1l;
|
||||
}
|
||||
|
||||
std::string makePath(const std::string &lhs, const std::string &rhs) {
|
||||
if (lhs.size() == 0) {
|
||||
return rhs;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
namespace NEO {
|
||||
class SettingsReader;
|
||||
int64_t defaultCacheEnabled();
|
||||
std::string makePath(const std::string &lhs, const std::string &rhs);
|
||||
bool checkDefaultCacheDirSettings(std::string &cacheDir, SettingsReader *reader);
|
||||
time_t getFileModificationTime(const std::string &path);
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
#include "shared/source/compiler_interface/os_compiler_cache_helper.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
int64_t defaultCacheEnabled() {
|
||||
return 0l;
|
||||
}
|
||||
std::string makePath(const std::string &lhs, const std::string &rhs) {
|
||||
return lhs + rhs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user