mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix file paths in test_compiler (#2523)
Add a command line argument to override the SPIR-V file paths if needed, similar to `test_spirv_new`. Set the default path to the one required by `run_conformance.py`, which assumes the current working directory to be `<build_dir>/test_conformance`. Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
@@ -32,8 +32,6 @@ const std::string slash = "\\";
|
||||
#else
|
||||
const std::string slash = "/";
|
||||
#endif
|
||||
std::string compilerSpvBinaries = "test_conformance" + slash + "compiler"
|
||||
+ slash + "spirv_bin" + slash + "write_kernel.spv";
|
||||
|
||||
const std::string spvExt = ".spv";
|
||||
|
||||
@@ -338,8 +336,8 @@ public:
|
||||
|
||||
std::vector<unsigned char> kernel_buffer;
|
||||
|
||||
std::string file_name =
|
||||
compilerSpvBinaries + std::to_string(address_bits);
|
||||
std::string file_name = spvBinariesPath + slash + "write_kernel.spv"
|
||||
+ std::to_string(address_bits);
|
||||
m_spirv_binary = readBinary(file_name.c_str());
|
||||
m_spirv_size = m_spirv_binary.size();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user