Test feature macro OpenCL 3.0 (#762)

* Test feature macro OpenCL 3.0

* Test feature macro OpenCL 3.0 - refactor to template function

* Use test_error and format fix issues

* Fix returned value type for CL_DEVICE_MAX_GLOBAL_VARIABLE_SIZE

* Code format fix

* Feature macro test - refactor code to have one test case

* add consistency checking comparing supported features to CL_DEVICE_OPENCL_C_FEATURES
* fix minor issues

* Feature macro test  - fix test version

* Feature macro test  - add -cl-std=CL3.0 build option

* Feature macro test  - compilation errors

* Feature macro test  - compilation errors OSX

* Feature macro test  - fix adding build options

* Feature macro test  - share function OutputBuildLogs

* Feature macro test  - back removed cases

* Feature macro test  - review fixes

* Feature macro test  - split check image formats

* Feature macro test  - fixed version
This commit is contained in:
Grzegorz Wawiorko
2020-09-24 21:34:56 +02:00
committed by GitHub
parent eb1bb88a19
commit e1cf741f1c
5 changed files with 774 additions and 17 deletions

View File

@@ -89,6 +89,7 @@ test_definition test_list[] = {
ADD_TEST_VERSION(pragma_unroll, Version(2, 0)),
ADD_TEST_VERSION(features_macro, Version(3, 0)),
ADD_TEST(unload_valid),
ADD_TEST(unload_invalid),
ADD_TEST(unload_repeated),
@@ -98,6 +99,7 @@ test_definition test_list[] = {
ADD_TEST(unload_build_threaded),
ADD_TEST(unload_build_info),
ADD_TEST(unload_program_binaries),
};
const int test_num = ARRAY_SIZE(test_list);