diff --git a/unit_tests/command_queue/CMakeLists.txt b/unit_tests/command_queue/CMakeLists.txt index 16b4ae7b91..31c2225b38 100644 --- a/unit_tests/command_queue/CMakeLists.txt +++ b/unit_tests/command_queue/CMakeLists.txt @@ -22,88 +22,93 @@ set(IGDRCL_SRCS_tests_command_queue ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt ${CMAKE_CURRENT_SOURCE_DIR}/buffer_operations_fixture.h ${CMAKE_CURRENT_SOURCE_DIR}/buffer_operations_withAsyncGPU_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/command_queue_flush_waitlist_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/command_queue_flush_waitlist_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/command_queue_hw_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/command_queue_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/dispatch_walker_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/drm_requirements_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/command_queue_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/command_queue_tests_wrapper1.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/command_queue_tests_wrapper2.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/command_queue_tests_wrapper3.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/command_queue_tests_wrapper4.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/command_queue_tests_wrapper5.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/dispatch_walker_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/drm_requirements_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_api_tests_mt_with_asyncGPU.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_barrier_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_buffer_event_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_barrier_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_buffer_event_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_buffer_fixture.h ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_buffer_rect_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_buffer_rect_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_buffer_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_buffer_rect_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_buffer_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_buffer_to_image_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_buffer_to_image_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_buffer_to_image_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_image_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_image_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_image_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_image_to_buffer_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_image_to_buffer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_debug_kernel_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_fill_buffer_event_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_image_to_buffer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_debug_kernel_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_fill_buffer_event_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_fill_buffer_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_fill_buffer_negative_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_fill_buffer_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_fill_buffer_negative_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_fill_buffer_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_fill_image_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_fill_image_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_fill_image_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_fixture.cpp ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_handler_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_event_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_global_offset_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_local_work_size_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_handler_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_event_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_global_offset_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_local_work_size_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_two_ioq_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_two_ooq_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_two_walker_ioq_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_two_walker_ooq_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_two_ioq_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_two_ooq_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_two_walker_ioq_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel_two_walker_ooq_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_map_buffer_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_map_buffer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_map_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_marker_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_media_kernel.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_migrate_mem_objects_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_buffer_event_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_map_buffer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_map_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_marker_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_media_kernel.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_migrate_mem_objects_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_buffer_event_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_buffer_fixture.h ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_buffer_rect_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_buffer_rect_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_buffer_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_buffer_rect_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_buffer_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_image_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_svm_mem_copy_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_svm_mem_fill_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_svm_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_thread_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_unmap_memobject_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_waitlist_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_write_buffer_event_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_svm_mem_copy_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_svm_mem_fill_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_svm_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_thread_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_unmap_memobject_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_waitlist_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_write_buffer_event_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_write_buffer_rect_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_write_buffer_rect_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_write_buffer_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_write_buffer_rect_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_write_buffer_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_write_image_fixture.h - ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_write_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/finish_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/flattened_id_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/flush_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/get_command_queue_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/get_size_required_buffer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/get_size_required_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/get_size_required_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/ioq_task_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/enqueue_write_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/finish_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/flattened_id_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/flush_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/get_command_queue_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/get_size_required_buffer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/get_size_required_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/get_size_required_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/ioq_task_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/ioq_task_tests_mt.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/local_id_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/local_work_size_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/multi_dispatch_info_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/multiple_map_buffer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/multiple_map_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/oom_buffer_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/oom_image_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/oom_tests.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/ooq_task_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/local_id_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/local_work_size_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/multi_dispatch_info_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/multiple_map_buffer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/multiple_map_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/oom_buffer_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/oom_image_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/oom_tests.inl + ${CMAKE_CURRENT_SOURCE_DIR}/ooq_task_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/ooq_task_tests_mt.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/read_write_buffer_cpu_copy.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/work_group_size_tests.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/read_write_buffer_cpu_copy.inl + ${CMAKE_CURRENT_SOURCE_DIR}/work_group_size_tests.inl ${CMAKE_CURRENT_SOURCE_DIR}/zero_size_enqueue_tests.cpp ) target_sources(igdrcl_tests PRIVATE ${IGDRCL_SRCS_tests_command_queue}) diff --git a/unit_tests/command_queue/command_queue_flush_waitlist_tests.cpp b/unit_tests/command_queue/command_queue_flush_waitlist_tests.inl similarity index 100% rename from unit_tests/command_queue/command_queue_flush_waitlist_tests.cpp rename to unit_tests/command_queue/command_queue_flush_waitlist_tests.inl diff --git a/unit_tests/command_queue/command_queue_tests.cpp b/unit_tests/command_queue/command_queue_tests.inl similarity index 100% rename from unit_tests/command_queue/command_queue_tests.cpp rename to unit_tests/command_queue/command_queue_tests.inl diff --git a/unit_tests/command_queue/command_queue_tests_wrapper1.cpp b/unit_tests/command_queue/command_queue_tests_wrapper1.cpp new file mode 100644 index 0000000000..5131c350f6 --- /dev/null +++ b/unit_tests/command_queue/command_queue_tests_wrapper1.cpp @@ -0,0 +1,35 @@ +/* + * 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/command_queue/command_queue_flush_waitlist_tests.inl" +#include "unit_tests/command_queue/command_queue_tests.inl" +#include "unit_tests/command_queue/dispatch_walker_tests.inl" +#include "unit_tests/command_queue/drm_requirements_tests.inl" +#include "unit_tests/command_queue/enqueue_barrier_tests.inl" +#include "unit_tests/command_queue/enqueue_copy_buffer_event_tests.inl" +#include "unit_tests/command_queue/enqueue_copy_buffer_rect_tests.inl" +#include "unit_tests/command_queue/enqueue_copy_buffer_tests.inl" +#include "unit_tests/command_queue/enqueue_copy_buffer_to_image_tests.inl" +#include "unit_tests/command_queue/enqueue_copy_image_tests.inl" +#include "unit_tests/command_queue/enqueue_copy_image_to_buffer_tests.inl" +#include "unit_tests/command_queue/enqueue_debug_kernel_tests.inl" +#include "unit_tests/command_queue/enqueue_fill_buffer_event_tests.inl" diff --git a/unit_tests/command_queue/command_queue_tests_wrapper2.cpp b/unit_tests/command_queue/command_queue_tests_wrapper2.cpp new file mode 100644 index 0000000000..9bf89f1133 --- /dev/null +++ b/unit_tests/command_queue/command_queue_tests_wrapper2.cpp @@ -0,0 +1,34 @@ +/* + * 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/command_queue/enqueue_fill_buffer_negative_tests.inl" +#include "unit_tests/command_queue/enqueue_fill_buffer_tests.inl" +#include "unit_tests/command_queue/enqueue_fill_image_tests.inl" +#include "unit_tests/command_queue/enqueue_handler_tests.inl" +#include "unit_tests/command_queue/enqueue_kernel_event_tests.inl" +#include "unit_tests/command_queue/enqueue_kernel_global_offset_tests.inl" +#include "unit_tests/command_queue/enqueue_kernel_local_work_size_tests.inl" +#include "unit_tests/command_queue/enqueue_kernel_two_ioq_tests.inl" +#include "unit_tests/command_queue/enqueue_kernel_two_ooq_tests.inl" +#include "unit_tests/command_queue/enqueue_kernel_two_walker_ioq_tests.inl" +#include "unit_tests/command_queue/enqueue_kernel_two_walker_ooq_tests.inl" +#include "unit_tests/command_queue/enqueue_map_buffer_tests.inl" diff --git a/unit_tests/command_queue/command_queue_tests_wrapper3.cpp b/unit_tests/command_queue/command_queue_tests_wrapper3.cpp new file mode 100644 index 0000000000..d25ef107f9 --- /dev/null +++ b/unit_tests/command_queue/command_queue_tests_wrapper3.cpp @@ -0,0 +1,35 @@ +/* + * 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/command_queue/enqueue_map_image_tests.inl" +#include "unit_tests/command_queue/enqueue_marker_tests.inl" +#include "unit_tests/command_queue/enqueue_media_kernel.inl" +#include "unit_tests/command_queue/enqueue_migrate_mem_objects_tests.inl" +#include "unit_tests/command_queue/enqueue_read_buffer_event_tests.inl" +#include "unit_tests/command_queue/enqueue_read_buffer_rect_tests.inl" +#include "unit_tests/command_queue/enqueue_read_buffer_tests.inl" +#include "unit_tests/command_queue/enqueue_read_image_tests.inl" +#include "unit_tests/command_queue/enqueue_svm_mem_copy_tests.inl" +#include "unit_tests/command_queue/enqueue_svm_mem_fill_tests.inl" +#include "unit_tests/command_queue/enqueue_svm_tests.inl" +#include "unit_tests/command_queue/enqueue_thread_tests.inl" +#include "unit_tests/command_queue/enqueue_unmap_memobject_tests.inl" diff --git a/unit_tests/command_queue/command_queue_tests_wrapper4.cpp b/unit_tests/command_queue/command_queue_tests_wrapper4.cpp new file mode 100644 index 0000000000..ff0c4aedbb --- /dev/null +++ b/unit_tests/command_queue/command_queue_tests_wrapper4.cpp @@ -0,0 +1,33 @@ +/* + * 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/command_queue/enqueue_waitlist_tests.inl" +#include "unit_tests/command_queue/enqueue_write_buffer_event_tests.inl" +#include "unit_tests/command_queue/enqueue_write_buffer_rect_tests.inl" +#include "unit_tests/command_queue/enqueue_write_buffer_tests.inl" +#include "unit_tests/command_queue/enqueue_write_image_tests.inl" +#include "unit_tests/command_queue/finish_tests.inl" +#include "unit_tests/command_queue/flattened_id_tests.inl" +#include "unit_tests/command_queue/flush_tests.inl" +#include "unit_tests/command_queue/ooq_task_tests.inl" +#include "unit_tests/command_queue/read_write_buffer_cpu_copy.inl" +#include "unit_tests/command_queue/work_group_size_tests.inl" diff --git a/unit_tests/command_queue/command_queue_tests_wrapper5.cpp b/unit_tests/command_queue/command_queue_tests_wrapper5.cpp new file mode 100644 index 0000000000..972570046e --- /dev/null +++ b/unit_tests/command_queue/command_queue_tests_wrapper5.cpp @@ -0,0 +1,35 @@ +/* + * 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/command_queue/get_command_queue_info_tests.inl" +#include "unit_tests/command_queue/get_size_required_buffer_tests.inl" +#include "unit_tests/command_queue/get_size_required_image_tests.inl" +#include "unit_tests/command_queue/get_size_required_tests.inl" +#include "unit_tests/command_queue/ioq_task_tests.inl" +#include "unit_tests/command_queue/local_id_tests.inl" +#include "unit_tests/command_queue/local_work_size_tests.inl" +#include "unit_tests/command_queue/multi_dispatch_info_tests.inl" +#include "unit_tests/command_queue/multiple_map_buffer_tests.inl" +#include "unit_tests/command_queue/multiple_map_image_tests.inl" +#include "unit_tests/command_queue/oom_buffer_tests.inl" +#include "unit_tests/command_queue/oom_image_tests.inl" +#include "unit_tests/command_queue/oom_tests.inl" diff --git a/unit_tests/command_queue/dispatch_walker_tests.cpp b/unit_tests/command_queue/dispatch_walker_tests.inl similarity index 100% rename from unit_tests/command_queue/dispatch_walker_tests.cpp rename to unit_tests/command_queue/dispatch_walker_tests.inl diff --git a/unit_tests/command_queue/drm_requirements_tests.cpp b/unit_tests/command_queue/drm_requirements_tests.inl similarity index 100% rename from unit_tests/command_queue/drm_requirements_tests.cpp rename to unit_tests/command_queue/drm_requirements_tests.inl diff --git a/unit_tests/command_queue/enqueue_barrier_tests.cpp b/unit_tests/command_queue/enqueue_barrier_tests.inl similarity index 99% rename from unit_tests/command_queue/enqueue_barrier_tests.cpp rename to unit_tests/command_queue/enqueue_barrier_tests.inl index 025a4bce8c..1149d2b9d9 100644 --- a/unit_tests/command_queue/enqueue_barrier_tests.cpp +++ b/unit_tests/command_queue/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/command_queue/enqueue_copy_buffer_event_tests.cpp b/unit_tests/command_queue/enqueue_copy_buffer_event_tests.inl similarity index 98% rename from unit_tests/command_queue/enqueue_copy_buffer_event_tests.cpp rename to unit_tests/command_queue/enqueue_copy_buffer_event_tests.inl index 4dde7db63c..c64b191a7f 100644 --- a/unit_tests/command_queue/enqueue_copy_buffer_event_tests.cpp +++ b/unit_tests/command_queue/enqueue_copy_buffer_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/command_queue/enqueue_copy_buffer_rect_tests.cpp b/unit_tests/command_queue/enqueue_copy_buffer_rect_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_copy_buffer_rect_tests.cpp rename to unit_tests/command_queue/enqueue_copy_buffer_rect_tests.inl diff --git a/unit_tests/command_queue/enqueue_copy_buffer_tests.cpp b/unit_tests/command_queue/enqueue_copy_buffer_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_copy_buffer_tests.cpp rename to unit_tests/command_queue/enqueue_copy_buffer_tests.inl diff --git a/unit_tests/command_queue/enqueue_copy_buffer_to_image_tests.cpp b/unit_tests/command_queue/enqueue_copy_buffer_to_image_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_copy_buffer_to_image_tests.cpp rename to unit_tests/command_queue/enqueue_copy_buffer_to_image_tests.inl diff --git a/unit_tests/command_queue/enqueue_copy_image_tests.cpp b/unit_tests/command_queue/enqueue_copy_image_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_copy_image_tests.cpp rename to unit_tests/command_queue/enqueue_copy_image_tests.inl diff --git a/unit_tests/command_queue/enqueue_copy_image_to_buffer_tests.cpp b/unit_tests/command_queue/enqueue_copy_image_to_buffer_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_copy_image_to_buffer_tests.cpp rename to unit_tests/command_queue/enqueue_copy_image_to_buffer_tests.inl diff --git a/unit_tests/command_queue/enqueue_debug_kernel_tests.cpp b/unit_tests/command_queue/enqueue_debug_kernel_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_debug_kernel_tests.cpp rename to unit_tests/command_queue/enqueue_debug_kernel_tests.inl diff --git a/unit_tests/command_queue/enqueue_fill_buffer_event_tests.cpp b/unit_tests/command_queue/enqueue_fill_buffer_event_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_fill_buffer_event_tests.cpp rename to unit_tests/command_queue/enqueue_fill_buffer_event_tests.inl diff --git a/unit_tests/command_queue/enqueue_fill_buffer_negative_tests.cpp b/unit_tests/command_queue/enqueue_fill_buffer_negative_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_fill_buffer_negative_tests.cpp rename to unit_tests/command_queue/enqueue_fill_buffer_negative_tests.inl diff --git a/unit_tests/command_queue/enqueue_fill_buffer_tests.cpp b/unit_tests/command_queue/enqueue_fill_buffer_tests.inl similarity index 99% rename from unit_tests/command_queue/enqueue_fill_buffer_tests.cpp rename to unit_tests/command_queue/enqueue_fill_buffer_tests.inl index 784ecf0bd4..b85f7fcef1 100644 --- a/unit_tests/command_queue/enqueue_fill_buffer_tests.cpp +++ b/unit_tests/command_queue/enqueue_fill_buffer_tests.inl @@ -37,7 +37,7 @@ using namespace OCLRT; -typedef Test EnqueueFillBufferCmdTests; +typedef ::Test EnqueueFillBufferCmdTests; HWTEST_F(EnqueueFillBufferCmdTests, alignsToCSR) { //this test case assumes IOQ diff --git a/unit_tests/command_queue/enqueue_fill_image_tests.cpp b/unit_tests/command_queue/enqueue_fill_image_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_fill_image_tests.cpp rename to unit_tests/command_queue/enqueue_fill_image_tests.inl diff --git a/unit_tests/command_queue/enqueue_handler_tests.cpp b/unit_tests/command_queue/enqueue_handler_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_handler_tests.cpp rename to unit_tests/command_queue/enqueue_handler_tests.inl diff --git a/unit_tests/command_queue/enqueue_kernel_event_tests.cpp b/unit_tests/command_queue/enqueue_kernel_event_tests.inl similarity index 99% rename from unit_tests/command_queue/enqueue_kernel_event_tests.cpp rename to unit_tests/command_queue/enqueue_kernel_event_tests.inl index 5971599396..94d348c394 100644 --- a/unit_tests/command_queue/enqueue_kernel_event_tests.cpp +++ b/unit_tests/command_queue/enqueue_kernel_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/command_queue/enqueue_kernel_global_offset_tests.cpp b/unit_tests/command_queue/enqueue_kernel_global_offset_tests.inl similarity index 97% rename from unit_tests/command_queue/enqueue_kernel_global_offset_tests.cpp rename to unit_tests/command_queue/enqueue_kernel_global_offset_tests.inl index e32df6fa7a..d61870ed53 100644 --- a/unit_tests/command_queue/enqueue_kernel_global_offset_tests.cpp +++ b/unit_tests/command_queue/enqueue_kernel_global_offset_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/command_queue/enqueue_kernel_local_work_size_tests.cpp b/unit_tests/command_queue/enqueue_kernel_local_work_size_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_kernel_local_work_size_tests.cpp rename to unit_tests/command_queue/enqueue_kernel_local_work_size_tests.inl diff --git a/unit_tests/command_queue/enqueue_kernel_two_ioq_tests.cpp b/unit_tests/command_queue/enqueue_kernel_two_ioq_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_kernel_two_ioq_tests.cpp rename to unit_tests/command_queue/enqueue_kernel_two_ioq_tests.inl diff --git a/unit_tests/command_queue/enqueue_kernel_two_ooq_tests.cpp b/unit_tests/command_queue/enqueue_kernel_two_ooq_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_kernel_two_ooq_tests.cpp rename to unit_tests/command_queue/enqueue_kernel_two_ooq_tests.inl diff --git a/unit_tests/command_queue/enqueue_kernel_two_walker_ioq_tests.cpp b/unit_tests/command_queue/enqueue_kernel_two_walker_ioq_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_kernel_two_walker_ioq_tests.cpp rename to unit_tests/command_queue/enqueue_kernel_two_walker_ioq_tests.inl diff --git a/unit_tests/command_queue/enqueue_kernel_two_walker_ooq_tests.cpp b/unit_tests/command_queue/enqueue_kernel_two_walker_ooq_tests.inl similarity index 94% rename from unit_tests/command_queue/enqueue_kernel_two_walker_ooq_tests.cpp rename to unit_tests/command_queue/enqueue_kernel_two_walker_ooq_tests.inl index 3611d78bfa..cef4a8a03f 100644 --- a/unit_tests/command_queue/enqueue_kernel_two_walker_ooq_tests.cpp +++ b/unit_tests/command_queue/enqueue_kernel_two_walker_ooq_tests.inl @@ -26,11 +26,11 @@ using namespace OCLRT; -struct OOQFixtureFactory : public HelloWorldFixtureFactory { +struct OOQFixtureFactory1 : public HelloWorldFixtureFactory { typedef OOQueueFixture CommandQueueFixture; }; -typedef TwoWalkerTest OOQWithTwoWalkers; +typedef TwoWalkerTest OOQWithTwoWalkers; HWCMDTEST_F(IGFX_GEN8_CORE, OOQWithTwoWalkers, shouldHaveTwoWalkers) { enqueueTwoKernels(); diff --git a/unit_tests/command_queue/enqueue_map_buffer_tests.cpp b/unit_tests/command_queue/enqueue_map_buffer_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_map_buffer_tests.cpp rename to unit_tests/command_queue/enqueue_map_buffer_tests.inl diff --git a/unit_tests/command_queue/enqueue_map_image_tests.cpp b/unit_tests/command_queue/enqueue_map_image_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_map_image_tests.cpp rename to unit_tests/command_queue/enqueue_map_image_tests.inl diff --git a/unit_tests/command_queue/enqueue_marker_tests.cpp b/unit_tests/command_queue/enqueue_marker_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_marker_tests.cpp rename to unit_tests/command_queue/enqueue_marker_tests.inl diff --git a/unit_tests/command_queue/enqueue_media_kernel.cpp b/unit_tests/command_queue/enqueue_media_kernel.inl similarity index 100% rename from unit_tests/command_queue/enqueue_media_kernel.cpp rename to unit_tests/command_queue/enqueue_media_kernel.inl diff --git a/unit_tests/command_queue/enqueue_migrate_mem_objects_tests.cpp b/unit_tests/command_queue/enqueue_migrate_mem_objects_tests.inl similarity index 98% rename from unit_tests/command_queue/enqueue_migrate_mem_objects_tests.cpp rename to unit_tests/command_queue/enqueue_migrate_mem_objects_tests.inl index e3c832b3e4..505868f254 100644 --- a/unit_tests/command_queue/enqueue_migrate_mem_objects_tests.cpp +++ b/unit_tests/command_queue/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/command_queue/enqueue_read_buffer_event_tests.cpp b/unit_tests/command_queue/enqueue_read_buffer_event_tests.inl similarity index 99% rename from unit_tests/command_queue/enqueue_read_buffer_event_tests.cpp rename to unit_tests/command_queue/enqueue_read_buffer_event_tests.inl index 9af681ae12..573fe4bcf7 100644 --- a/unit_tests/command_queue/enqueue_read_buffer_event_tests.cpp +++ b/unit_tests/command_queue/enqueue_read_buffer_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/command_queue/enqueue_read_buffer_rect_tests.cpp b/unit_tests/command_queue/enqueue_read_buffer_rect_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_read_buffer_rect_tests.cpp rename to unit_tests/command_queue/enqueue_read_buffer_rect_tests.inl diff --git a/unit_tests/command_queue/enqueue_read_buffer_tests.cpp b/unit_tests/command_queue/enqueue_read_buffer_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_read_buffer_tests.cpp rename to unit_tests/command_queue/enqueue_read_buffer_tests.inl diff --git a/unit_tests/command_queue/enqueue_read_image_tests.cpp b/unit_tests/command_queue/enqueue_read_image_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_read_image_tests.cpp rename to unit_tests/command_queue/enqueue_read_image_tests.inl diff --git a/unit_tests/command_queue/enqueue_svm_mem_copy_tests.cpp b/unit_tests/command_queue/enqueue_svm_mem_copy_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_svm_mem_copy_tests.cpp rename to unit_tests/command_queue/enqueue_svm_mem_copy_tests.inl diff --git a/unit_tests/command_queue/enqueue_svm_mem_fill_tests.cpp b/unit_tests/command_queue/enqueue_svm_mem_fill_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_svm_mem_fill_tests.cpp rename to unit_tests/command_queue/enqueue_svm_mem_fill_tests.inl diff --git a/unit_tests/command_queue/enqueue_svm_tests.cpp b/unit_tests/command_queue/enqueue_svm_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_svm_tests.cpp rename to unit_tests/command_queue/enqueue_svm_tests.inl diff --git a/unit_tests/command_queue/enqueue_thread_tests.cpp b/unit_tests/command_queue/enqueue_thread_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_thread_tests.cpp rename to unit_tests/command_queue/enqueue_thread_tests.inl diff --git a/unit_tests/command_queue/enqueue_unmap_memobject_tests.cpp b/unit_tests/command_queue/enqueue_unmap_memobject_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_unmap_memobject_tests.cpp rename to unit_tests/command_queue/enqueue_unmap_memobject_tests.inl diff --git a/unit_tests/command_queue/enqueue_waitlist_tests.cpp b/unit_tests/command_queue/enqueue_waitlist_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_waitlist_tests.cpp rename to unit_tests/command_queue/enqueue_waitlist_tests.inl diff --git a/unit_tests/command_queue/enqueue_write_buffer_event_tests.cpp b/unit_tests/command_queue/enqueue_write_buffer_event_tests.inl similarity index 99% rename from unit_tests/command_queue/enqueue_write_buffer_event_tests.cpp rename to unit_tests/command_queue/enqueue_write_buffer_event_tests.inl index b70a3143ba..4215877832 100644 --- a/unit_tests/command_queue/enqueue_write_buffer_event_tests.cpp +++ b/unit_tests/command_queue/enqueue_write_buffer_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/command_queue/enqueue_write_buffer_rect_tests.cpp b/unit_tests/command_queue/enqueue_write_buffer_rect_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_write_buffer_rect_tests.cpp rename to unit_tests/command_queue/enqueue_write_buffer_rect_tests.inl diff --git a/unit_tests/command_queue/enqueue_write_buffer_tests.cpp b/unit_tests/command_queue/enqueue_write_buffer_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_write_buffer_tests.cpp rename to unit_tests/command_queue/enqueue_write_buffer_tests.inl diff --git a/unit_tests/command_queue/enqueue_write_image_tests.cpp b/unit_tests/command_queue/enqueue_write_image_tests.inl similarity index 100% rename from unit_tests/command_queue/enqueue_write_image_tests.cpp rename to unit_tests/command_queue/enqueue_write_image_tests.inl diff --git a/unit_tests/command_queue/finish_tests.cpp b/unit_tests/command_queue/finish_tests.inl similarity index 98% rename from unit_tests/command_queue/finish_tests.cpp rename to unit_tests/command_queue/finish_tests.inl index b98d8a2a25..8e424994d1 100644 --- a/unit_tests/command_queue/finish_tests.cpp +++ b/unit_tests/command_queue/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/command_queue/flattened_id_tests.cpp b/unit_tests/command_queue/flattened_id_tests.inl similarity index 100% rename from unit_tests/command_queue/flattened_id_tests.cpp rename to unit_tests/command_queue/flattened_id_tests.inl diff --git a/unit_tests/command_queue/flush_tests.cpp b/unit_tests/command_queue/flush_tests.inl similarity index 97% rename from unit_tests/command_queue/flush_tests.cpp rename to unit_tests/command_queue/flush_tests.inl index 6c2c53f6af..0b69318729 100644 --- a/unit_tests/command_queue/flush_tests.cpp +++ b/unit_tests/command_queue/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/command_queue/get_command_queue_info_tests.cpp b/unit_tests/command_queue/get_command_queue_info_tests.inl similarity index 100% rename from unit_tests/command_queue/get_command_queue_info_tests.cpp rename to unit_tests/command_queue/get_command_queue_info_tests.inl diff --git a/unit_tests/command_queue/get_size_required_buffer_tests.cpp b/unit_tests/command_queue/get_size_required_buffer_tests.inl similarity index 100% rename from unit_tests/command_queue/get_size_required_buffer_tests.cpp rename to unit_tests/command_queue/get_size_required_buffer_tests.inl diff --git a/unit_tests/command_queue/get_size_required_image_tests.cpp b/unit_tests/command_queue/get_size_required_image_tests.inl similarity index 100% rename from unit_tests/command_queue/get_size_required_image_tests.cpp rename to unit_tests/command_queue/get_size_required_image_tests.inl diff --git a/unit_tests/command_queue/get_size_required_tests.cpp b/unit_tests/command_queue/get_size_required_tests.inl similarity index 100% rename from unit_tests/command_queue/get_size_required_tests.cpp rename to unit_tests/command_queue/get_size_required_tests.inl diff --git a/unit_tests/command_queue/ioq_task_tests.cpp b/unit_tests/command_queue/ioq_task_tests.inl similarity index 99% rename from unit_tests/command_queue/ioq_task_tests.cpp rename to unit_tests/command_queue/ioq_task_tests.inl index 9fe289e6a8..1e4cfab1fd 100644 --- a/unit_tests/command_queue/ioq_task_tests.cpp +++ b/unit_tests/command_queue/ioq_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/command_queue/local_id_tests.cpp b/unit_tests/command_queue/local_id_tests.inl similarity index 100% rename from unit_tests/command_queue/local_id_tests.cpp rename to unit_tests/command_queue/local_id_tests.inl diff --git a/unit_tests/command_queue/local_work_size_tests.cpp b/unit_tests/command_queue/local_work_size_tests.inl similarity index 100% rename from unit_tests/command_queue/local_work_size_tests.cpp rename to unit_tests/command_queue/local_work_size_tests.inl diff --git a/unit_tests/command_queue/multi_dispatch_info_tests.cpp b/unit_tests/command_queue/multi_dispatch_info_tests.inl similarity index 97% rename from unit_tests/command_queue/multi_dispatch_info_tests.cpp rename to unit_tests/command_queue/multi_dispatch_info_tests.inl index 8e33f8cda1..787795d1c0 100644 --- a/unit_tests/command_queue/multi_dispatch_info_tests.cpp +++ b/unit_tests/command_queue/multi_dispatch_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/command_queue/multiple_map_buffer_tests.cpp b/unit_tests/command_queue/multiple_map_buffer_tests.inl similarity index 100% rename from unit_tests/command_queue/multiple_map_buffer_tests.cpp rename to unit_tests/command_queue/multiple_map_buffer_tests.inl diff --git a/unit_tests/command_queue/multiple_map_image_tests.cpp b/unit_tests/command_queue/multiple_map_image_tests.inl similarity index 100% rename from unit_tests/command_queue/multiple_map_image_tests.cpp rename to unit_tests/command_queue/multiple_map_image_tests.inl diff --git a/unit_tests/command_queue/oom_buffer_tests.cpp b/unit_tests/command_queue/oom_buffer_tests.inl similarity index 98% rename from unit_tests/command_queue/oom_buffer_tests.cpp rename to unit_tests/command_queue/oom_buffer_tests.inl index c90aebe906..fae4c8bb3f 100644 --- a/unit_tests/command_queue/oom_buffer_tests.cpp +++ b/unit_tests/command_queue/oom_buffer_tests.inl @@ -34,12 +34,12 @@ using namespace OCLRT; -struct OOMSetting { +struct OOMSetting2 { bool oomCS; bool oomISH; }; -static OOMSetting oomSettings[] = { +static OOMSetting2 oomSettings2[] = { {true, false}, {false, true}, {true, true}}; @@ -49,7 +49,7 @@ struct OOMCommandQueueBufferTest : public MemoryManagementFixture, public CommandQueueFixture, public SimpleArgKernelFixture, public HelloWorldKernelFixture, - public ::testing::TestWithParam { + public ::testing::TestWithParam { using CommandQueueFixture::SetUp; using HelloWorldKernelFixture::SetUp; @@ -289,4 +289,4 @@ HWTEST_P(OOMCommandQueueBufferTest, enqueueKernelSimpleArg) { INSTANTIATE_TEST_CASE_P( OOM, OOMCommandQueueBufferTest, - testing::ValuesIn(oomSettings)); + testing::ValuesIn(oomSettings2)); diff --git a/unit_tests/command_queue/oom_image_tests.cpp b/unit_tests/command_queue/oom_image_tests.inl similarity index 98% rename from unit_tests/command_queue/oom_image_tests.cpp rename to unit_tests/command_queue/oom_image_tests.inl index f73025d047..acfdb7a857 100644 --- a/unit_tests/command_queue/oom_image_tests.cpp +++ b/unit_tests/command_queue/oom_image_tests.inl @@ -30,19 +30,19 @@ using namespace OCLRT; -struct OOMSetting { +struct OOMSetting1 { bool oomCS; bool oomISH; }; -static OOMSetting oomSettings[] = { +static OOMSetting1 oomSettings1[] = { {true, false}, {false, true}, {true, true}}; struct OOMCommandQueueImageTest : public DeviceFixture, public CommandQueueFixture, - public ::testing::TestWithParam { + public ::testing::TestWithParam { using CommandQueueFixture::SetUp; @@ -189,4 +189,4 @@ HWTEST_P(OOMCommandQueueImageTest, enqueueWriteImage) { INSTANTIATE_TEST_CASE_P( OOM, OOMCommandQueueImageTest, - testing::ValuesIn(oomSettings)); + testing::ValuesIn(oomSettings1)); diff --git a/unit_tests/command_queue/oom_tests.cpp b/unit_tests/command_queue/oom_tests.inl similarity index 100% rename from unit_tests/command_queue/oom_tests.cpp rename to unit_tests/command_queue/oom_tests.inl diff --git a/unit_tests/command_queue/ooq_task_tests.cpp b/unit_tests/command_queue/ooq_task_tests.inl similarity index 100% rename from unit_tests/command_queue/ooq_task_tests.cpp rename to unit_tests/command_queue/ooq_task_tests.inl diff --git a/unit_tests/command_queue/read_write_buffer_cpu_copy.cpp b/unit_tests/command_queue/read_write_buffer_cpu_copy.inl similarity index 100% rename from unit_tests/command_queue/read_write_buffer_cpu_copy.cpp rename to unit_tests/command_queue/read_write_buffer_cpu_copy.inl diff --git a/unit_tests/command_queue/work_group_size_tests.cpp b/unit_tests/command_queue/work_group_size_tests.inl similarity index 100% rename from unit_tests/command_queue/work_group_size_tests.cpp rename to unit_tests/command_queue/work_group_size_tests.inl