mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Correct variable declaration in tests
This issue is visible with clang-11 on single sku builds of xe_hp_sdv and later platforms. Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
8288fa76cb
commit
d707a41d60
@ -51,12 +51,12 @@ uint32_t cmdQueueMocs(CommandQueue *pCmdQ) {
|
||||
}
|
||||
|
||||
const size_t n = 512;
|
||||
const size_t globalWorkSize[3] = {n, 1, 1};
|
||||
const size_t localWorkSize[3] = {256, 1, 1};
|
||||
[[maybe_unused]] const size_t globalWorkSize[3] = {n, 1, 1};
|
||||
[[maybe_unused]] const size_t localWorkSize[3] = {256, 1, 1};
|
||||
|
||||
const cl_mem_properties_intel *propertiesCacheable = nullptr;
|
||||
const cl_mem_properties_intel propertiesUncacheable[] = {CL_MEM_FLAGS_INTEL, CL_MEM_LOCALLY_UNCACHED_RESOURCE, 0};
|
||||
const cl_mem_properties_intel propertiesUncacheableInSurfaceState[] = {CL_MEM_FLAGS_INTEL, CL_MEM_LOCALLY_UNCACHED_SURFACE_STATE_RESOURCE, 0};
|
||||
[[maybe_unused]] const cl_mem_properties_intel *propertiesCacheable = nullptr;
|
||||
[[maybe_unused]] const cl_mem_properties_intel propertiesUncacheable[] = {CL_MEM_FLAGS_INTEL, CL_MEM_LOCALLY_UNCACHED_RESOURCE, 0};
|
||||
[[maybe_unused]] const cl_mem_properties_intel propertiesUncacheableInSurfaceState[] = {CL_MEM_FLAGS_INTEL, CL_MEM_LOCALLY_UNCACHED_SURFACE_STATE_RESOURCE, 0};
|
||||
|
||||
using clMemLocallyUncachedResourceFixture = Test<HelloWorldFixture<HelloWorldFixtureFactory>>;
|
||||
|
||||
|
Reference in New Issue
Block a user