mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Rename gSpirVPath to gCompilationCachePath
gSpirVPath controls the location of the compilation cache for SPIR-V offline compilation, but its use would also make sense for binary offline compilation. This change renames it to gCompilationCachePath.
This commit is contained in:
committed by
Kévin Petit
parent
0b1520f508
commit
6eec559ffd
@@ -29,7 +29,7 @@ using namespace std;
|
||||
|
||||
CompilationMode gCompilationMode = kOnline;
|
||||
CompilationCacheMode gCompilationCacheMode = kCacheModeCompileIfAbsent;
|
||||
std::string gSpirVPath = ".";
|
||||
std::string gCompilationCachePath = ".";
|
||||
|
||||
void helpInfo ()
|
||||
{
|
||||
@@ -82,14 +82,14 @@ int parseCustomParam (int argc, const char *argv[], const char *ignore)
|
||||
if (!strcmp(argv[i + 2], "cache"))
|
||||
{
|
||||
gCompilationCacheMode = kCacheModeForceRead;
|
||||
gSpirVPath = argv[i + 3];
|
||||
gCompilationCachePath = argv[i + 3];
|
||||
log_info(" SpirV reading from cache enabled.\n");
|
||||
delArg += 2;
|
||||
}
|
||||
else if (!strcmp(argv[i + 2], "generate"))
|
||||
{
|
||||
gCompilationCacheMode = kCacheModeOverwrite;
|
||||
gSpirVPath = argv[i + 3];
|
||||
gCompilationCachePath = argv[i + 3];
|
||||
log_info(" SpirV force generate binaries enabled.\n");
|
||||
delArg += 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user