Commit Graph

67 Commits

Author SHA1 Message Date
Wenju He
d7ff4aa502 SVM: use InterlockedCompareExchange64 for 64-bit type (#397) 2019-07-24 18:54:00 +01:00
Grzegorz Wawiorko
28cf6de10f cl20: Fix compilation in D3D cases (#394)
* Fix compilation in D3D cases

* Use existing harness include search path.
2019-07-24 14:21:00 +01:00
Grzegorz Wawiorko
5e22db59ae cl20: Fix spirv path in bruteforce tests (#371)
* Fix spirv path in bruteforce tests

* Compilation fix - align_malloc already defined in kernelHelpers.c

* Fix spirv path in bruteforce tests - more places

* Specific fix for cl20_trunk branch
2019-07-10 13:57:16 +01:00
Grzegorz Wawiorko
26777a0126 Test fix - Test computeinfo should know each existing OCL version (#367) 2019-07-08 16:39:01 +01:00
Stuart Brady
5a4a051206 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:39:48 +01:00
Stuart Brady
cc2f77b651 Fix formatting in parseParameters.cpp 2019-07-05 11:39:48 +01:00
Nikhil Joshi
d6e5f29e22 Fix enqueue_flags test to use correct barrier type. (#348)
Currently, enqueue_flags test uses CLK_LOCAL_MEM_FENCE.
Use CLK_GLOBAL_MEM_FENCE instead as all threads across work-groups
need to wait here.
2019-07-03 14:10:37 +01:00
robquill
5fdacae98b Use slice pitch instead of row pitch for 1D arrays. (#313)
Fixes fill_image 1Darray
2019-06-18 10:28:46 +01:00
Grzegorz Wawiorko
7355eec211 cl20: Enable compilation of spir 1.2 tests (#306)
* Enable compilation of spir 1.2 tests

* Fix compilation issue

* Files to copy as a list of files.
2019-06-17 12:59:55 +01:00
Grzegorz Wawiorko
21934ae3ca Intel compiler bruteforce - fix signbitl function (#311) 2019-06-11 09:45:05 +01:00
Grzegorz Wawiorko
074973c4fd Intel compiler changes in cmake (#307) 2019-06-11 09:26:12 +01:00
Grzegorz Wawiorko
58916a4ddd Intel compiler - fix assert when checking OCL version (#308) 2019-06-11 09:25:14 +01:00
Grzegorz Wawiorko
6dbbfb4f49 Intel compiler changes compat.h (#309) 2019-06-11 09:23:57 +01:00
Marco Antognini
bc339c7b5a Improve exit codes (#32) (#298)
This patch ensures runTestHarness returns either EXIT_FAILURE or
EXIT_SUCCESS to avoid undefined behaviour.
2019-05-31 11:44:07 +01:00
Nikhil Joshi
3bcc9935c5 Fix test_host_queue_order not to rely on bit accurate float ops (#295)
Currently, test_host_queue_order relies on bit accurate float ops.
It expects expects that sqrt((float)i * i) == i.
This is not always true due to floating point precision limitations.
The test does not really need the sqrt operation and it can be removed
instead of trying to correct the floating point check.

Replace problematic float operation with constant value of 1.
2019-05-29 11:08:45 +01:00
Grzegorz Wawiorko
51db6e87cf cl20: Fix Issue #35 - ask for capability size. Too small size could cause errors (#95)
* Fix Issue #35 - ask for capability size. Too small size could cause errors

* Fix Issue #35 - fix windows compilation failure

* Fix Issue #35 - Review fixes

* Fix Issue #35 - Review fixes - build issues fixed
2019-05-23 18:20:59 +01:00
Radek Szymanski
0fce6d5d62 cl20: Add minimal required version functionality (#269)
This adds functionality to define minimal required version through the
ADD_TEST* macros. Tests that don't meet the version requirement will
be skipped.

By default the minimal required version is set to 1.0, subsequent
patches will set the appropriate version for each of the tests.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-05-22 18:31:52 +01:00
Radek Szymanski
27e666eb88 cl20: Use test_status for test results (#275)
This moves from numeric values to enum values to keep result state of
the test, so we can easily save this information in JSON results.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-05-17 14:31:11 +01:00
Grzegorz Wawiorko
b316a0cfb4 Fix Issue 264 - travis builds configuration fixed because of changes in icd loader project (#267) 2019-05-14 20:44:57 +01:00
Radek Szymanski
3a8214750a cl20: Reuse test harness code in kernel_read_write (#241)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-05-01 21:19:01 +08:00
Radek Szymanski
3c62454f71 cl20: Reuse test harness code in contractions (#252)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-05-01 19:11:36 +08:00
Radek Szymanski
1f567dcdc0 cl20: Reuse test harness code in headers (#255)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-05-01 19:08:29 +08:00
cdai2
c6e99e3e35 Fix Issue #53: required buffer size exceed the available size in non_uniform_work_group (#247) 2019-04-30 22:22:01 +08:00
Pierre Moreau
64609a7d78 cl20: CMake improvements (#235)
* Do not append non-existing folder to CMAKE_MODULE_PATH

Fixes #221

* Add use of deprecated OpenCL 1.2 APIs

* Define CL_TARGET_OPENCL_VERSION to 200

Fixes #227

* Define cmake_minimum_required as first operation

The CMake documentation mentions that
> Call the cmake_minimum_required() command at the beginning of the
> top-level CMakeLists.txt file even before calling the project()
> command. It is important to establish version and policy settings
> before invoking other commands whose behavior they may affect.

* CMake: Match both AppleClang and Clang
2019-04-30 22:19:51 +08:00
Radek Szymanski
94d110d5f4 cl20: Reuse test harness code in samplerlessReads (#244)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-30 22:17:00 +08:00
Wenju He
ef22b4cf7c Fix ilogbl crash and fetestexcept build if _MSC_VER>=1800 (#239)
FP_ILOGB0, FP_ILOGBNAN, ilogbm, ilogbf, ilogbl, fetestexcept and
feclearexcept are supported in Visual Studio 2013.
2019-04-29 20:41:59 +08:00
Pierre Moreau
32ce32abb3 Fix typos in main CMakeLists.txt (#232) 2019-04-27 08:35:26 +08:00
Pierre Moreau
16544498b3 Add toggle for enabling OpenGL ES interop tests 2019-04-26 01:40:02 +01:00
Pierre Moreau
430e5de283 Mark the graphics interop toggles as options
This allows enabling/disabling them via CMake without editing the
CMakeLists.txt file.
2019-04-26 01:40:02 +01:00
Pierre Moreau
223b2c815a Fix compilation of gl/main.cpp
Fixes 07196c35 ("cl22: Use single array for function list (#148)")
2019-04-26 01:40:02 +01:00
Pierre Moreau
35ddf04319 gl: Add missing tests to the CMakeLists.txt 2019-04-26 01:40:02 +01:00
Pierre Moreau
f7cfce57e0 gl: Remove non-existent file and fix compilation 2019-04-26 01:40:02 +01:00
Wenju He
2308085db5 Use unique tmp file to allow parallel printf tests (#214)
Parallel printf tests fail because they use the same file /tmp/tmpfile
to capture OpenCL kernel outputs. This patch solves this problem by
using a unique file for each process.
2019-04-25 18:11:19 +01:00
Radek Szymanski
a12de660ee cl20: Reuse test harness code in clFillImage (#200)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-25 02:50:10 +01:00
Radek Szymanski
1a59260373 cl20: Reuse test harness code in clCopyImage (#197)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-25 02:47:13 +01:00
Radek Szymanski
3c124e0807 cl20: Reuse test harness code in clReadWriteImage (#206)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-25 02:18:22 +01:00
Radek Szymanski
f982d67fad cl20: Reuse test harness code in clGetInfo (#203)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-25 01:57:49 +01:00
Radek Szymanski
965fe95bdd cl20: Reuse test harness code in kernel_image_methods (#209)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-24 04:29:26 +01:00
Radek Szymanski
b6e7ff9a73 cl20: Reuse test harness code in half (#190)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-22 12:10:29 +01:00
Wenju He
e9617ed58c Remove redundant releaseOutputStream call in printf (#216) 2019-04-22 12:06:57 +01:00
Radek Szymanski
dec06834bb cl20: Reuse test harness code in math_brute_force (#194)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-22 12:04:24 +01:00
Radek Szymanski
1b7bb286d6 cl20: Reuse test harness code in allocations (#187)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-22 12:03:16 +01:00
Wenju He
e4a2f1e326 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:33 +01:00
Radek Szymanski
f0289e2077 cl20: Test Harness minor cleanup (#184)
* Report an error when unimplemented test was specified
* Merge two common functions

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-18 15:10:01 +01:00
Jeremy Kemp
8ba802bb6c cl20: Compiler - updated extension list for compiler_defines_for_exensions (#174)
* 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:46:02 +01:00
Radek Szymanski
8684372900 cl20: Reuse test harness code in conversions (#178)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-16 11:52:08 +01:00
Grzegorz Wawiorko
514394c02f Review fixes 2019-04-15 16:08:53 +01:00
Brian Sumner
9e4bd21d0b Use correct format for unsigned long 2019-04-15 16:05:21 +01:00
Brian Sumner
3ff36af595 Proposed fix for bug 16239 2019-04-15 16:05:21 +01:00
Radek Szymanski
591b7c9185 cl20: Reuse test harness code in printf
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-12 12:37:15 +01:00