mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
Stop using ../../test_common to include common headers
Contributes to #395. Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
@@ -36,12 +36,12 @@
|
|||||||
#include "gl_headers.h"
|
#include "gl_headers.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/threadTesting.h"
|
#include "harness/threadTesting.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
|
|
||||||
typedef cl_mem
|
typedef cl_mem
|
||||||
(CL_API_CALL *clCreateFromGLBuffer_fn)(cl_context context,
|
(CL_API_CALL *clCreateFromGLBuffer_fn)(cl_context context,
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "setup.h"
|
#include "setup.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include <OpenGL/CGLDevice.h>
|
#include <OpenGL/CGLDevice.h>
|
||||||
|
|
||||||
class OSXGLEnvironment : public GLEnvironment
|
class OSXGLEnvironment : public GLEnvironment
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include "setup.h"
|
#include "setup.h"
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include "setup.h"
|
#include "setup.h"
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
|
|||||||
@@ -32,9 +32,9 @@ else()
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CTS_EXTRA_FLAGS}")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CTS_EXTRA_FLAGS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Clang gives C++11 narrowing warnings so suppress these for now
|
# Suppress narrowing warnings given by Clang and GCC
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(Clang)|(GNU)")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++11-narrowing")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++11-narrowing -Wno-narrowing")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( WIN32 AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel" )
|
if( WIN32 AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel" )
|
||||||
@@ -43,6 +43,7 @@ if( WIN32 AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel" )
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE SYSTEM ${CLConform_HEADERS})
|
include_directories(BEFORE SYSTEM ${CLConform_HEADERS})
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../test_common)
|
||||||
link_directories(${CLConform_LIB_DIR})
|
link_directories(${CLConform_LIB_DIR})
|
||||||
|
|
||||||
add_definitions(-DCL_TARGET_OPENCL_VERSION=120)
|
add_definitions(-DCL_TARGET_OPENCL_VERSION=120)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#define BUFFER_CHUNK_SIZE 8*1024*1024
|
#define BUFFER_CHUNK_SIZE 8*1024*1024
|
||||||
#define IMAGE_LINES 8
|
#define IMAGE_LINES 8
|
||||||
|
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
|
|
||||||
int fill_buffer_with_data(cl_context context, cl_device_id device_id, cl_command_queue *queue, cl_mem mem, size_t size, MTdata d, cl_bool blocking_write) {
|
int fill_buffer_with_data(cl_context context, cl_device_id device_id, cl_command_queue *queue, cl_mem mem, size_t size, MTdata d, cl_bool blocking_write) {
|
||||||
size_t i, j;
|
size_t i, j;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "allocation_functions.h"
|
#include "allocation_functions.h"
|
||||||
#include "allocation_fill.h"
|
#include "allocation_fill.h"
|
||||||
#include "allocation_execute.h"
|
#include "allocation_execute.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
cl_device_id g_device_id;
|
cl_device_id g_device_id;
|
||||||
|
|||||||
@@ -32,10 +32,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
|
|
||||||
#define MAX_NUMBER_TO_ALLOCATE 100
|
#define MAX_NUMBER_TO_ALLOCATE 100
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -13,11 +13,11 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/clImageHelper.h"
|
#include "harness/clImageHelper.h"
|
||||||
#include "../../test_common/harness/imageHelpers.h"
|
#include "harness/imageHelpers.h"
|
||||||
extern float calculate_ulperror(float a, float b);
|
extern float calculate_ulperror(float a, float b);
|
||||||
|
|
||||||
extern int test_load_single_kernel(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements);
|
extern int test_load_single_kernel(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements);
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
|
|
||||||
const char *kernel_with_bool[] = {
|
const char *kernel_with_bool[] = {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
extern cl_uint gRandomSeed;
|
extern cl_uint gRandomSeed;
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
|
|
||||||
const char *sample_single_kernel[] = {
|
const char *sample_single_kernel[] = {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
// This test is designed to stress passing multiple vector parameters to kernels and verifying access between them all
|
// This test is designed to stress passing multiple vector parameters to kernels and verifying access between them all
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
extern cl_uint gRandomSeed;
|
extern cl_uint gRandomSeed;
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../images/image_helpers.h"
|
#include "../images/image_helpers.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
extern cl_uint gRandomSeed;
|
extern cl_uint gRandomSeed;
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
extern cl_uint gRandomSeed;
|
extern cl_uint gRandomSeed;
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/imageHelpers.h"
|
#include "harness/imageHelpers.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
|
|||||||
@@ -16,12 +16,14 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include <CL/cl_ext.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
/*
|
/*
|
||||||
The test against cl_khr_create_command_queue extension. It validates if devices with Opencl 1.X can use clCreateCommandQueueWithPropertiesKHR function.
|
The test against cl_khr_create_command_queue extension. It validates if devices with Opencl 1.X can use clCreateCommandQueueWithPropertiesKHR function.
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
|
|
||||||
int test_release_kernel_order(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements)
|
int test_release_kernel_order(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/threadTesting.h"
|
#include "harness/threadTesting.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
|
|
||||||
extern int create_program_and_kernel(const char *source, const char *kernel_name, cl_program *program_ret, cl_kernel *kernel_ret);
|
extern int create_program_and_kernel(const char *source, const char *kernel_name, cl_program *program_ret, cl_kernel *kernel_ret);
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
extern cl_uint gRandomSeed;
|
extern cl_uint gRandomSeed;
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
|
|
||||||
basefn basefn_list[] = {
|
basefn basefn_list[] = {
|
||||||
|
|||||||
@@ -13,12 +13,12 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/rounding_mode.h"
|
#include "harness/rounding_mode.h"
|
||||||
|
|
||||||
extern void memset_pattern4(void *dest, const void *src_pattern, size_t bytes );
|
extern void memset_pattern4(void *dest, const void *src_pattern, size_t bytes );
|
||||||
|
|
||||||
|
|||||||
@@ -33,8 +33,8 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
|
|
||||||
|
|
||||||
static const char *astype_kernel_pattern =
|
static const char *astype_kernel_pattern =
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
static const char *async_global_to_local_kernel =
|
static const char *async_global_to_local_kernel =
|
||||||
"%s\n" // optional pragma string
|
"%s\n" // optional pragma string
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
static const char *async_strided_global_to_local_kernel =
|
static const char *async_strided_global_to_local_kernel =
|
||||||
"%s\n" // optional pragma string
|
"%s\n" // optional pragma string
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
|
|
||||||
const cl_mem_flags flag_set[] = {
|
const cl_mem_flags flag_set[] = {
|
||||||
CL_MEM_ALLOC_HOST_PTR,
|
CL_MEM_ALLOC_HOST_PTR,
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
|
|
||||||
#define DECLARE_S2V_IDENT_KERNEL(srctype,dsttype,size) \
|
#define DECLARE_S2V_IDENT_KERNEL(srctype,dsttype,size) \
|
||||||
"__kernel void test_conversion(__global " srctype " *sourceValues, __global " dsttype #size " *destValues )\n" \
|
"__kernel void test_conversion(__global " srctype " *sourceValues, __global " dsttype #size " *destValues )\n" \
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "../../test_common/harness/rounding_mode.h"
|
#include "harness/rounding_mode.h"
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "../../test_common/harness/rounding_mode.h"
|
#include "harness/rounding_mode.h"
|
||||||
|
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/rounding_mode.h"
|
#include "harness/rounding_mode.h"
|
||||||
|
|
||||||
const char *fpadd4_kernel_code =
|
const char *fpadd4_kernel_code =
|
||||||
"__kernel void test_fpadd4(__global float4 *srcA, __global float4 *srcB, __global float4 *dst)\n"
|
"__kernel void test_fpadd4(__global float4 *srcA, __global float4 *srcB, __global float4 *dst)\n"
|
||||||
|
|||||||
@@ -27,9 +27,9 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/imageHelpers.h"
|
#include "harness/imageHelpers.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
|
|
||||||
static const char *param_kernel[] = {
|
static const char *param_kernel[] = {
|
||||||
|
|||||||
@@ -18,9 +18,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
// For global, local, and constant
|
// For global, local, and constant
|
||||||
const char *parameter_kernel_long =
|
const char *parameter_kernel_long =
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
|
|
||||||
|
|
||||||
static const char *sample_kernel = {
|
static const char *sample_kernel = {
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -33,9 +33,9 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
// Outputs debug information for stores
|
// Outputs debug information for stores
|
||||||
#define DEBUG 0
|
#define DEBUG 0
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
|
|
||||||
typedef struct work_item_data
|
typedef struct work_item_data
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
basefn bufferfn_list[] = {
|
basefn bufferfn_list[] = {
|
||||||
test_buffer_read_async_int,
|
test_buffer_read_async_int,
|
||||||
|
|||||||
@@ -16,12 +16,12 @@
|
|||||||
#ifndef __PROCS_H__
|
#ifndef __PROCS_H__
|
||||||
#define __PROCS_H__
|
#define __PROCS_H__
|
||||||
|
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
#include <CL/cl.h>
|
#include <CL/cl.h>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
|
|
||||||
static int verify_copy_buffer(int *inptr, int *outptr, int n)
|
static int verify_copy_buffer(int *inptr, int *outptr, int n)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
#define USE_LOCAL_WORK_GROUP 1
|
#define USE_LOCAL_WORK_GROUP 1
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
|
|
||||||
#define TEST_PRIME_INT ((1<<16)+1)
|
#define TEST_PRIME_INT ((1<<16)+1)
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
#define MAX_SUB_DEVICES 16 // Limit the sub-devices to ensure no out of resource errors.
|
#define MAX_SUB_DEVICES 16 // Limit the sub-devices to ensure no out of resource errors.
|
||||||
#define BUFFER_SIZE 1024
|
#define BUFFER_SIZE 1024
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
#define USE_LOCAL_WORK_GROUP 1
|
#define USE_LOCAL_WORK_GROUP 1
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
#define MAX_SUB_DEVICES 16 // Limit the sub-devices to ensure no out of resource errors.
|
#define MAX_SUB_DEVICES 16 // Limit the sub-devices to ensure no out of resource errors.
|
||||||
#define MEM_OBJ_SIZE 1024
|
#define MEM_OBJ_SIZE 1024
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
|
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
|
|
||||||
int g_arrVecSizes[kVectorSizeCount + kStrangeVectorSizeCount];
|
int g_arrVecSizes[kVectorSizeCount + kStrangeVectorSizeCount];
|
||||||
int g_arrStrangeVectorSizes[kStrangeVectorSizeCount] = {3};
|
int g_arrStrangeVectorSizes[kStrangeVectorSizeCount] = {3};
|
||||||
|
|||||||
@@ -13,11 +13,11 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
|
|
||||||
#define kVectorSizeCount 5
|
#define kVectorSizeCount 5
|
||||||
#define kStrangeVectorSizeCount 1
|
#define kStrangeVectorSizeCount 1
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
static int min_verify_float( float *x, float *y, float *out, int numElements, int vecSize )
|
static int min_verify_float( float *x, float *y, float *out, int numElements, int vecSize )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -13,11 +13,11 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
|
|
||||||
extern int test_load_program_source(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements);
|
extern int test_load_program_source(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements);
|
||||||
extern int test_load_multistring_source(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements);
|
extern int test_load_multistring_source(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements);
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
extern cl_uint gRandomSeed;
|
extern cl_uint gRandomSeed;
|
||||||
|
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
include_directories(../../test_common/harness)
|
|
||||||
|
|
||||||
add_executable(conformance_test_contractions
|
add_executable(conformance_test_contractions
|
||||||
contractions.c
|
contractions.c
|
||||||
../../test_common/harness/mt19937.c
|
../../test_common/harness/mt19937.c
|
||||||
|
|||||||
@@ -30,17 +30,17 @@
|
|||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "mingw_compat.h"
|
#include "harness/mingw_compat.h"
|
||||||
#if defined (__MINGW32__)
|
#if defined (__MINGW32__)
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/rounding_mode.h"
|
#include "harness/rounding_mode.h"
|
||||||
#include "../../test_common/harness/fpcontrol.h"
|
#include "harness/fpcontrol.h"
|
||||||
#if defined( __APPLE__ )
|
#if defined( __APPLE__ )
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (_WIN32)
|
#if defined (_WIN32)
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,6 @@ set(CMAKE_C_FLAGS_RELEASE "-O0")
|
|||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O0")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O0")
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
include_directories(../../test_common/harness)
|
|
||||||
|
|
||||||
add_executable(conformance_test_conversions
|
add_executable(conformance_test_conversions
|
||||||
Sleep.c test_conversions.c basic_test_conversions.c
|
Sleep.c test_conversions.c basic_test_conversions.c
|
||||||
../../test_common/harness/ThreadPool.c
|
../../test_common/harness/ThreadPool.c
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
|
|
||||||
static inline cl_ulong random64( MTdata d );
|
static inline cl_ulong random64( MTdata d );
|
||||||
|
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/rounding_mode.h"
|
#include "harness/rounding_mode.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined( __APPLE__ )
|
#if defined( __APPLE__ )
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
#include <CL/opencl.h>
|
#include <CL/opencl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
|
|
||||||
typedef void (*Convert)( void *dest, void *src, size_t );
|
typedef void (*Convert)( void *dest, void *src, size_t );
|
||||||
|
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
#include "../../test_common/harness/rounding_mode.h"
|
#include "harness/rounding_mode.h"
|
||||||
#include "../../test_common/harness/ThreadPool.h"
|
#include "harness/ThreadPool.h"
|
||||||
#include "../../test_common/harness/parseParameters.h"
|
#include "harness/parseParameters.h"
|
||||||
#if defined (_WIN32)
|
#if defined (_WIN32)
|
||||||
#define MAX(x,y) ((x>y)?x:y);
|
#define MAX(x,y) ((x>y)?x:y);
|
||||||
#define MIN(x,y) ((x<y)?x:y);
|
#define MIN(x,y) ((x<y)?x:y);
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "mingw_compat.h"
|
#include "harness/mingw_compat.h"
|
||||||
#if defined(__MINGW32__)
|
#if defined(__MINGW32__)
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
#if (defined(_WIN32) && defined (_MSC_VER))
|
#if (defined(_WIN32) && defined (_MSC_VER))
|
||||||
// need for _controlfp_s and rouinding modes in RoundingMode
|
// need for _controlfp_s and rouinding modes in RoundingMode
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ set(D3D10_LIB_DIR $ENV{NV_TOOLS}/sdk/DirectX_Aug2009/Lib/x64)
|
|||||||
endif(${ARCH} STREQUAL "x86_64")
|
endif(${ARCH} STREQUAL "x86_64")
|
||||||
|
|
||||||
list(APPEND CLConform_INCLUDE_DIR ${D3D10_INCLUDE_DIR})
|
list(APPEND CLConform_INCLUDE_DIR ${D3D10_INCLUDE_DIR})
|
||||||
include_directories (${CLConform_SOURCE_DIR}/test_common/harness
|
include_directories (${CLConform_INCLUDE_DIR})
|
||||||
${CLConform_INCLUDE_DIR} )
|
|
||||||
link_directories(${CL_LIB_DIR}, ${D3D10_LIB_DIR})
|
link_directories(${CL_LIB_DIR}, ${D3D10_LIB_DIR})
|
||||||
|
|
||||||
list(APPEND CLConform_LIBRARIES d3d10 dxgi)
|
list(APPEND CLConform_LIBRARIES d3d10 dxgi)
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ set(D3D11_LIB_DIR $ENV{NV_TOOLS}/sdk/DirectX_Aug2009/Lib/x64)
|
|||||||
endif(${ARCH} STREQUAL "x86_64")
|
endif(${ARCH} STREQUAL "x86_64")
|
||||||
|
|
||||||
list(APPEND CLConform_INCLUDE_DIR ${D3D11_INCLUDE_DIR})
|
list(APPEND CLConform_INCLUDE_DIR ${D3D11_INCLUDE_DIR})
|
||||||
include_directories (${CLConform_SOURCE_DIR}/test_common/harness
|
include_directories (${CLConform_INCLUDE_DIR})
|
||||||
${CLConform_INCLUDE_DIR} )
|
|
||||||
link_directories(${CL_LIB_DIR}, ${D3D11_LIB_DIR})
|
link_directories(${CL_LIB_DIR}, ${D3D11_LIB_DIR})
|
||||||
|
|
||||||
list(APPEND CLConform_LIBRARIES d3d11 dxgi)
|
list(APPEND CLConform_LIBRARIES d3d11 dxgi)
|
||||||
|
|||||||
@@ -23,8 +23,8 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
|
|
||||||
extern int test_partition(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements);
|
extern int test_partition(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements);
|
||||||
extern int test_partition_equally(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements);
|
extern int test_partition_equally(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements);
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
const char *test_kernels[] = {
|
const char *test_kernels[] = {
|
||||||
"__kernel void kernelA(__global int *dst)\n"
|
"__kernel void kernelA(__global int *dst)\n"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/clImageHelper.h"
|
#include "harness/clImageHelper.h"
|
||||||
|
|
||||||
extern float random_float(float low, float high);
|
extern float random_float(float low, float high);
|
||||||
extern float calculate_ulperror(float a, float b);
|
extern float calculate_ulperror(float a, float b);
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "action_classes.h"
|
#include "action_classes.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/ThreadPool.h"
|
#include "harness/ThreadPool.h"
|
||||||
|
|
||||||
#if !defined (_MSC_VER)
|
#if !defined (_MSC_VER)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
const char *write_kernels[] = {
|
const char *write_kernels[] = {
|
||||||
"__kernel void write_up(__global int *dst, int length)\n"
|
"__kernel void write_up(__global int *dst, int length)\n"
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "action_classes.h"
|
#include "action_classes.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/genericThread.h"
|
#include "harness/genericThread.h"
|
||||||
|
|
||||||
#if !defined (_MSC_VER)
|
#if !defined (_MSC_VER)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/threadTesting.h"
|
#include "harness/threadTesting.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
|
|
||||||
extern const unsigned int g_vecSizeof[];
|
extern const unsigned int g_vecSizeof[];
|
||||||
|
|
||||||
|
|||||||
@@ -13,13 +13,13 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
|
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
const char *crossKernelSource =
|
const char *crossKernelSource =
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
const char *crossKernelSource_double =
|
const char *crossKernelSource_double =
|
||||||
"#pragma OPENCL EXTENSION cl_khr_fp64 : enable\n"
|
"#pragma OPENCL EXTENSION cl_khr_fp64 : enable\n"
|
||||||
|
|||||||
@@ -28,8 +28,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/gl/setup.h"
|
#include "gl/setup.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
|
|
||||||
|
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
|
|||||||
@@ -30,20 +30,20 @@
|
|||||||
|
|
||||||
#if !defined (__APPLE__)
|
#if !defined (__APPLE__)
|
||||||
#include <CL/cl.h>
|
#include <CL/cl.h>
|
||||||
#include "../../test_common/gl/gl_headers.h"
|
#include "gl/gl_headers.h"
|
||||||
#include <CL/cl_gl.h>
|
#include <CL/cl_gl.h>
|
||||||
#else
|
#else
|
||||||
#include "../../test_common/gl/gl_headers.h"
|
#include "gl/gl_headers.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/threadTesting.h"
|
#include "harness/threadTesting.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
|
|
||||||
#include "../../test_common/gl/helpers.h"
|
#include "gl/helpers.h"
|
||||||
#include "../images/image_helpers.h"
|
#include "../images/image_helpers.h"
|
||||||
|
|
||||||
extern const char *get_kernel_suffix( cl_image_format *format );
|
extern const char *get_kernel_suffix( cl_image_format *format );
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/gl/setup.h"
|
#include "gl/setup.h"
|
||||||
#include "../../test_common/harness/genericThread.h"
|
#include "harness/genericThread.h"
|
||||||
|
|
||||||
#if defined( __APPLE__ )
|
#if defined( __APPLE__ )
|
||||||
#include <OpenGL/glu.h>
|
#include <OpenGL/glu.h>
|
||||||
|
|||||||
@@ -29,8 +29,8 @@
|
|||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
|
|
||||||
#if defined (_WIN32)
|
#if defined (_WIN32)
|
||||||
#define MAX(x,y) ((x>y)?x:y);
|
#define MAX(x,y) ((x>y)?x:y);
|
||||||
|
|||||||
@@ -24,8 +24,8 @@
|
|||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../test_common/harness/mingw_compat.h"
|
#include "harness/mingw_compat.h"
|
||||||
#include "../../test_common/harness/parseParameters.h"
|
#include "harness/parseParameters.h"
|
||||||
#if defined (__MINGW32__)
|
#if defined (__MINGW32__)
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -34,14 +34,14 @@
|
|||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/imageHelpers.h"
|
#include "harness/imageHelpers.h"
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
#include "../../test_common/harness/rounding_mode.h"
|
#include "harness/rounding_mode.h"
|
||||||
#include "../../test_common/harness/clImageHelper.h"
|
#include "harness/clImageHelper.h"
|
||||||
|
|
||||||
extern int gTestCount;
|
extern int gTestCount;
|
||||||
extern int gTestFailure;
|
extern int gTestFailure;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
#include "../../../test_common/harness/fpcontrol.h"
|
#include "harness/fpcontrol.h"
|
||||||
|
|
||||||
#if defined(__PPC__)
|
#if defined(__PPC__)
|
||||||
// Global varaiable used to hold the FPU control register state. The FPSCR register can not
|
// Global varaiable used to hold the FPU control register state. The FPSCR register can not
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
#include "../../../test_common/harness/fpcontrol.h"
|
#include "harness/fpcontrol.h"
|
||||||
|
|
||||||
#if defined(__PPC__)
|
#if defined(__PPC__)
|
||||||
// Global varaiable used to hold the FPU control register state. The FPSCR register can not
|
// Global varaiable used to hold the FPU control register state. The FPSCR register can not
|
||||||
|
|||||||
@@ -16,9 +16,9 @@
|
|||||||
#ifndef _testBase_h
|
#ifndef _testBase_h
|
||||||
#define _testBase_h
|
#define _testBase_h
|
||||||
|
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/clImageHelper.h"
|
#include "harness/clImageHelper.h"
|
||||||
|
|
||||||
#include "image_helpers.h"
|
#include "image_helpers.h"
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -13,12 +13,12 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../../test_common/harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "../../test_common/harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
#include "../../test_common/harness/threadTesting.h"
|
#include "harness/threadTesting.h"
|
||||||
#include "../../test_common/harness/typeWrappers.h"
|
#include "harness/typeWrappers.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
|
|
||||||
|
|
||||||
// The number of errors to print out for each test
|
// The number of errors to print out for each test
|
||||||
|
|||||||
@@ -26,8 +26,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
#include "../../test_common/harness/ThreadPool.h"
|
#include "harness/ThreadPool.h"
|
||||||
|
|
||||||
#define NUM_TESTS 23
|
#define NUM_TESTS 23
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
#define TEST_SIZE 512
|
#define TEST_SIZE 512
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
#define TEST_SIZE 512
|
#define TEST_SIZE 512
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "testBase.h"
|
#include "testBase.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
static const int vector_sizes[] = {1, 2, 3, 4, 8, 16};
|
static const int vector_sizes[] = {1, 2, 3, 4, 8, 16};
|
||||||
#define NUM_VECTOR_SIZES 6
|
#define NUM_VECTOR_SIZES 6
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/conversions.h"
|
#include "harness/conversions.h"
|
||||||
|
|
||||||
extern MTdata d;
|
extern MTdata d;
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
#include <CL/cl.h>
|
#include <CL/cl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
#include "../../test_common/harness/mt19937.h"
|
#include "harness/mt19937.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
#ifndef UTILITY_H
|
#ifndef UTILITY_H
|
||||||
#define UTILITY_H
|
#define UTILITY_H
|
||||||
|
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <OpenCL/opencl.h>
|
#include <OpenCL/opencl.h>
|
||||||
#else
|
#else
|
||||||
@@ -27,15 +27,15 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../test_common/harness/rounding_mode.h"
|
#include "harness/rounding_mode.h"
|
||||||
#include "../../test_common/harness/fpcontrol.h"
|
#include "harness/fpcontrol.h"
|
||||||
|
|
||||||
#if defined( _WIN32) && defined (_MSC_VER)
|
#if defined( _WIN32) && defined (_MSC_VER)
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "../../test_common/harness/ThreadPool.h"
|
#include "harness/ThreadPool.h"
|
||||||
#define BUFFER_SIZE (1024*1024*2)
|
#define BUFFER_SIZE (1024*1024*2)
|
||||||
|
|
||||||
#if defined( __GNUC__ )
|
#if defined( __GNUC__ )
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "../../test_common/harness/compat.h"
|
#include "harness/compat.h"
|
||||||
#include "reference_math.h"
|
#include "reference_math.h"
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "procs.h"
|
#include "procs.h"
|
||||||
#include "../../test_common/harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user