Rename gSpirVPath to gCompilationCachePath

gSpirVPath controls the location of the compilation cache for SPIR-V
offline compilation, but its name falsely implies that it is
SPIR-V specific.  This change renames it to gCompilationCachePath.
This commit is contained in:
Stuart Brady
2019-06-27 18:15:15 +01:00
committed by Kévin Petit
parent 9be570cdf0
commit f2f458b675
4 changed files with 12 additions and 11 deletions

View File

@@ -58,7 +58,7 @@ std::vector<unsigned char> readBinary(const char *file_name)
std::vector<unsigned char> readSPIRV(const char *file_name)
{
std::string full_name_str = gSpirVPath + slash + file_name + spvExt + gAddrWidth;
std::string full_name_str = gCompilationCachePath + slash + file_name + spvExt + gAddrWidth;
return readBinary(full_name_str.c_str());
}
@@ -97,7 +97,7 @@ static int offline_get_program_with_il(clProgramWrapper &prog,
cl_int err = 0;
std::string outputTypeStr = "binary";
std::string defaultScript = std::string("..") + slash + std::string("spv_to_binary.py");
std::string outputFilename = gSpirVPath + slash + std::string(prog_name);
std::string outputFilename = gCompilationCachePath + slash + std::string(prog_name);
std::string sourceFilename = outputFilename + spvExt;
std::string scriptArgs =