diff --git a/unit_tests/CMakeLists.txt b/unit_tests/CMakeLists.txt index 88cd7caea1..0b23a48425 100644 --- a/unit_tests/CMakeLists.txt +++ b/unit_tests/CMakeLists.txt @@ -99,6 +99,8 @@ endif() if(NOT MSVC) set_source_files_properties(helpers/uint16_sse4_tests.cpp PROPERTIES COMPILE_FLAGS -msse4.2) +else() + set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/api/api_tests.cpp PROPERTIES COMPILE_FLAGS -bigobj) endif() target_link_libraries(igdrcl_tests ${NEO_MOCKABLE_LIB_NAME}) diff --git a/unit_tests/api/CMakeLists.txt b/unit_tests/api/CMakeLists.txt index 1b469e7b3f..2ad70b7c0e 100644 --- a/unit_tests/api/CMakeLists.txt +++ b/unit_tests/api/CMakeLists.txt @@ -20,110 +20,111 @@ set(IGDRCL_SRCS_tests_api ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt + ${CMAKE_CURRENT_SOURCE_DIR}/api_tests.cpp ${CMAKE_CURRENT_SOURCE_DIR}/cl_api_tests.cpp ${CMAKE_CURRENT_SOURCE_DIR}/cl_api_tests.h - ${CMAKE_CURRENT_SOURCE_DIR}/cl_build_program_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_clone_kernel_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_compile_program_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_buffer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_command_queue_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_command_queue_with_properties_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_context_from_type_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_context_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_kernel_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_kernels_in_program_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_perf_counters_command_queue_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_pipe_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_program_with_binary_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_program_with_built_in_kernels_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_sampler_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_sampler_with_properties_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_sub_buffer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_sub_devices_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_user_event_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/cl_build_program_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_clone_kernel_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_compile_program_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_buffer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_command_queue_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_command_queue_with_properties_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_context_from_type_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_context_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_kernel_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_kernels_in_program_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_perf_counters_command_queue_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_pipe_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_program_with_binary_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_program_with_built_in_kernels_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_sampler_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_sampler_with_properties_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_sub_buffer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_sub_devices_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_user_event_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/cl_create_user_event_tests_mt.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_barrier_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_barrier_with_wait_list_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_copy_buffer_rect_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_copy_buffer_to_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_copy_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_copy_image_to_buffer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_fill_buffer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_fill_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_map_buffer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_map_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_marker_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_marker_with_wait_list_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_migrate_mem_objects_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_native_kernel_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_nd_range_kernel_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_read_buffer_rect_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_read_buffer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_read_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_svm_free_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_svm_map_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_svm_mem_fill_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_svm_memcpy_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_svm_migrate_mem_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_svm_unmap_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_task_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_unmap_mem_object_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_wait_for_events_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_write_buffer_rect_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_write_buffer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_write_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_finish_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_flush_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_context_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_device_and_host_timer.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_device_ids_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_device_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_event_profiling_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_extension_function_address_for_platform_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_extension_function_address_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_image_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_image_params_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_kernel_arg_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_kernel_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_kernel_sub_group_info_khr_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_kernel_sub_group_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_kernel_work_group_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_mem_object_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_pipe_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_platform_ids_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_barrier_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_barrier_with_wait_list_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_copy_buffer_rect_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_copy_buffer_to_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_copy_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_copy_image_to_buffer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_fill_buffer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_fill_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_map_buffer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_map_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_marker_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_marker_with_wait_list_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_migrate_mem_objects_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_native_kernel_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_nd_range_kernel_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_read_buffer_rect_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_read_buffer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_read_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_svm_free_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_svm_map_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_svm_mem_fill_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_svm_memcpy_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_svm_migrate_mem_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_svm_unmap_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_task_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_unmap_mem_object_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_wait_for_events_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_write_buffer_rect_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_write_buffer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_enqueue_write_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_finish_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_flush_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_context_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_device_and_host_timer.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_device_ids_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_device_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_event_profiling_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_extension_function_address_for_platform_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_extension_function_address_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_image_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_image_params_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_kernel_arg_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_kernel_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_kernel_sub_group_info_khr_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_kernel_sub_group_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_kernel_work_group_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_mem_object_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_pipe_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_platform_ids_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_platform_ids_tests_mt.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_platform_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_program_build_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_program_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_supported_image_formats_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_icd_get_platform_ids_khr_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_intel_accelerator_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_intel_motion_estimation.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_link_program_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_release_command_queue_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_release_context_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_release_event_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_release_kernel_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_release_mem_obj_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_release_program_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_retain_mem_obj_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_retain_release_command_queue_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_retain_release_context_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_retain_release_device_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_retain_release_sampler_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_default_device_command_queue_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_event_callback_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_kernel_arg_svm_pointer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_kernel_exec_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_mem_object_destructor_callback_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_platform_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_program_build_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_program_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_get_supported_image_formats_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_icd_get_platform_ids_khr_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_intel_accelerator_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_intel_motion_estimation.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_link_program_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_release_command_queue_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_release_context_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_release_event_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_release_kernel_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_release_mem_obj_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_release_program_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_retain_mem_obj_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_retain_release_command_queue_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_retain_release_context_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_retain_release_device_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_retain_release_sampler_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_default_device_command_queue_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_event_callback_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_kernel_arg_svm_pointer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_kernel_exec_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_mem_object_destructor_callback_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_mem_object_destructor_callback_tests_mt.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_performance_configuration_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_svm_alloc_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_svm_free_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_unload_compiler_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/cl_unload_platform_compiler_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/cl_set_performance_configuration_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_svm_alloc_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_svm_free_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_unload_compiler_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/cl_unload_platform_compiler_tests.inl ) target_sources(igdrcl_tests PRIVATE ${IGDRCL_SRCS_tests_api}) diff --git a/unit_tests/api/api_tests.cpp b/unit_tests/api/api_tests.cpp new file mode 100644 index 0000000000..6117251ad6 --- /dev/null +++ b/unit_tests/api/api_tests.cpp @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2018, Intel Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#include "unit_tests/api/cl_build_program_tests.inl" +#include "unit_tests/api/cl_clone_kernel_tests.inl" +#include "unit_tests/api/cl_compile_program_tests.inl" +#include "unit_tests/api/cl_create_buffer_tests.inl" +#include "unit_tests/api/cl_create_command_queue_tests.inl" +#include "unit_tests/api/cl_create_command_queue_with_properties_tests.inl" +#include "unit_tests/api/cl_create_context_from_type_tests.inl" +#include "unit_tests/api/cl_create_context_tests.inl" +#include "unit_tests/api/cl_create_image_tests.inl" +#include "unit_tests/api/cl_create_kernel_tests.inl" +#include "unit_tests/api/cl_create_kernels_in_program_tests.inl" +#include "unit_tests/api/cl_create_perf_counters_command_queue_tests.inl" +#include "unit_tests/api/cl_create_pipe_tests.inl" +#include "unit_tests/api/cl_create_program_with_binary_tests.inl" +#include "unit_tests/api/cl_create_program_with_built_in_kernels_tests.inl" +#include "unit_tests/api/cl_create_sampler_tests.inl" +#include "unit_tests/api/cl_create_sampler_with_properties_tests.inl" +#include "unit_tests/api/cl_create_sub_buffer_tests.inl" +#include "unit_tests/api/cl_create_sub_devices_tests.inl" +#include "unit_tests/api/cl_create_user_event_tests.inl" +#include "unit_tests/api/cl_enqueue_barrier_tests.inl" +#include "unit_tests/api/cl_enqueue_barrier_with_wait_list_tests.inl" +#include "unit_tests/api/cl_enqueue_copy_buffer_rect_tests.inl" +#include "unit_tests/api/cl_enqueue_copy_buffer_to_image_tests.inl" +#include "unit_tests/api/cl_enqueue_copy_image_tests.inl" +#include "unit_tests/api/cl_enqueue_copy_image_to_buffer_tests.inl" +#include "unit_tests/api/cl_enqueue_fill_buffer_tests.inl" +#include "unit_tests/api/cl_enqueue_fill_image_tests.inl" +#include "unit_tests/api/cl_enqueue_image_tests.inl" +#include "unit_tests/api/cl_enqueue_map_buffer_tests.inl" +#include "unit_tests/api/cl_enqueue_map_image_tests.inl" +#include "unit_tests/api/cl_enqueue_marker_tests.inl" +#include "unit_tests/api/cl_enqueue_marker_with_wait_list_tests.inl" +#include "unit_tests/api/cl_enqueue_migrate_mem_objects_tests.inl" +#include "unit_tests/api/cl_enqueue_native_kernel_tests.inl" +#include "unit_tests/api/cl_enqueue_nd_range_kernel_tests.inl" +#include "unit_tests/api/cl_enqueue_read_buffer_rect_tests.inl" +#include "unit_tests/api/cl_enqueue_read_buffer_tests.inl" +#include "unit_tests/api/cl_enqueue_read_image_tests.inl" +#include "unit_tests/api/cl_enqueue_svm_free_tests.inl" +#include "unit_tests/api/cl_enqueue_svm_map_tests.inl" +#include "unit_tests/api/cl_enqueue_svm_mem_fill_tests.inl" +#include "unit_tests/api/cl_enqueue_svm_memcpy_tests.inl" +#include "unit_tests/api/cl_enqueue_svm_migrate_mem_tests.inl" +#include "unit_tests/api/cl_enqueue_svm_unmap_tests.inl" +#include "unit_tests/api/cl_enqueue_task_tests.inl" +#include "unit_tests/api/cl_enqueue_unmap_mem_object_tests.inl" +#include "unit_tests/api/cl_enqueue_wait_for_events_tests.inl" +#include "unit_tests/api/cl_enqueue_write_buffer_rect_tests.inl" +#include "unit_tests/api/cl_enqueue_write_buffer_tests.inl" +#include "unit_tests/api/cl_enqueue_write_image_tests.inl" +#include "unit_tests/api/cl_finish_tests.inl" +#include "unit_tests/api/cl_flush_tests.inl" +#include "unit_tests/api/cl_get_context_info_tests.inl" +#include "unit_tests/api/cl_get_device_and_host_timer.inl" +#include "unit_tests/api/cl_get_device_ids_tests.inl" +#include "unit_tests/api/cl_get_device_info_tests.inl" +#include "unit_tests/api/cl_get_event_profiling_info_tests.inl" +#include "unit_tests/api/cl_get_extension_function_address_for_platform_tests.inl" +#include "unit_tests/api/cl_get_extension_function_address_tests.inl" +#include "unit_tests/api/cl_get_image_info_tests.inl" +#include "unit_tests/api/cl_get_image_params_tests.inl" +#include "unit_tests/api/cl_get_kernel_arg_info_tests.inl" +#include "unit_tests/api/cl_get_kernel_info_tests.inl" +#include "unit_tests/api/cl_get_kernel_sub_group_info_khr_tests.inl" +#include "unit_tests/api/cl_get_kernel_sub_group_info_tests.inl" +#include "unit_tests/api/cl_get_kernel_work_group_info_tests.inl" +#include "unit_tests/api/cl_get_mem_object_info_tests.inl" +#include "unit_tests/api/cl_get_pipe_info_tests.inl" +#include "unit_tests/api/cl_get_platform_ids_tests.inl" +#include "unit_tests/api/cl_get_platform_info_tests.inl" +#include "unit_tests/api/cl_get_program_build_info_tests.inl" +#include "unit_tests/api/cl_get_program_info_tests.inl" +#include "unit_tests/api/cl_get_supported_image_formats_tests.inl" +#include "unit_tests/api/cl_icd_get_platform_ids_khr_tests.inl" +#include "unit_tests/api/cl_intel_accelerator_tests.inl" +#include "unit_tests/api/cl_intel_motion_estimation.inl" +#include "unit_tests/api/cl_link_program_tests.inl" +#include "unit_tests/api/cl_release_command_queue_tests.inl" +#include "unit_tests/api/cl_release_context_tests.inl" +#include "unit_tests/api/cl_release_event_tests.inl" +#include "unit_tests/api/cl_release_kernel_tests.inl" +#include "unit_tests/api/cl_release_mem_obj_tests.inl" +#include "unit_tests/api/cl_release_program_tests.inl" +#include "unit_tests/api/cl_retain_mem_obj_tests.inl" +#include "unit_tests/api/cl_retain_release_command_queue_tests.inl" +#include "unit_tests/api/cl_retain_release_context_tests.inl" +#include "unit_tests/api/cl_retain_release_device_tests.inl" +#include "unit_tests/api/cl_retain_release_sampler_tests.inl" +#include "unit_tests/api/cl_set_default_device_command_queue_tests.inl" +#include "unit_tests/api/cl_set_event_callback_tests.inl" +#include "unit_tests/api/cl_set_kernel_arg_svm_pointer_tests.inl" +#include "unit_tests/api/cl_set_kernel_exec_info_tests.inl" +#include "unit_tests/api/cl_set_mem_object_destructor_callback_tests.inl" +#include "unit_tests/api/cl_set_performance_configuration_tests.inl" +#include "unit_tests/api/cl_svm_alloc_tests.inl" +#include "unit_tests/api/cl_svm_free_tests.inl" +#include "unit_tests/api/cl_unload_compiler_tests.inl" +#include "unit_tests/api/cl_unload_platform_compiler_tests.inl" diff --git a/unit_tests/api/cl_build_program_tests.cpp b/unit_tests/api/cl_build_program_tests.inl similarity index 100% rename from unit_tests/api/cl_build_program_tests.cpp rename to unit_tests/api/cl_build_program_tests.inl diff --git a/unit_tests/api/cl_clone_kernel_tests.cpp b/unit_tests/api/cl_clone_kernel_tests.inl similarity index 100% rename from unit_tests/api/cl_clone_kernel_tests.cpp rename to unit_tests/api/cl_clone_kernel_tests.inl diff --git a/unit_tests/api/cl_compile_program_tests.cpp b/unit_tests/api/cl_compile_program_tests.inl similarity index 100% rename from unit_tests/api/cl_compile_program_tests.cpp rename to unit_tests/api/cl_compile_program_tests.inl diff --git a/unit_tests/api/cl_create_buffer_tests.cpp b/unit_tests/api/cl_create_buffer_tests.inl similarity index 99% rename from unit_tests/api/cl_create_buffer_tests.cpp rename to unit_tests/api/cl_create_buffer_tests.inl index 668b0ebbe4..e0ce5bc93c 100644 --- a/unit_tests/api/cl_create_buffer_tests.cpp +++ b/unit_tests/api/cl_create_buffer_tests.inl @@ -33,7 +33,7 @@ using namespace OCLRT; typedef api_tests clCreateBufferTests; -namespace ULT { +namespace ClCreateBufferTests { class clCreateBufferTemplateTests : public api_fixture, public testing::TestWithParam { @@ -244,4 +244,4 @@ TEST_F(clCreateBufferTestsWithRestrictions, givenMemoryManagerRestrictionsWhenMi EXPECT_EQ(CL_SUCCESS, retVal); } -} // namespace ULT +} // namespace ClCreateBufferTests diff --git a/unit_tests/api/cl_create_command_queue_tests.cpp b/unit_tests/api/cl_create_command_queue_tests.inl similarity index 100% rename from unit_tests/api/cl_create_command_queue_tests.cpp rename to unit_tests/api/cl_create_command_queue_tests.inl diff --git a/unit_tests/api/cl_create_command_queue_with_properties_tests.cpp b/unit_tests/api/cl_create_command_queue_with_properties_tests.inl similarity index 100% rename from unit_tests/api/cl_create_command_queue_with_properties_tests.cpp rename to unit_tests/api/cl_create_command_queue_with_properties_tests.inl diff --git a/unit_tests/api/cl_create_context_from_type_tests.cpp b/unit_tests/api/cl_create_context_from_type_tests.inl similarity index 98% rename from unit_tests/api/cl_create_context_from_type_tests.cpp rename to unit_tests/api/cl_create_context_from_type_tests.inl index e9b1e18ce7..f9123af1b4 100644 --- a/unit_tests/api/cl_create_context_from_type_tests.cpp +++ b/unit_tests/api/cl_create_context_from_type_tests.inl @@ -1,5 +1,5 @@ /* -* Copyright (c) 2017, Intel Corporation +* Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_create_context_tests.cpp b/unit_tests/api/cl_create_context_tests.inl similarity index 96% rename from unit_tests/api/cl_create_context_tests.cpp rename to unit_tests/api/cl_create_context_tests.inl index 56f2eb5bdc..5a5a1213ce 100644 --- a/unit_tests/api/cl_create_context_tests.cpp +++ b/unit_tests/api/cl_create_context_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -27,7 +27,7 @@ using namespace OCLRT; typedef api_tests clCreateContextTests; -namespace ULT { +namespace ClCreateContextTests { static int cbInvoked = 0; void CL_CALLBACK eventCallBack(const char *, const void *, size_t, void *) { @@ -102,4 +102,4 @@ TEST_F(clCreateContextTests, givenInvalidContextCreationPropertiesThenContextCre EXPECT_EQ(nullptr, context); } -} // namespace ULT +} // namespace ClCreateContextTests diff --git a/unit_tests/api/cl_create_image_tests.cpp b/unit_tests/api/cl_create_image_tests.inl similarity index 99% rename from unit_tests/api/cl_create_image_tests.cpp rename to unit_tests/api/cl_create_image_tests.inl index e95288c0fe..904291e5ad 100644 --- a/unit_tests/api/cl_create_image_tests.cpp +++ b/unit_tests/api/cl_create_image_tests.inl @@ -27,7 +27,7 @@ using namespace OCLRT; -namespace ULT { +namespace ClCreateImageTests { template struct clCreateImageTests : public api_fixture, @@ -871,4 +871,4 @@ TEST_P(clCreateNon2dImageFromImageTest, givenImage2dWhenCreateImageFromNon2dImag INSTANTIATE_TEST_CASE_P(clCreateNon2dImageFromImageTests, clCreateNon2dImageFromImageTest, ::testing::ValuesIn(non2dImageTypes)); -} // namespace ULT +} // namespace ClCreateImageTests diff --git a/unit_tests/api/cl_create_kernel_tests.cpp b/unit_tests/api/cl_create_kernel_tests.inl similarity index 100% rename from unit_tests/api/cl_create_kernel_tests.cpp rename to unit_tests/api/cl_create_kernel_tests.inl diff --git a/unit_tests/api/cl_create_kernels_in_program_tests.cpp b/unit_tests/api/cl_create_kernels_in_program_tests.inl similarity index 100% rename from unit_tests/api/cl_create_kernels_in_program_tests.cpp rename to unit_tests/api/cl_create_kernels_in_program_tests.inl diff --git a/unit_tests/api/cl_create_perf_counters_command_queue_tests.cpp b/unit_tests/api/cl_create_perf_counters_command_queue_tests.inl similarity index 82% rename from unit_tests/api/cl_create_perf_counters_command_queue_tests.cpp rename to unit_tests/api/cl_create_perf_counters_command_queue_tests.inl index f15f0fc448..ea32e552e6 100644 --- a/unit_tests/api/cl_create_perf_counters_command_queue_tests.cpp +++ b/unit_tests/api/cl_create_perf_counters_command_queue_tests.inl @@ -1,24 +1,24 @@ /* - * Copyright (c) 2017, Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included - * in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR - * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - * OTHER DEALINGS IN THE SOFTWARE. - */ +* Copyright (c) 2017 - 2018, Intel Corporation +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included +* in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ #include "cl_api_tests.h" #include "runtime/context/context.h" diff --git a/unit_tests/api/cl_create_pipe_tests.cpp b/unit_tests/api/cl_create_pipe_tests.inl similarity index 97% rename from unit_tests/api/cl_create_pipe_tests.cpp rename to unit_tests/api/cl_create_pipe_tests.inl index 383110c3b3..8050baca42 100644 --- a/unit_tests/api/cl_create_pipe_tests.cpp +++ b/unit_tests/api/cl_create_pipe_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -29,7 +29,7 @@ using namespace OCLRT; typedef api_tests clCreatePipeTests; -namespace ULT { +namespace ClCreatePipeTests { class clCreatePipeWithParamTests : public api_fixture, public testing::TestWithParam { void SetUp() override { @@ -175,4 +175,4 @@ TEST_F(clCreatePipeTests, PipeInvalidContext) { delete pipe; } -} // namespace ULT +} // namespace ClCreatePipeTests diff --git a/unit_tests/api/cl_create_program_with_binary_tests.cpp b/unit_tests/api/cl_create_program_with_binary_tests.inl similarity index 100% rename from unit_tests/api/cl_create_program_with_binary_tests.cpp rename to unit_tests/api/cl_create_program_with_binary_tests.inl diff --git a/unit_tests/api/cl_create_program_with_built_in_kernels_tests.cpp b/unit_tests/api/cl_create_program_with_built_in_kernels_tests.inl similarity index 100% rename from unit_tests/api/cl_create_program_with_built_in_kernels_tests.cpp rename to unit_tests/api/cl_create_program_with_built_in_kernels_tests.inl diff --git a/unit_tests/api/cl_create_sampler_tests.cpp b/unit_tests/api/cl_create_sampler_tests.cpp deleted file mode 100644 index d03e4d5fde..0000000000 --- a/unit_tests/api/cl_create_sampler_tests.cpp +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) 2017, Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included - * in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR - * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - * OTHER DEALINGS IN THE SOFTWARE. - */ - -#include "cl_api_tests.h" -#include "runtime/context/context.h" - -using namespace OCLRT; - -typedef api_tests clCreateSamplerTests; - -namespace ULT { - -TEST_F(clCreateSamplerTests, returnsSuccess) { - auto sampler = clCreateSampler( - pContext, - CL_TRUE, - CL_ADDRESS_CLAMP, - CL_FILTER_NEAREST, - &retVal); - EXPECT_EQ(CL_SUCCESS, retVal); - EXPECT_NE(nullptr, sampler); - - retVal = clReleaseSampler(sampler); - EXPECT_EQ(CL_SUCCESS, retVal); -} - -TEST_F(clCreateSamplerTests, noRet) { - auto sampler = clCreateSampler( - pContext, - CL_TRUE, - CL_ADDRESS_CLAMP, - CL_FILTER_NEAREST, - nullptr); - EXPECT_NE(nullptr, sampler); - - retVal = clReleaseSampler(sampler); - EXPECT_EQ(CL_SUCCESS, retVal); -} - -TEST_F(clCreateSamplerTests, nullContextReturnsError) { - auto sampler = clCreateSampler( - nullptr, - CL_FALSE, - CL_ADDRESS_CLAMP_TO_EDGE, - CL_FILTER_LINEAR, - &retVal); - EXPECT_EQ(CL_INVALID_CONTEXT, retVal); - EXPECT_EQ(nullptr, sampler); - delete sampler; -} -} // namespace ULT diff --git a/unit_tests/api/cl_create_sampler_tests.inl b/unit_tests/api/cl_create_sampler_tests.inl new file mode 100644 index 0000000000..1d480e2c7a --- /dev/null +++ b/unit_tests/api/cl_create_sampler_tests.inl @@ -0,0 +1,70 @@ +/* +* Copyright (c) 2017 - 2018, Intel Corporation +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included +* in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "cl_api_tests.h" +#include "runtime/context/context.h" + +using namespace OCLRT; + +typedef api_tests clCreateSamplerTests; + +namespace ULT { + +TEST_F(clCreateSamplerTests, returnsSuccess) { + auto sampler = clCreateSampler( + pContext, + CL_TRUE, + CL_ADDRESS_CLAMP, + CL_FILTER_NEAREST, + &retVal); + EXPECT_EQ(CL_SUCCESS, retVal); + EXPECT_NE(nullptr, sampler); + + retVal = clReleaseSampler(sampler); + EXPECT_EQ(CL_SUCCESS, retVal); +} + +TEST_F(clCreateSamplerTests, noRet) { + auto sampler = clCreateSampler( + pContext, + CL_TRUE, + CL_ADDRESS_CLAMP, + CL_FILTER_NEAREST, + nullptr); + EXPECT_NE(nullptr, sampler); + + retVal = clReleaseSampler(sampler); + EXPECT_EQ(CL_SUCCESS, retVal); +} + +TEST_F(clCreateSamplerTests, nullContextReturnsError) { + auto sampler = clCreateSampler( + nullptr, + CL_FALSE, + CL_ADDRESS_CLAMP_TO_EDGE, + CL_FILTER_LINEAR, + &retVal); + EXPECT_EQ(CL_INVALID_CONTEXT, retVal); + EXPECT_EQ(nullptr, sampler); + delete sampler; +} +} // namespace ULT diff --git a/unit_tests/api/cl_create_sampler_with_properties_tests.cpp b/unit_tests/api/cl_create_sampler_with_properties_tests.inl similarity index 100% rename from unit_tests/api/cl_create_sampler_with_properties_tests.cpp rename to unit_tests/api/cl_create_sampler_with_properties_tests.inl diff --git a/unit_tests/api/cl_create_sub_buffer_tests.cpp b/unit_tests/api/cl_create_sub_buffer_tests.inl similarity index 98% rename from unit_tests/api/cl_create_sub_buffer_tests.cpp rename to unit_tests/api/cl_create_sub_buffer_tests.inl index 75fe114ae5..59ec02bd7c 100644 --- a/unit_tests/api/cl_create_sub_buffer_tests.cpp +++ b/unit_tests/api/cl_create_sub_buffer_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -25,7 +25,7 @@ using namespace OCLRT; -namespace ULT { +namespace ClCreateSubbufferTests { template class clCreateSubBufferTemplateTests : public api_fixture, @@ -225,4 +225,4 @@ TEST_F(clCreateSubBufferTests, inheritFlags) { clReleaseMemObject(subBuffer); } -} // namespace ULT +} // namespace ClCreateSubbufferTests diff --git a/unit_tests/api/cl_create_sub_devices_tests.cpp b/unit_tests/api/cl_create_sub_devices_tests.inl similarity index 96% rename from unit_tests/api/cl_create_sub_devices_tests.cpp rename to unit_tests/api/cl_create_sub_devices_tests.inl index cc8e95ec4f..0ee0487cc9 100644 --- a/unit_tests/api/cl_create_sub_devices_tests.cpp +++ b/unit_tests/api/cl_create_sub_devices_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_create_user_event_tests.cpp b/unit_tests/api/cl_create_user_event_tests.inl similarity index 99% rename from unit_tests/api/cl_create_user_event_tests.cpp rename to unit_tests/api/cl_create_user_event_tests.inl index 85f1bdc922..0d74112cb0 100644 --- a/unit_tests/api/cl_create_user_event_tests.cpp +++ b/unit_tests/api/cl_create_user_event_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_barrier_tests.cpp b/unit_tests/api/cl_enqueue_barrier_tests.inl similarity index 96% rename from unit_tests/api/cl_enqueue_barrier_tests.cpp rename to unit_tests/api/cl_enqueue_barrier_tests.inl index 6d8c3583f2..4623005f5a 100644 --- a/unit_tests/api/cl_enqueue_barrier_tests.cpp +++ b/unit_tests/api/cl_enqueue_barrier_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_barrier_with_wait_list_tests.cpp b/unit_tests/api/cl_enqueue_barrier_with_wait_list_tests.inl similarity index 97% rename from unit_tests/api/cl_enqueue_barrier_with_wait_list_tests.cpp rename to unit_tests/api/cl_enqueue_barrier_with_wait_list_tests.inl index 303cab8f0e..92193517c4 100644 --- a/unit_tests/api/cl_enqueue_barrier_with_wait_list_tests.cpp +++ b/unit_tests/api/cl_enqueue_barrier_with_wait_list_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_copy_buffer_rect_tests.cpp b/unit_tests/api/cl_enqueue_copy_buffer_rect_tests.inl similarity index 98% rename from unit_tests/api/cl_enqueue_copy_buffer_rect_tests.cpp rename to unit_tests/api/cl_enqueue_copy_buffer_rect_tests.inl index a596f3e62d..e7bd8279a6 100644 --- a/unit_tests/api/cl_enqueue_copy_buffer_rect_tests.cpp +++ b/unit_tests/api/cl_enqueue_copy_buffer_rect_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_copy_buffer_to_image_tests.cpp b/unit_tests/api/cl_enqueue_copy_buffer_to_image_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_copy_buffer_to_image_tests.cpp rename to unit_tests/api/cl_enqueue_copy_buffer_to_image_tests.inl diff --git a/unit_tests/api/cl_enqueue_copy_image_tests.cpp b/unit_tests/api/cl_enqueue_copy_image_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_copy_image_tests.cpp rename to unit_tests/api/cl_enqueue_copy_image_tests.inl diff --git a/unit_tests/api/cl_enqueue_copy_image_to_buffer_tests.cpp b/unit_tests/api/cl_enqueue_copy_image_to_buffer_tests.inl similarity index 99% rename from unit_tests/api/cl_enqueue_copy_image_to_buffer_tests.cpp rename to unit_tests/api/cl_enqueue_copy_image_to_buffer_tests.inl index 157a9f92dc..6ee56e8e01 100644 --- a/unit_tests/api/cl_enqueue_copy_image_to_buffer_tests.cpp +++ b/unit_tests/api/cl_enqueue_copy_image_to_buffer_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 -2018, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_fill_buffer_tests.cpp b/unit_tests/api/cl_enqueue_fill_buffer_tests.inl similarity index 97% rename from unit_tests/api/cl_enqueue_fill_buffer_tests.cpp rename to unit_tests/api/cl_enqueue_fill_buffer_tests.inl index f2fc29998c..f778cb342d 100644 --- a/unit_tests/api/cl_enqueue_fill_buffer_tests.cpp +++ b/unit_tests/api/cl_enqueue_fill_buffer_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_fill_image_tests.cpp b/unit_tests/api/cl_enqueue_fill_image_tests.inl similarity index 98% rename from unit_tests/api/cl_enqueue_fill_image_tests.cpp rename to unit_tests/api/cl_enqueue_fill_image_tests.inl index 32b6e751a8..aab01ec65d 100644 --- a/unit_tests/api/cl_enqueue_fill_image_tests.cpp +++ b/unit_tests/api/cl_enqueue_fill_image_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_image_tests.cpp b/unit_tests/api/cl_enqueue_image_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_image_tests.cpp rename to unit_tests/api/cl_enqueue_image_tests.inl diff --git a/unit_tests/api/cl_enqueue_map_buffer_tests.cpp b/unit_tests/api/cl_enqueue_map_buffer_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_map_buffer_tests.cpp rename to unit_tests/api/cl_enqueue_map_buffer_tests.inl diff --git a/unit_tests/api/cl_enqueue_map_image_tests.cpp b/unit_tests/api/cl_enqueue_map_image_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_map_image_tests.cpp rename to unit_tests/api/cl_enqueue_map_image_tests.inl diff --git a/unit_tests/api/cl_enqueue_marker_tests.cpp b/unit_tests/api/cl_enqueue_marker_tests.inl similarity index 98% rename from unit_tests/api/cl_enqueue_marker_tests.cpp rename to unit_tests/api/cl_enqueue_marker_tests.inl index 8dd86e002d..705c857b94 100644 --- a/unit_tests/api/cl_enqueue_marker_tests.cpp +++ b/unit_tests/api/cl_enqueue_marker_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_marker_with_wait_list_tests.cpp b/unit_tests/api/cl_enqueue_marker_with_wait_list_tests.inl similarity index 97% rename from unit_tests/api/cl_enqueue_marker_with_wait_list_tests.cpp rename to unit_tests/api/cl_enqueue_marker_with_wait_list_tests.inl index dc8e25a856..f989c3106a 100644 --- a/unit_tests/api/cl_enqueue_marker_with_wait_list_tests.cpp +++ b/unit_tests/api/cl_enqueue_marker_with_wait_list_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_migrate_mem_objects_tests.cpp b/unit_tests/api/cl_enqueue_migrate_mem_objects_tests.inl similarity index 99% rename from unit_tests/api/cl_enqueue_migrate_mem_objects_tests.cpp rename to unit_tests/api/cl_enqueue_migrate_mem_objects_tests.inl index c71e403885..b763649cd2 100644 --- a/unit_tests/api/cl_enqueue_migrate_mem_objects_tests.cpp +++ b/unit_tests/api/cl_enqueue_migrate_mem_objects_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_native_kernel_tests.cpp b/unit_tests/api/cl_enqueue_native_kernel_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_native_kernel_tests.cpp rename to unit_tests/api/cl_enqueue_native_kernel_tests.inl diff --git a/unit_tests/api/cl_enqueue_nd_range_kernel_tests.cpp b/unit_tests/api/cl_enqueue_nd_range_kernel_tests.inl similarity index 98% rename from unit_tests/api/cl_enqueue_nd_range_kernel_tests.cpp rename to unit_tests/api/cl_enqueue_nd_range_kernel_tests.inl index 8090e4ee08..bcd5a70ea5 100644 --- a/unit_tests/api/cl_enqueue_nd_range_kernel_tests.cpp +++ b/unit_tests/api/cl_enqueue_nd_range_kernel_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_read_buffer_rect_tests.cpp b/unit_tests/api/cl_enqueue_read_buffer_rect_tests.inl similarity index 99% rename from unit_tests/api/cl_enqueue_read_buffer_rect_tests.cpp rename to unit_tests/api/cl_enqueue_read_buffer_rect_tests.inl index e695755d3f..d4c030ca65 100644 --- a/unit_tests/api/cl_enqueue_read_buffer_rect_tests.cpp +++ b/unit_tests/api/cl_enqueue_read_buffer_rect_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_read_buffer_tests.cpp b/unit_tests/api/cl_enqueue_read_buffer_tests.inl similarity index 98% rename from unit_tests/api/cl_enqueue_read_buffer_tests.cpp rename to unit_tests/api/cl_enqueue_read_buffer_tests.inl index 65dfd1a117..a36e7ce855 100644 --- a/unit_tests/api/cl_enqueue_read_buffer_tests.cpp +++ b/unit_tests/api/cl_enqueue_read_buffer_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_read_image_tests.cpp b/unit_tests/api/cl_enqueue_read_image_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_read_image_tests.cpp rename to unit_tests/api/cl_enqueue_read_image_tests.inl diff --git a/unit_tests/api/cl_enqueue_svm_free_tests.cpp b/unit_tests/api/cl_enqueue_svm_free_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_svm_free_tests.cpp rename to unit_tests/api/cl_enqueue_svm_free_tests.inl diff --git a/unit_tests/api/cl_enqueue_svm_map_tests.cpp b/unit_tests/api/cl_enqueue_svm_map_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_svm_map_tests.cpp rename to unit_tests/api/cl_enqueue_svm_map_tests.inl diff --git a/unit_tests/api/cl_enqueue_svm_mem_fill_tests.cpp b/unit_tests/api/cl_enqueue_svm_mem_fill_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_svm_mem_fill_tests.cpp rename to unit_tests/api/cl_enqueue_svm_mem_fill_tests.inl diff --git a/unit_tests/api/cl_enqueue_svm_memcpy_tests.cpp b/unit_tests/api/cl_enqueue_svm_memcpy_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_svm_memcpy_tests.cpp rename to unit_tests/api/cl_enqueue_svm_memcpy_tests.inl diff --git a/unit_tests/api/cl_enqueue_svm_migrate_mem_tests.cpp b/unit_tests/api/cl_enqueue_svm_migrate_mem_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_svm_migrate_mem_tests.cpp rename to unit_tests/api/cl_enqueue_svm_migrate_mem_tests.inl diff --git a/unit_tests/api/cl_enqueue_svm_unmap_tests.cpp b/unit_tests/api/cl_enqueue_svm_unmap_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_svm_unmap_tests.cpp rename to unit_tests/api/cl_enqueue_svm_unmap_tests.inl diff --git a/unit_tests/api/cl_enqueue_task_tests.cpp b/unit_tests/api/cl_enqueue_task_tests.inl similarity index 98% rename from unit_tests/api/cl_enqueue_task_tests.cpp rename to unit_tests/api/cl_enqueue_task_tests.inl index d4d62d1413..84c7e6f1ec 100644 --- a/unit_tests/api/cl_enqueue_task_tests.cpp +++ b/unit_tests/api/cl_enqueue_task_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_unmap_mem_object_tests.cpp b/unit_tests/api/cl_enqueue_unmap_mem_object_tests.inl similarity index 98% rename from unit_tests/api/cl_enqueue_unmap_mem_object_tests.cpp rename to unit_tests/api/cl_enqueue_unmap_mem_object_tests.inl index 3b35f09850..a8baaa3edc 100644 --- a/unit_tests/api/cl_enqueue_unmap_mem_object_tests.cpp +++ b/unit_tests/api/cl_enqueue_unmap_mem_object_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_wait_for_events_tests.cpp b/unit_tests/api/cl_enqueue_wait_for_events_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_wait_for_events_tests.cpp rename to unit_tests/api/cl_enqueue_wait_for_events_tests.inl diff --git a/unit_tests/api/cl_enqueue_write_buffer_rect_tests.cpp b/unit_tests/api/cl_enqueue_write_buffer_rect_tests.inl similarity index 98% rename from unit_tests/api/cl_enqueue_write_buffer_rect_tests.cpp rename to unit_tests/api/cl_enqueue_write_buffer_rect_tests.inl index b5edeaf566..6b420b8cd7 100644 --- a/unit_tests/api/cl_enqueue_write_buffer_rect_tests.cpp +++ b/unit_tests/api/cl_enqueue_write_buffer_rect_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_write_buffer_tests.cpp b/unit_tests/api/cl_enqueue_write_buffer_tests.inl similarity index 97% rename from unit_tests/api/cl_enqueue_write_buffer_tests.cpp rename to unit_tests/api/cl_enqueue_write_buffer_tests.inl index 443cfc8424..b15687ec40 100644 --- a/unit_tests/api/cl_enqueue_write_buffer_tests.cpp +++ b/unit_tests/api/cl_enqueue_write_buffer_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_enqueue_write_image_tests.cpp b/unit_tests/api/cl_enqueue_write_image_tests.inl similarity index 100% rename from unit_tests/api/cl_enqueue_write_image_tests.cpp rename to unit_tests/api/cl_enqueue_write_image_tests.inl diff --git a/unit_tests/api/cl_finish_tests.cpp b/unit_tests/api/cl_finish_tests.inl similarity index 96% rename from unit_tests/api/cl_finish_tests.cpp rename to unit_tests/api/cl_finish_tests.inl index 9b238d2355..0120d9be56 100644 --- a/unit_tests/api/cl_finish_tests.cpp +++ b/unit_tests/api/cl_finish_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_flush_tests.cpp b/unit_tests/api/cl_flush_tests.inl similarity index 96% rename from unit_tests/api/cl_flush_tests.cpp rename to unit_tests/api/cl_flush_tests.inl index 1368fda31a..c75082cc30 100644 --- a/unit_tests/api/cl_flush_tests.cpp +++ b/unit_tests/api/cl_flush_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_context_info_tests.cpp b/unit_tests/api/cl_get_context_info_tests.inl similarity index 98% rename from unit_tests/api/cl_get_context_info_tests.cpp rename to unit_tests/api/cl_get_context_info_tests.inl index 86b6ef7fc8..7ce59dbed8 100644 --- a/unit_tests/api/cl_get_context_info_tests.cpp +++ b/unit_tests/api/cl_get_context_info_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_device_and_host_timer.cpp b/unit_tests/api/cl_get_device_and_host_timer.inl similarity index 100% rename from unit_tests/api/cl_get_device_and_host_timer.cpp rename to unit_tests/api/cl_get_device_and_host_timer.inl diff --git a/unit_tests/api/cl_get_device_ids_tests.cpp b/unit_tests/api/cl_get_device_ids_tests.inl similarity index 98% rename from unit_tests/api/cl_get_device_ids_tests.cpp rename to unit_tests/api/cl_get_device_ids_tests.inl index 1388f04382..96062526a7 100644 --- a/unit_tests/api/cl_get_device_ids_tests.cpp +++ b/unit_tests/api/cl_get_device_ids_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_device_info_tests.cpp b/unit_tests/api/cl_get_device_info_tests.inl similarity index 99% rename from unit_tests/api/cl_get_device_info_tests.cpp rename to unit_tests/api/cl_get_device_info_tests.inl index 43eca2c7a2..da2654dfdb 100644 --- a/unit_tests/api/cl_get_device_info_tests.cpp +++ b/unit_tests/api/cl_get_device_info_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_event_profiling_info_tests.cpp b/unit_tests/api/cl_get_event_profiling_info_tests.inl similarity index 100% rename from unit_tests/api/cl_get_event_profiling_info_tests.cpp rename to unit_tests/api/cl_get_event_profiling_info_tests.inl diff --git a/unit_tests/api/cl_get_extension_function_address_for_platform_tests.cpp b/unit_tests/api/cl_get_extension_function_address_for_platform_tests.inl similarity index 98% rename from unit_tests/api/cl_get_extension_function_address_for_platform_tests.cpp rename to unit_tests/api/cl_get_extension_function_address_for_platform_tests.inl index 7fb942ba22..cdc6eb9335 100644 --- a/unit_tests/api/cl_get_extension_function_address_for_platform_tests.cpp +++ b/unit_tests/api/cl_get_extension_function_address_for_platform_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_extension_function_address_tests.cpp b/unit_tests/api/cl_get_extension_function_address_tests.inl similarity index 98% rename from unit_tests/api/cl_get_extension_function_address_tests.cpp rename to unit_tests/api/cl_get_extension_function_address_tests.inl index 751f555b13..b60fd05a4c 100644 --- a/unit_tests/api/cl_get_extension_function_address_tests.cpp +++ b/unit_tests/api/cl_get_extension_function_address_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_image_info_tests.cpp b/unit_tests/api/cl_get_image_info_tests.inl similarity index 100% rename from unit_tests/api/cl_get_image_info_tests.cpp rename to unit_tests/api/cl_get_image_info_tests.inl diff --git a/unit_tests/api/cl_get_image_params_tests.cpp b/unit_tests/api/cl_get_image_params_tests.inl similarity index 98% rename from unit_tests/api/cl_get_image_params_tests.cpp rename to unit_tests/api/cl_get_image_params_tests.inl index f897b9da35..3c958306f2 100644 --- a/unit_tests/api/cl_get_image_params_tests.cpp +++ b/unit_tests/api/cl_get_image_params_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_kernel_arg_info_tests.cpp b/unit_tests/api/cl_get_kernel_arg_info_tests.inl similarity index 98% rename from unit_tests/api/cl_get_kernel_arg_info_tests.cpp rename to unit_tests/api/cl_get_kernel_arg_info_tests.inl index d4ea7b8b87..626950cfc6 100644 --- a/unit_tests/api/cl_get_kernel_arg_info_tests.cpp +++ b/unit_tests/api/cl_get_kernel_arg_info_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_kernel_info_tests.cpp b/unit_tests/api/cl_get_kernel_info_tests.inl similarity index 98% rename from unit_tests/api/cl_get_kernel_info_tests.cpp rename to unit_tests/api/cl_get_kernel_info_tests.inl index 6f1863d7c2..24bc56062a 100644 --- a/unit_tests/api/cl_get_kernel_info_tests.cpp +++ b/unit_tests/api/cl_get_kernel_info_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_kernel_sub_group_info_khr_tests.cpp b/unit_tests/api/cl_get_kernel_sub_group_info_khr_tests.inl similarity index 99% rename from unit_tests/api/cl_get_kernel_sub_group_info_khr_tests.cpp rename to unit_tests/api/cl_get_kernel_sub_group_info_khr_tests.inl index 1a0522eb4d..3496f098b7 100644 --- a/unit_tests/api/cl_get_kernel_sub_group_info_khr_tests.cpp +++ b/unit_tests/api/cl_get_kernel_sub_group_info_khr_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_kernel_sub_group_info_tests.cpp b/unit_tests/api/cl_get_kernel_sub_group_info_tests.inl similarity index 99% rename from unit_tests/api/cl_get_kernel_sub_group_info_tests.cpp rename to unit_tests/api/cl_get_kernel_sub_group_info_tests.inl index a7d3117ea1..af9357b7c8 100644 --- a/unit_tests/api/cl_get_kernel_sub_group_info_tests.cpp +++ b/unit_tests/api/cl_get_kernel_sub_group_info_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_kernel_work_group_info_tests.cpp b/unit_tests/api/cl_get_kernel_work_group_info_tests.inl similarity index 99% rename from unit_tests/api/cl_get_kernel_work_group_info_tests.cpp rename to unit_tests/api/cl_get_kernel_work_group_info_tests.inl index afcf4a09fd..13b3ca104c 100644 --- a/unit_tests/api/cl_get_kernel_work_group_info_tests.cpp +++ b/unit_tests/api/cl_get_kernel_work_group_info_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_mem_object_info_tests.cpp b/unit_tests/api/cl_get_mem_object_info_tests.inl similarity index 98% rename from unit_tests/api/cl_get_mem_object_info_tests.cpp rename to unit_tests/api/cl_get_mem_object_info_tests.inl index 2c6a4a831e..73f7819f73 100644 --- a/unit_tests/api/cl_get_mem_object_info_tests.cpp +++ b/unit_tests/api/cl_get_mem_object_info_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_pipe_info_tests.cpp b/unit_tests/api/cl_get_pipe_info_tests.inl similarity index 99% rename from unit_tests/api/cl_get_pipe_info_tests.cpp rename to unit_tests/api/cl_get_pipe_info_tests.inl index bfd45a16a0..b36ce6b049 100644 --- a/unit_tests/api/cl_get_pipe_info_tests.cpp +++ b/unit_tests/api/cl_get_pipe_info_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_platform_ids_tests.cpp b/unit_tests/api/cl_get_platform_ids_tests.inl similarity index 100% rename from unit_tests/api/cl_get_platform_ids_tests.cpp rename to unit_tests/api/cl_get_platform_ids_tests.inl diff --git a/unit_tests/api/cl_get_platform_info_tests.cpp b/unit_tests/api/cl_get_platform_info_tests.inl similarity index 100% rename from unit_tests/api/cl_get_platform_info_tests.cpp rename to unit_tests/api/cl_get_platform_info_tests.inl diff --git a/unit_tests/api/cl_get_program_build_info_tests.cpp b/unit_tests/api/cl_get_program_build_info_tests.inl similarity index 100% rename from unit_tests/api/cl_get_program_build_info_tests.cpp rename to unit_tests/api/cl_get_program_build_info_tests.inl diff --git a/unit_tests/api/cl_get_program_info_tests.cpp b/unit_tests/api/cl_get_program_info_tests.inl similarity index 98% rename from unit_tests/api/cl_get_program_info_tests.cpp rename to unit_tests/api/cl_get_program_info_tests.inl index 0c405a922f..921f14d540 100644 --- a/unit_tests/api/cl_get_program_info_tests.cpp +++ b/unit_tests/api/cl_get_program_info_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_get_supported_image_formats_tests.cpp b/unit_tests/api/cl_get_supported_image_formats_tests.inl similarity index 100% rename from unit_tests/api/cl_get_supported_image_formats_tests.cpp rename to unit_tests/api/cl_get_supported_image_formats_tests.inl diff --git a/unit_tests/api/cl_icd_get_platform_ids_khr_tests.cpp b/unit_tests/api/cl_icd_get_platform_ids_khr_tests.inl similarity index 98% rename from unit_tests/api/cl_icd_get_platform_ids_khr_tests.cpp rename to unit_tests/api/cl_icd_get_platform_ids_khr_tests.inl index a0bcdb1586..dd789a5e1c 100644 --- a/unit_tests/api/cl_icd_get_platform_ids_khr_tests.cpp +++ b/unit_tests/api/cl_icd_get_platform_ids_khr_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_intel_accelerator_tests.cpp b/unit_tests/api/cl_intel_accelerator_tests.inl similarity index 99% rename from unit_tests/api/cl_intel_accelerator_tests.cpp rename to unit_tests/api/cl_intel_accelerator_tests.inl index 24b298ebf7..b34d7d6169 100644 --- a/unit_tests/api/cl_intel_accelerator_tests.cpp +++ b/unit_tests/api/cl_intel_accelerator_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_intel_motion_estimation.cpp b/unit_tests/api/cl_intel_motion_estimation.inl similarity index 99% rename from unit_tests/api/cl_intel_motion_estimation.cpp rename to unit_tests/api/cl_intel_motion_estimation.inl index 59ec7dc9be..b489ade86f 100644 --- a/unit_tests/api/cl_intel_motion_estimation.cpp +++ b/unit_tests/api/cl_intel_motion_estimation.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_link_program_tests.cpp b/unit_tests/api/cl_link_program_tests.inl similarity index 100% rename from unit_tests/api/cl_link_program_tests.cpp rename to unit_tests/api/cl_link_program_tests.inl diff --git a/unit_tests/api/cl_release_command_queue_tests.cpp b/unit_tests/api/cl_release_command_queue_tests.inl similarity index 98% rename from unit_tests/api/cl_release_command_queue_tests.cpp rename to unit_tests/api/cl_release_command_queue_tests.inl index 127da402de..985a86b1b7 100644 --- a/unit_tests/api/cl_release_command_queue_tests.cpp +++ b/unit_tests/api/cl_release_command_queue_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -19,6 +19,7 @@ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ + #include "cl_api_tests.h" #include "runtime/context/context.h" #include "unit_tests/fixtures/device_host_queue_fixture.h" diff --git a/unit_tests/api/cl_release_context_tests.cpp b/unit_tests/api/cl_release_context_tests.inl similarity index 97% rename from unit_tests/api/cl_release_context_tests.cpp rename to unit_tests/api/cl_release_context_tests.inl index 15974d7e8b..cf2198aa37 100644 --- a/unit_tests/api/cl_release_context_tests.cpp +++ b/unit_tests/api/cl_release_context_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_release_event_tests.cpp b/unit_tests/api/cl_release_event_tests.inl similarity index 97% rename from unit_tests/api/cl_release_event_tests.cpp rename to unit_tests/api/cl_release_event_tests.inl index e952bc666f..e5f3354e0b 100644 --- a/unit_tests/api/cl_release_event_tests.cpp +++ b/unit_tests/api/cl_release_event_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -26,6 +26,8 @@ #include "test.h" using namespace OCLRT; + +namespace ClReleaseEventTests { template class EventFixture : public api_fixture, public T { public: @@ -162,3 +164,4 @@ INSTANTIATE_TEST_CASE_P(SetInvalidStatus, ::testing::Combine( ::testing::ValuesIn(invalidStatus), ::testing::ValuesIn(expectInvalidStatus))); +} // namespace ClReleaseEventTests diff --git a/unit_tests/api/cl_release_kernel_tests.cpp b/unit_tests/api/cl_release_kernel_tests.inl similarity index 100% rename from unit_tests/api/cl_release_kernel_tests.cpp rename to unit_tests/api/cl_release_kernel_tests.inl diff --git a/unit_tests/api/cl_release_mem_obj_tests.cpp b/unit_tests/api/cl_release_mem_obj_tests.inl similarity index 97% rename from unit_tests/api/cl_release_mem_obj_tests.cpp rename to unit_tests/api/cl_release_mem_obj_tests.inl index 592b629a86..f7f6961b3c 100644 --- a/unit_tests/api/cl_release_mem_obj_tests.cpp +++ b/unit_tests/api/cl_release_mem_obj_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_release_program_tests.cpp b/unit_tests/api/cl_release_program_tests.inl similarity index 97% rename from unit_tests/api/cl_release_program_tests.cpp rename to unit_tests/api/cl_release_program_tests.inl index 611bf9945f..fe53017b98 100644 --- a/unit_tests/api/cl_release_program_tests.cpp +++ b/unit_tests/api/cl_release_program_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_retain_mem_obj_tests.cpp b/unit_tests/api/cl_retain_mem_obj_tests.inl similarity index 100% rename from unit_tests/api/cl_retain_mem_obj_tests.cpp rename to unit_tests/api/cl_retain_mem_obj_tests.inl diff --git a/unit_tests/api/cl_retain_release_command_queue_tests.cpp b/unit_tests/api/cl_retain_release_command_queue_tests.inl similarity index 98% rename from unit_tests/api/cl_retain_release_command_queue_tests.cpp rename to unit_tests/api/cl_retain_release_command_queue_tests.inl index 7f36f84bc5..ffbd4bc9d3 100644 --- a/unit_tests/api/cl_retain_release_command_queue_tests.cpp +++ b/unit_tests/api/cl_retain_release_command_queue_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_retain_release_context_tests.cpp b/unit_tests/api/cl_retain_release_context_tests.inl similarity index 97% rename from unit_tests/api/cl_retain_release_context_tests.cpp rename to unit_tests/api/cl_retain_release_context_tests.inl index 4bd48127c9..86dbb8c1fa 100644 --- a/unit_tests/api/cl_retain_release_context_tests.cpp +++ b/unit_tests/api/cl_retain_release_context_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_retain_release_device_tests.cpp b/unit_tests/api/cl_retain_release_device_tests.inl similarity index 98% rename from unit_tests/api/cl_retain_release_device_tests.cpp rename to unit_tests/api/cl_retain_release_device_tests.inl index 5166cb9a5d..10b0eb40b9 100644 --- a/unit_tests/api/cl_retain_release_device_tests.cpp +++ b/unit_tests/api/cl_retain_release_device_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_retain_release_sampler_tests.cpp b/unit_tests/api/cl_retain_release_sampler_tests.inl similarity index 98% rename from unit_tests/api/cl_retain_release_sampler_tests.cpp rename to unit_tests/api/cl_retain_release_sampler_tests.inl index 244c6f0a37..a0aaaf942d 100644 --- a/unit_tests/api/cl_retain_release_sampler_tests.cpp +++ b/unit_tests/api/cl_retain_release_sampler_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_set_default_device_command_queue_tests.cpp b/unit_tests/api/cl_set_default_device_command_queue_tests.inl similarity index 99% rename from unit_tests/api/cl_set_default_device_command_queue_tests.cpp rename to unit_tests/api/cl_set_default_device_command_queue_tests.inl index cb14bdb5d1..23dead3b63 100644 --- a/unit_tests/api/cl_set_default_device_command_queue_tests.cpp +++ b/unit_tests/api/cl_set_default_device_command_queue_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_set_event_callback_tests.cpp b/unit_tests/api/cl_set_event_callback_tests.inl similarity index 98% rename from unit_tests/api/cl_set_event_callback_tests.cpp rename to unit_tests/api/cl_set_event_callback_tests.inl index 3ea3246305..d3fd817043 100644 --- a/unit_tests/api/cl_set_event_callback_tests.cpp +++ b/unit_tests/api/cl_set_event_callback_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -25,7 +25,7 @@ #include "unit_tests/helpers/debug_manager_state_restore.h" using namespace OCLRT; -namespace ULT { +namespace ClSetEventCallbackTests { static int cbInvoked = 0; static void *cbData = nullptr; @@ -189,4 +189,4 @@ TEST_F(clSetEventCallback_, UserDataPassed) { delete event; } -} // namespace ULT +} // namespace ClSetEventCallbackTests diff --git a/unit_tests/api/cl_set_kernel_arg_svm_pointer_tests.cpp b/unit_tests/api/cl_set_kernel_arg_svm_pointer_tests.inl similarity index 100% rename from unit_tests/api/cl_set_kernel_arg_svm_pointer_tests.cpp rename to unit_tests/api/cl_set_kernel_arg_svm_pointer_tests.inl diff --git a/unit_tests/api/cl_set_kernel_exec_info_tests.cpp b/unit_tests/api/cl_set_kernel_exec_info_tests.inl similarity index 100% rename from unit_tests/api/cl_set_kernel_exec_info_tests.cpp rename to unit_tests/api/cl_set_kernel_exec_info_tests.inl diff --git a/unit_tests/api/cl_set_mem_object_destructor_callback_tests.cpp b/unit_tests/api/cl_set_mem_object_destructor_callback_tests.inl similarity index 98% rename from unit_tests/api/cl_set_mem_object_destructor_callback_tests.cpp rename to unit_tests/api/cl_set_mem_object_destructor_callback_tests.inl index ea12fcb3e9..9dd2fa4f59 100644 --- a/unit_tests/api/cl_set_mem_object_destructor_callback_tests.cpp +++ b/unit_tests/api/cl_set_mem_object_destructor_callback_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_set_performance_configuration_tests.cpp b/unit_tests/api/cl_set_performance_configuration_tests.inl similarity index 98% rename from unit_tests/api/cl_set_performance_configuration_tests.cpp rename to unit_tests/api/cl_set_performance_configuration_tests.inl index 81478b1829..7c30aa2e74 100644 --- a/unit_tests/api/cl_set_performance_configuration_tests.cpp +++ b/unit_tests/api/cl_set_performance_configuration_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_svm_alloc_tests.cpp b/unit_tests/api/cl_svm_alloc_tests.inl similarity index 99% rename from unit_tests/api/cl_svm_alloc_tests.cpp rename to unit_tests/api/cl_svm_alloc_tests.inl index 201f522fc4..cceee6e4bc 100644 --- a/unit_tests/api/cl_svm_alloc_tests.cpp +++ b/unit_tests/api/cl_svm_alloc_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_svm_free_tests.cpp b/unit_tests/api/cl_svm_free_tests.inl similarity index 100% rename from unit_tests/api/cl_svm_free_tests.cpp rename to unit_tests/api/cl_svm_free_tests.inl diff --git a/unit_tests/api/cl_unload_compiler_tests.cpp b/unit_tests/api/cl_unload_compiler_tests.inl similarity index 96% rename from unit_tests/api/cl_unload_compiler_tests.cpp rename to unit_tests/api/cl_unload_compiler_tests.inl index eefd99e64b..0bcbacf619 100644 --- a/unit_tests/api/cl_unload_compiler_tests.cpp +++ b/unit_tests/api/cl_unload_compiler_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/unit_tests/api/cl_unload_platform_compiler_tests.cpp b/unit_tests/api/cl_unload_platform_compiler_tests.inl similarity index 96% rename from unit_tests/api/cl_unload_platform_compiler_tests.cpp rename to unit_tests/api/cl_unload_platform_compiler_tests.inl index 03c326bc26..c13dec2f0a 100644 --- a/unit_tests/api/cl_unload_platform_compiler_tests.cpp +++ b/unit_tests/api/cl_unload_platform_compiler_tests.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Intel Corporation + * Copyright (c) 2017 - 2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"),