Commit Graph

50 Commits

Author SHA1 Message Date
Nikhil Joshi
db585e1fd0 Fix max limit query for test_3D_2D_array. (#535)
test_3D_2D_array uses max limits of 3D images
for both 3D images and 2D_array.
This leads to testing of sizes larger than
2D array limits.
Use correct CL_MEM_OBJECT_IMAGE_TYPE to avoid
test-cases with invalid sizes.
2020-01-07 12:08:06 +00:00
Grzegorz Wawiorko
0e8f01a2f5 cl12: GL sharing: Fix WIN compilation and add some clarification. (#333)
* Fix WIN compilation and add some clarification.

* Add CLConform_GL_LIBRARIES_DIR CmakeLists variable for GL support

* GL sharing tests - library names justification

* Fix compilation errors function are overridden in glext.h.

* fix cl12 - Add CLConform_GL_LIBRARIES_DIR CmakeLists variable for GL support
2019-12-03 09:27:22 +00:00
Kévin Petit
917aaf9159 select: don't forget to count tests when failing to create programs (#482)
A test writer really shouldn't have to think about this...

Signed-off-by: Kévin Petit <kpet@free.fr>
2019-11-15 13:13:48 +00:00
Kévin Petit
6d1484a6b7 A few error handling and flag test fixes for mem_host_flags (#484)
- Add missing error checks
- Add missing return
- Fix flag check

Signed-off-by: Kévin Petit <kpet@free.fr>
2019-11-15 13:13:07 +00:00
Kévin Petit
69c0d3a8b7 Remove dead code from test_userevents (#476)
This code probably predates the move to the test framework and is
no longer useful.

Signed-off-by: Kévin Petit <kpet@free.fr>
2019-11-12 15:01:12 +00:00
Kévin Petit
8dbfd8f287 Fix a couple of typos (#477)
Signed-off-by: Kévin Petit <kpet@free.fr>
2019-11-11 17:07:55 +00:00
Kévin Petit
8d9b62fcf7 Fix delete calls (#480)
Both allocations are made with new[].

Signed-off-by: Kévin Petit <kpet@free.fr>
2019-11-11 17:07:25 +00:00
Jim Lewis
9d3d5ca412 cl12 Fix incoming errors overwritten by exit block (#249) (#454)
* Fix for Khronos https://github.com/KhronosGroup/OpenCL-CTS/issues/249 where incoming errors are overwritten by exit block

* Fix build: move declaration out of exit block
2019-09-23 21:01:53 +01:00
Jim Lewis
6b54819efa Fix for https://github.com/KhronosGroup/OpenCL-CTS/issues/346 - causing special float number generation to be skipped (#455) 2019-09-16 11:37:00 +01:00
Jim Lewis
7da0d7a778 Fix for Khronos https://github.com/KhronosGroup/OpenCL-CTS/issues/27 remove the re-declaration of totalErrors (#457) 2019-09-16 11:24:33 +01:00
Alastair Murray
c1ef993f5e Reintroduce M_PI compatibility
M_PI is not part of C99 or C++ and thus aren't provided in all configurations.
This used to be handled in reference_math.c directly but was recently removed.
Just tweak the M_PI handling in the compatibility headers to restore builds.
2019-08-02 18:38:05 +01:00
Alastair Murray
16a24aef4c Do not set -std=c99 on files that are set to be C++
This eliminates some warnings for a few compiler configurations.  This change
is not required on master branch.
2019-08-02 18:27:40 +01:00
Kevin Petit
45129878ab Stop using ../../test_common to include common headers
Contributes to #395.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2019-08-01 18:40:51 +01:00
aarongreig
9148b1648a Add aarch64 to system processor if statement in CMakeLists (#398) 2019-07-29 23:12:37 +01:00
aarongreig
d96c04ffb9 Use cl types in conversion reference functions. (#383) (#384)
These changes bring this code back in line with the 2.x branches.
2019-07-22 13:38:37 +01:00
aarongreig
d69c452a70 Update conversion test reference functions to use CL_CHAR_MIN instead of CHAR_MIN for clamping (#377) 2019-07-17 16:07:49 +01:00
Stuart Brady
ab9276b8c9 Refactor is_extension_available()
This change splits up is_extension_available() so that the bulk of it
can be reused for fetching other items of variable-length device
information, such as CL_DEVICE_VERSION.
2019-07-05 11:38:57 +01:00
Stuart Brady
82831127b9 Fix formatting in parseParameters.cpp 2019-07-05 11:38:57 +01:00
Grzegorz Wawiorko
6c4bd13baa Bruteforce tests - make compatibility to cl20_trunk branch (#320) 2019-07-03 12:22:33 +01:00
robquill
6d2528f398 CL12: Use slice pitch instead of row pitch for 1D arrays. (#315)
* Use slice pitch instead of row pitch for 1D arrays.
Fixes fill_image 1Darray

* Use slice pitch instead of row pitch for 1D arrays.
Fixes copy_image 1Darray
2019-06-18 10:28:08 +01:00
Grzegorz Wawiorko
176f9109db Test geometrics - compilation errors using Intel compiler - fix (#317) 2019-06-17 13:54:39 +01:00
Grzegorz Wawiorko
25aaad13cd Fix compilation errors using ICC and MSVC - cmakes files (#319) 2019-06-17 12:57:26 +01:00
Grzegorz Wawiorko
c313d902b5 Intel compiler - changes in Utility.h (#321) 2019-06-17 12:56:40 +01:00
Grzegorz Wawiorko
7c30c49885 Intel compiler changes in cmake (#318) 2019-06-17 12:55:13 +01:00
Grzegorz Wawiorko
ba2b6d5a24 Intel compiler changes compat.h (#316) 2019-06-17 12:54:50 +01:00
Grzegorz Wawiorko
aa937ee347 Fix Issue 264 - travis builds configuration fixed because of changes in icd loader project (#268) 2019-05-14 20:44:31 +01:00
Pierre Moreau
cb798beb56 cl12: Do not mistake x86_64 platforms as x86 (#229) 2019-04-30 22:24:51 +08:00
Wenju He
26722c58e4 Fix ilogbl crash and fetestexcept build if _MSC_VER>=1800 (#240)
FP_ILOGB0, FP_ILOGBNAN, ilogbm, ilogbf, ilogbl, fetestexcept and
feclearexcept are supported in Visual Studio 2013.
2019-04-29 20:41:42 +08:00
Pierre Moreau
688a1bb3d7 cl12: Ignore C++11 narrowing errors for now (#228)
Fixes #222
2019-04-26 01:43:13 +01:00
Pierre Moreau
6d8a633bf0 Add D3D10 and D3D11 tests as well as enabling toggle 2019-04-26 01:40:58 +01:00
Pierre Moreau
ac0b784759 Add CMake option for enabling GL interop tests 2019-04-26 01:40:58 +01:00
Pierre Moreau
beaa43012c gl: Remove non-existent file and fix compilation 2019-04-26 01:40:58 +01:00
Wenju He
25be90dba2 Use unique tmp file to allow parallel printf tests (#213)
Parallel printf tests fail because they use the same file tmp
to capture OpenCL kernel outputs. This patch solves this problem by
using a unique file for each process.
2019-04-25 18:12:24 +01:00
Wenju He
a99ef043be Reuse math_brute_force ulp threshold in spir test
Spir test compares floating-point kernel results bit-by-bit with
correct results. However, for math_brute_force kernels, specification
does not ask for SPIR and OpenCL C path to match bit-to-bit. This patch
reuses ulps threshold from math_brute_force folder for math_brute_force
kernels in spir test.

Signed-off-by: Wenju He <wenju.he@intel.com>
2019-04-19 14:51:10 +01:00
Jeremy Kemp
a0035ecae0 cl12: Compiler - updated extension list for compiler_defines_for_exensions (#55)
* cl12: Compiler - added missing extensions to compiler_defines_for_extensions.

Updated the list of known extensions to include all extensions referenced in the OpenCL Extension Specification 1.2 - Revision 25 and OpenCL Specification 1.2 - Revision 19 documents.

* Re-added the cl_khr_il_program extension.

This was this was erroneously removed in the previous commit.

* Compiler: Added all known extensions to compiler_defines_for_extensions.

After discussion on the pull request, it was decided to have this test test for all known khr extensions accross all API levels. Some vendors support 2.x extensions on 1.x implementations, so wanted to ensure that the test still covered those cases.

Re-ordered each sub-list so that the order in which each extension appears mirrors that of https://www.khronos.org/registry/OpenCL/specs/2.2/html/OpenCL_Ext.html.

For reference: https://github.com/KhronosGroup/OpenCL-CTS/pull/55.

* Compiler: Moved priority and throttle hints to the API-only section of the array in compiler_defines_for_extensions.

* Compiler: Added cl_khr_spirv_no_integer_wrap_decoration to the list of extensions.
2019-04-16 14:45:10 +01:00
Kévin Petit
e9f24a8414 Don't require image support on GPU devices (#181)
There is no mention of this rule that I could find in the
OpenCL 1.2 specification. cl12_trunk was the only branch
with this behaviour.

Signed-off-by: Kévin Petit <kpet@free.fr>
2019-04-16 11:36:35 +01:00
Grzegorz Wawiorko
511b1148b5 Review fixes 2019-04-15 16:08:36 +01:00
Bartosz Sochacki
a3576382e5 build break fix for bug 15266 "Add test for -cl-fp32-correctly-rounded-divide-sqrt to spir subtest." 2019-04-15 16:08:36 +01:00
Yaxun (Sam) Liu
490561d249 Add test for -cl-fp32-correctly-rounded-divide-sqrt to spir subtest. 2019-04-15 16:08:36 +01:00
Wenju He
0654d2715d Fix verifyOutputBuffer return value in printf (#104)
Function verifyOutputBuffer returns non-zero value in case of mismatch.
Return value 'false' means some mismatches are treated as matches. This
commit fix this problem.
2019-03-19 09:32:47 +00:00
Kevin Petit
1133a1a252 Remove build systems other than CMake
Make it clear that CMake is the only supported build system.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2019-03-15 09:48:40 +00:00
Jeremy Kemp
d4cc1ae0b6 Pass CL_MAP_READ to clEnqueueMapImage as passing 0 is invalid 2019-03-08 03:03:52 +00:00
Kevin Petit
d8733efc0f Synchronise with Khronos-private Gitlab branch
The maintenance of the conformance tests is moving to Github.

This commit contains all the changes that have been done in
Gitlab since the first public release of the conformance tests.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2019-03-05 16:23:49 +00:00
Kevin Petit
95196e7fb4 Add basic Travis config for Linux builds
Performs a single build on Linux using the unified
headers and linking against the ICD.

Also add a build badge to the README.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2018-11-12 12:11:00 +00:00
Kevin Petit
d90bb74206 A few tweaks to the CMake fixes from the internal repo
Still very hacky but allows to get things going.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2018-11-12 12:11:00 +00:00
Alastair Murray
b67a5f3761 Add OpenCLCTS target and install component to CMake 2018-11-12 12:11:00 +00:00
Neil Henning
b4e39211d7 Fixup CMake to work with OpenCL 1.2 branch. 2018-11-12 12:11:00 +00:00
Alastair Murray
5413bcf52e Replace license.txt contents with Apache 2.0 license
License text taken from: https://www.apache.org/licenses/LICENSE-2.0.txt
2017-11-07 21:54:20 +05:30
Kedar Patil
f74871b7a3 Initial open source release of OpenCL 1.2 CTS. 2017-05-16 19:04:36 +05:30
Khronos Group Webmaster
6911ba5116 Initial commit 2017-05-15 09:06:40 -04:00