mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Refactor setting of compilation mode and cache mode
This change refactors the setting of the compilation mode, so that instead of using a 'gOfflineCompiler' bool together with a 'gOfflineCompilerOutputType' enum, a single 'gCompilationMode' enum is used. The default value for gCompilationMode is 'kOnline', which is equivalent to the previous defaulting of gOfflineCompiler to false. In addition, it refactors the setting of the compilation cache mode, so that instead of the 'gForceSpirVCache' and 'gForceSpirVGenerate' bools, a single 'gCompilationCacheMode' enum is used. The default value for gCompilationCacheMode is 'kCacheModeCompileIfAbsent', which is equivalent to the previous defaulting of both booleans to false.
This commit is contained in:
committed by
Kévin Petit
parent
814dd8adc0
commit
9be570cdf0
@@ -139,7 +139,7 @@ int get_program_with_il(clProgramWrapper &prog,
|
||||
const char *prog_name)
|
||||
{
|
||||
cl_int err = 0;
|
||||
if (gOfflineCompiler && gOfflineCompilerOutputType == kBinary) {
|
||||
if (gCompilationMode == kBinary) {
|
||||
return offline_get_program_with_il(prog, deviceID, context, prog_name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user