mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 15:59:03 +00:00
Save Kernel Sources to Disk - Infrastructure Change (#412)
* Introduces the ability to capture the kernel sources and the build options used by the conformance tests to a .cl and .options files. This is achieved via a new compilation cache mode called dump-cl-files. Files will be generated to the folder pointed by the compilation cache path. When a conformance test is executed with dump-cl-files cache mode and online compilation mode, the files will be saved to the disk and the regular execution flow of the conformance continues uninterrupted. When a conformance test is executed with dump-cl-files cache mode and binary or spir-v compilation mode, the files will be saved to the disk as well, however the compilation will fail - leading to a failure in all test cases. * Introduces the ability to capture the kernel sources and the build options used by the conformance tests to a .cl and .options files. This is achieved via a new compilation cache mode called dump-cl-files. Files will be generated to the folder pointed by the compilation cache path. When a conformance test is executed with dump-cl-files cache mode and online compilation mode, the files will be saved to the disk and the regular execution flow of the conformance continues uninterrupted. When a conformance test is executed with dump-cl-files cache mode and binary or spir-v compilation mode, the files will be saved to the disk as well, however the compilation will fail - leading to a failure in all test cases. * merged with latest CTS code
This commit is contained in:
@@ -30,7 +30,8 @@ enum CompilationCacheMode
|
||||
{
|
||||
kCacheModeCompileIfAbsent = 0,
|
||||
kCacheModeForceRead,
|
||||
kCacheModeOverwrite
|
||||
kCacheModeOverwrite,
|
||||
kCacheModeDumpCl
|
||||
};
|
||||
|
||||
extern CompilationMode gCompilationMode;
|
||||
|
||||
Reference in New Issue
Block a user