Files
OpenCL-CTS/test_conformance/subgroups/CMakeLists.txt
Sven van Haastregt fc4260bdae subgroups: Fix Wformat warnings (#1549)
The main source of warnings was the use of `%d` for printing a
templated type `T`, where `T` could be any cl_ scalar or vector type.

Introduce `print_expected_obtained`.  It takes const references to
handle alignment of the cl_ types.

Define `operator<<` for all types used by the subgroup tests.  Ideally
those would be template functions enabled by TypeManager data, but
that requires some more work on the TypeManager (which we'd ideally do
after more warnings have been enabled).  So for now, define the
`operator<<` instances using preprocessor defines.

Also fix a few instances where the wrong format specifier was used for
`size_t` types.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
2022-11-15 09:12:31 -08:00

23 lines
540 B
CMake

set(MODULE_NAME SUBGROUPS)
set(${MODULE_NAME}_SOURCES
main.cpp
subhelpers.cpp
test_barrier.cpp
test_queries.cpp
test_workitem.cpp
test_subgroup.cpp
test_ifp.cpp
test_subgroup_extended_types.cpp
subgroup_common_kernels.cpp
test_subgroup_non_uniform_vote.cpp
test_subgroup_non_uniform_arithmetic.cpp
test_subgroup_ballot.cpp
test_subgroup_clustered_reduce.cpp
test_subgroup_shuffle.cpp
test_subgroup_shuffle_relative.cpp
test_subgroup_rotate.cpp
)
include(../CMakeCommon.txt)