From 75ab0c6fe1fd2b94a2813d8be0d439c461e6ef37 Mon Sep 17 00:00:00 2001 From: Artur Harasimiuk Date: Tue, 12 Jun 2018 21:54:39 +0200 Subject: [PATCH] Switch clang-format to 6.0 Change-Id: Id96d1f47fb3d479d10d1022f1259dc030a148192 Signed-off-by: Artur Harasimiuk --- elf/reader.cpp | 4 +- elf/types.h | 4 +- elf/writer.cpp | 6 +-- elf/writer.h | 4 +- manifests/manifest.yml | 2 +- runtime/accelerators/intel_accelerator.cpp | 4 +- .../accelerators/intel_motion_estimation.cpp | 4 +- .../accelerators/intel_motion_estimation.h | 4 +- runtime/aub_mem_dump/aub_mem_dump.cpp | 2 +- runtime/built_ins/vme_dispatch_builder.h | 2 +- .../gen8/scheduler_simulation.cpp | 2 +- .../gen9/scheduler_simulation.cpp | 2 +- .../builtin_kernels_simulation/opencl_c.cpp | 2 +- runtime/builtin_kernels_simulation/opencl_c.h | 4 +- runtime/command_queue/enqueue_barrier.h | 4 +- runtime/command_queue/enqueue_copy_buffer.h | 4 +- runtime/command_queue/enqueue_fill_buffer.h | 2 +- runtime/command_queue/enqueue_svm.h | 2 +- runtime/command_queue/local_id_gen.h | 2 +- runtime/command_queue/local_id_gen.inl | 4 +- runtime/command_queue/local_id_gen_avx2.cpp | 4 +- runtime/command_queue/local_id_gen_sse4.cpp | 4 +- .../aub_command_stream_receiver.h | 4 +- .../create_command_stream_impl.h | 2 +- .../command_stream/device_command_stream.h | 4 +- runtime/command_stream/linear_stream.cpp | 4 +- .../tbx_command_stream_receiver.cpp | 2 +- runtime/compiler_interface/binary_cache.cpp | 4 +- runtime/compiler_interface/binary_cache.h | 2 +- .../compiler_interface/compiler_interface.inl | 7 ++- runtime/compiler_interface/create_main.cpp | 4 +- runtime/context/context.inl | 2 +- runtime/device/device_info_map.h | 2 +- runtime/dll/linux/options.cpp | 2 +- runtime/event/event_builder.h | 2 +- runtime/event/hw_timestamps.h | 4 +- runtime/gen8/aub_mapper.h | 4 +- runtime/gen8/buffer_gen8.cpp | 2 +- runtime/gen8/hw_cmds.h | 2 +- runtime/gen8/image_gen8.cpp | 2 +- runtime/gen8/kernel_commands_gen8.cpp | 2 +- .../linux/command_stream_receiver_gen8.cpp | 2 +- runtime/gen8/reg_configs.h | 4 +- runtime/gen8/sampler_gen8.cpp | 2 +- runtime/gen8/scheduler_igdrcl_built_in.inl | 37 ++++++------- .../gen8/tbx_command_stream_receiver_gen8.cpp | 2 +- .../windows/command_stream_receiver_gen8.cpp | 2 +- runtime/gen9/aub_mapper.h | 4 +- runtime/gen9/buffer_gen9.cpp | 2 +- runtime/gen9/image_gen9.cpp | 2 +- runtime/gen9/kernel_commands_gen9.cpp | 2 +- .../linux/command_stream_receiver_gen9.cpp | 2 +- runtime/gen9/sampler_gen9.cpp | 2 +- .../gen9/tbx_command_stream_receiver_gen9.cpp | 2 +- .../windows/command_stream_receiver_gen9.cpp | 2 +- runtime/gtpin/gtpin_callback_stubs.cpp | 2 +- runtime/gtpin/gtpin_defs.h | 2 +- runtime/gtpin/gtpin_helpers.h | 4 +- runtime/gtpin/gtpin_init.cpp | 2 +- runtime/gtpin/gtpin_notify.h | 2 +- runtime/helpers/abort.cpp | 4 +- runtime/helpers/base_object.cpp | 4 +- runtime/helpers/base_object_allocator.cpp | 4 +- runtime/helpers/cache_policy.h | 4 +- runtime/helpers/dispatch_info.cpp | 4 +- runtime/helpers/flat_batch_buffer_helper.cpp | 2 +- runtime/helpers/hash.h | 4 +- runtime/helpers/per_thread_data.cpp | 4 +- runtime/helpers/per_thread_data.h | 4 +- runtime/helpers/pipeline_select_helper.h | 2 +- runtime/helpers/queue_helpers.h | 4 +- runtime/helpers/state_base_address.h | 2 +- runtime/helpers/surface_formats.cpp | 4 +- runtime/helpers/uint16_avx2.h | 4 +- runtime/helpers/uint16_sse4.h | 4 +- runtime/indirect_heap/indirect_heap.cpp | 2 +- runtime/indirect_heap/indirect_heap.h | 2 +- runtime/kernel/image_transformer.cpp | 2 +- runtime/kernel/image_transformer.h | 2 +- runtime/kernel/kernel.cpp | 2 +- runtime/memory_manager/address_mapper.cpp | 2 +- runtime/memory_manager/address_mapper.h | 4 +- runtime/memory_manager/deferrable_deletion.h | 4 +- runtime/memory_manager/memory_constants.h | 4 +- runtime/memory_manager/page_table.cpp | 2 +- runtime/memory_manager/page_table.h | 4 +- runtime/os_interface/device_factory.h | 4 +- .../os_interface/linux/debug_env_reader.cpp | 4 +- .../linux/device_command_stream.inl | 4 +- runtime/os_interface/linux/drm_allocation.h | 4 +- .../linux/drm_gem_close_worker.cpp | 2 +- .../os_interface/linux/drm_gem_close_worker.h | 2 +- runtime/os_interface/linux/drm_neo_create.cpp | 4 +- runtime/os_interface/linux/drm_null_device.h | 2 +- .../linux/gmm_interface_linux.cpp | 2 +- runtime/os_interface/linux/os_inc.h | 4 +- runtime/os_interface/linux/os_library.cpp | 6 +-- runtime/os_interface/linux/os_library.h | 6 +-- .../os_interface/linux/os_thread_linux.cpp | 2 +- runtime/os_interface/linux/os_thread_linux.h | 2 +- runtime/os_interface/os_inc_base.h | 4 +- runtime/os_interface/os_library.h | 4 +- runtime/os_interface/os_thread.h | 2 +- .../windows/device_command_stream.inl | 4 +- .../windows/gmm_interface_dynamic_win.cpp | 2 +- .../windows/gmm_interface_static_win.cpp | 2 +- .../os_interface/windows/kmdaf_listener.cpp | 2 +- runtime/os_interface/windows/kmdaf_listener.h | 2 +- .../windows/kmdaf_listener_stub.cpp | 2 +- runtime/os_interface/windows/os_inc.h | 4 +- runtime/os_interface/windows/os_library.cpp | 6 +-- runtime/os_interface/windows/os_library.h | 6 +-- .../os_interface/windows/os_thread_win.cpp | 2 +- runtime/os_interface/windows/os_thread_win.h | 2 +- runtime/program/create.cpp | 2 +- runtime/program/patch_info.h | 52 +++++++++---------- runtime/program/process_elf_binary.cpp | 4 +- runtime/program/process_spir_binary.cpp | 4 +- runtime/sampler/sampler.h | 2 +- runtime/sampler/sampler.inl | 2 +- runtime/sharings/d3d/cl_d3d_api.h | 1 - runtime/sharings/d3d/enable_d3d.cpp | 4 +- runtime/sharings/d3d/enable_d3d.h | 4 +- runtime/sharings/sharing.cpp | 2 +- runtime/sharings/sharing_factory.cpp | 2 +- runtime/sharings/sharing_factory.h | 2 +- runtime/sharings/sharing_factory.inl | 4 +- runtime/sharings/va/enable_va.h | 4 +- runtime/sharings/va/va_sharing.cpp | 2 +- runtime/sharings/va/va_sharing.h | 4 +- runtime/sharings/va/va_sharing_functions.cpp | 2 +- runtime/sharings/va/va_sharing_functions.h | 2 +- runtime/sharings/va/va_surface.h | 4 +- runtime/utilities/debug_file_reader.h | 4 +- runtime/utilities/debug_settings_reader.cpp | 4 +- runtime/utilities/debug_settings_reader.h | 4 +- runtime/utilities/directory.h | 4 +- runtime/utilities/heap_allocator.cpp | 4 +- runtime/utilities/idlist.h | 4 +- runtime/utilities/iflist.h | 4 +- runtime/utilities/linux/debug_env_reader.h | 4 +- runtime/utilities/linux/directory.cpp | 4 +- runtime/utilities/linux/timer_util.cpp | 4 +- runtime/utilities/numeric.h | 2 +- runtime/utilities/perf_profiler.cpp | 4 +- runtime/utilities/range.h | 4 +- runtime/utilities/reference_tracked_object.h | 2 +- runtime/utilities/spinlock.h | 2 +- runtime/utilities/tag_allocator.h | 1 + runtime/utilities/timer_util.h | 4 +- runtime/utilities/vec.h | 4 +- runtime/utilities/windows/directory.cpp | 4 +- runtime/utilities/windows/timer_util.cpp | 4 +- unit_tests/abort.cpp | 4 +- unit_tests/api/cl_create_image_tests.cpp | 2 +- .../api/cl_create_user_event_tests_mt.cpp | 3 +- .../api/cl_enqueue_native_kernel_tests.cpp | 4 +- unit_tests/api/cl_enqueue_svm_free_tests.cpp | 16 +++--- unit_tests/api/cl_enqueue_svm_map_tests.cpp | 14 ++--- .../api/cl_enqueue_svm_mem_fill_tests.cpp | 14 ++--- .../api/cl_enqueue_svm_memcpy_tests.cpp | 16 +++--- .../api/cl_enqueue_svm_migrate_mem_tests.cpp | 28 +++++----- unit_tests/api/cl_enqueue_svm_unmap_tests.cpp | 14 ++--- .../api/cl_enqueue_wait_for_events_tests.cpp | 4 +- unit_tests/api/cl_retain_mem_obj_tests.cpp | 4 +- .../cl_set_kernel_arg_svm_pointer_tests.cpp | 20 +++---- .../api/cl_set_kernel_exec_info_tests.cpp | 24 ++++----- unit_tests/api/cl_svm_free_tests.cpp | 4 +- .../aub_tests/aub_tests_configuration.cpp | 2 +- .../command_queue/command_enqueue_fixture.h | 4 +- .../aub_tests/fixtures/hello_world_fixture.h | 4 +- .../aub_tests/fixtures/run_kernel_fixture.h | 2 +- .../aub_tests/fixtures/simple_arg_fixture.h | 6 +-- unit_tests/base_object_allocator.cpp | 4 +- .../built_ins/built_in_kernels_tests.cpp | 4 +- .../buffer_operations_withAsyncGPU_fixture.h | 4 +- .../command_queue/command_queue_fixture.cpp | 4 +- .../enqueue_copy_buffer_fixture.h | 2 +- .../enqueue_fill_buffer_event_tests.cpp | 4 +- .../enqueue_fill_buffer_fixture.h | 4 +- .../enqueue_fill_buffer_negative_tests.cpp | 6 +-- .../enqueue_fill_image_fixture.h | 4 +- .../enqueue_map_buffer_fixture.h | 4 +- .../enqueue_svm_mem_copy_tests.cpp | 2 +- .../enqueue_svm_mem_fill_tests.cpp | 2 +- .../command_queue/enqueue_svm_tests.cpp | 48 ++++++++--------- .../command_queue/enqueue_waitlist_tests.cpp | 4 +- .../command_queue/flattened_id_tests.cpp | 4 +- .../get_command_queue_info_tests.cpp | 4 +- unit_tests/command_queue/oom_buffer_tests.cpp | 2 +- .../command_stream/command_stream_fixture.h | 4 +- .../command_stream/linear_stream_fixture.h | 4 +- unit_tests/context/context_get_info_tests.cpp | 4 +- unit_tests/event/user_events_tests_mt.cpp | 3 +- unit_tests/fixtures/buffer_fixture.cpp | 5 +- unit_tests/fixtures/context_fixture.h | 4 +- unit_tests/fixtures/device_fixture.cpp | 6 +-- .../fixtures/device_host_queue_fixture.cpp | 4 +- .../fixtures/device_host_queue_fixture.h | 4 +- unit_tests/fixtures/hello_world_fixture.h | 12 ++--- unit_tests/fixtures/kernel_arg_fixture.h | 2 +- unit_tests/fixtures/media_kernel_fixture.h | 6 +-- unit_tests/fixtures/platform_fixture.cpp | 4 +- unit_tests/fixtures/platform_fixture.h | 4 +- unit_tests/fixtures/preemption_fixture.h | 2 +- unit_tests/fixtures/program_fixture.cpp | 2 +- unit_tests/fixtures/program_fixture.inl | 2 +- unit_tests/fixtures/simple_arg_fixture.h | 4 +- unit_tests/fixtures/two_walker_fixture.h | 6 +-- unit_tests/helpers/base_object_tests_mt.cpp | 2 +- .../helpers/dispatch_info_builder_tests.cpp | 2 +- unit_tests/helpers/memory_management.cpp | 4 +- unit_tests/helpers/memory_management.h | 4 +- .../helpers/memory_management_tests.cpp | 10 ++-- .../indirect_heap/indirect_heap_fixture.cpp | 4 +- .../indirect_heap/indirect_heap_fixture.h | 4 +- unit_tests/libult/create_command_stream.cpp | 2 +- unit_tests/libult/create_command_stream.h | 2 +- .../mem_obj/get_mem_object_info_tests.cpp | 4 +- unit_tests/mem_obj/image_redescribe_tests.cpp | 17 +++--- unit_tests/mock_gmm/mock_gmm.cpp | 2 +- unit_tests/mocks/mock_32bitAllocator.h | 4 +- unit_tests/mocks/mock_cif.cpp | 6 +-- unit_tests/mocks/mock_cif.h | 4 +- unit_tests/mocks/mock_csr.h | 2 +- unit_tests/mocks/mock_d3d_objects.h | 4 +- unit_tests/mocks/mock_deferrable_deletion.cpp | 4 +- unit_tests/mocks/mock_deferrable_deletion.h | 4 +- unit_tests/mocks/mock_device_factory.h | 4 +- unit_tests/mocks/mock_event.h | 4 +- unit_tests/mocks/mock_image.h | 2 +- unit_tests/mocks/mock_ostime.h | 4 +- unit_tests/mocks/mock_ostime_win.h | 2 +- .../reference_tracked_object_tests_mt.cpp | 4 +- .../offline_compiler_tests.cpp | 2 + .../os_interface/linux/debug_env_reader.cpp | 4 +- unit_tests/os_interface/linux/drm_mock.h | 12 ++--- unit_tests/os_interface/linux/options.cpp | 4 +- unit_tests/os_interface/os_library_tests.cpp | 2 +- .../performance_counters_gen_tests.cpp | 22 ++++---- .../windows/mock_kmdaf_listener.h | 2 +- unit_tests/os_interface/windows/options.cpp | 2 +- unit_tests/perf_tests/api/api_tests.cpp | 4 +- unit_tests/perf_tests/api/api_tests.h | 4 +- unit_tests/perf_tests/api/context_tests.cpp | 2 +- .../fixtures/command_queue_fixture.cpp | 4 +- .../fixtures/command_queue_fixture.h | 2 +- .../perf_tests/fixtures/device_fixture.h | 4 +- .../perf_tests/fixtures/platform_fixture.cpp | 4 +- .../perf_tests/fixtures/platform_fixture.h | 4 +- unit_tests/perf_tests/options.cpp | 4 +- unit_tests/sharings/va/mock_va_sharing.cpp | 4 +- unit_tests/sharings/va/mock_va_sharing.h | 2 +- unit_tests/ult_configuration.cpp | 2 +- .../reference_tracked_object_tests.cpp | 2 +- 255 files changed, 564 insertions(+), 568 deletions(-) diff --git a/elf/reader.cpp b/elf/reader.cpp index db9b37c68b..693cd1d4de 100644 --- a/elf/reader.cpp +++ b/elf/reader.cpp @@ -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"), @@ -251,4 +251,4 @@ const char *CElfReader::getSectionName( return pName; } -} // namespace OclElfLib +} // namespace CLElfLib diff --git a/elf/types.h b/elf/types.h index de1ca92ed3..1ad4ea546e 100644 --- a/elf/types.h +++ b/elf/types.h @@ -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"), @@ -198,4 +198,4 @@ struct SElf64SectionHeader { Elf64_Xword EntrySize; }; -} // namespace ELFlib +} // namespace CLElfLib diff --git a/elf/writer.cpp b/elf/writer.cpp index e5aa25b508..17afb30f11 100644 --- a/elf/writer.cpp +++ b/elf/writer.cpp @@ -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"), @@ -201,7 +201,7 @@ bool CElfWriter::resolveBinary( memcpy_s(pCurString, pNode->Name.size(), pNode->Name.c_str(), pNode->Name.size()); pCurString += pNode->Name.size(); } - *(pCurString++) = '\0'; + *(pCurString++) = '\0'; // NOLINT // delete the node and it's data if (pNode->pData) { @@ -282,4 +282,4 @@ bool CElfWriter::patchElfHeader(char *const pBinary) { return false; } -} // namespace OclElfLib +} // namespace CLElfLib diff --git a/elf/writer.h b/elf/writer.h index 7161730f5d..7907c8c329 100644 --- a/elf/writer.h +++ b/elf/writer.h @@ -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"), @@ -102,4 +102,4 @@ class CElfWriter { size_t m_stringTableSize = 0U; size_t m_totalBinarySize = 0U; }; -} // namespace ELFLib +} // namespace CLElfLib diff --git a/manifests/manifest.yml b/manifests/manifest.yml index f1e88402d6..2637ee169e 100644 --- a/manifests/manifest.yml +++ b/manifests/manifest.yml @@ -17,7 +17,7 @@ components: branch: infra clean_on_sync: true dest_dir: infra - revision: 3579cc63a0d9ec2666c7ed58d2b624ff0f4692f3 + revision: 8abea2b4f36cb427643575a3127ea3c9c8c157d5 type: git internal: branch: master diff --git a/runtime/accelerators/intel_accelerator.cpp b/runtime/accelerators/intel_accelerator.cpp index 017037b894..8c3d8f8153 100644 --- a/runtime/accelerators/intel_accelerator.cpp +++ b/runtime/accelerators/intel_accelerator.cpp @@ -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"), @@ -78,4 +78,4 @@ cl_int IntelAccelerator::getInfo(cl_accelerator_info_intel paramName, return result; } -} +} // namespace OCLRT diff --git a/runtime/accelerators/intel_motion_estimation.cpp b/runtime/accelerators/intel_motion_estimation.cpp index f21998b7de..9ebd19ac58 100644 --- a/runtime/accelerators/intel_motion_estimation.cpp +++ b/runtime/accelerators/intel_motion_estimation.cpp @@ -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"), @@ -76,4 +76,4 @@ cl_int VmeAccelerator::validateVmeArgs(Context *context, return CL_SUCCESS; } -} +} // namespace OCLRT diff --git a/runtime/accelerators/intel_motion_estimation.h b/runtime/accelerators/intel_motion_estimation.h index 734dc5cd17..24197464c4 100644 --- a/runtime/accelerators/intel_motion_estimation.h +++ b/runtime/accelerators/intel_motion_estimation.h @@ -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"), @@ -69,4 +69,4 @@ class VmeAccelerator : public IntelAccelerator { size_t descriptorSize, const void *descriptor); }; -} +} // namespace OCLRT diff --git a/runtime/aub_mem_dump/aub_mem_dump.cpp b/runtime/aub_mem_dump/aub_mem_dump.cpp index dd70a1a89c..e6882abe09 100644 --- a/runtime/aub_mem_dump/aub_mem_dump.cpp +++ b/runtime/aub_mem_dump/aub_mem_dump.cpp @@ -186,4 +186,4 @@ void LrcaHelper::initialize(void *pLRCIn) const { setPDP2(pLRCIn, 0); setPDP3(pLRCIn, 0); } -} +} // namespace AubMemDump diff --git a/runtime/built_ins/vme_dispatch_builder.h b/runtime/built_ins/vme_dispatch_builder.h index 2b58b5a8ac..efb950ee0b 100644 --- a/runtime/built_ins/vme_dispatch_builder.h +++ b/runtime/built_ins/vme_dispatch_builder.h @@ -490,4 +490,4 @@ class BuiltInOpbytesPerChannel; colorSrc += 4; } - return *(uint4 *)temp; + return *(uint4 *)temp; // NOLINT } uchar convert_uchar_sat(uint c) { diff --git a/runtime/builtin_kernels_simulation/opencl_c.h b/runtime/builtin_kernels_simulation/opencl_c.h index 63060c7fe1..78bc603c28 100644 --- a/runtime/builtin_kernels_simulation/opencl_c.h +++ b/runtime/builtin_kernels_simulation/opencl_c.h @@ -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"), @@ -301,4 +301,4 @@ TYPE atomic_min(TYPE *first, TYPE2 second) { gMutex.unlock(); return temp; } -} +} // namespace BuiltinKernelsSimulation diff --git a/runtime/command_queue/enqueue_barrier.h b/runtime/command_queue/enqueue_barrier.h index 2e373cdbd9..4cd255c4a6 100644 --- a/runtime/command_queue/enqueue_barrier.h +++ b/runtime/command_queue/enqueue_barrier.h @@ -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"), @@ -52,4 +52,4 @@ cl_int CommandQueueHw::enqueueBarrierWithWaitList( return CL_SUCCESS; } -} +} // namespace OCLRT diff --git a/runtime/command_queue/enqueue_copy_buffer.h b/runtime/command_queue/enqueue_copy_buffer.h index 348d2d6b2e..f83d565af6 100644 --- a/runtime/command_queue/enqueue_copy_buffer.h +++ b/runtime/command_queue/enqueue_copy_buffer.h @@ -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"), @@ -74,4 +74,4 @@ cl_int CommandQueueHw::enqueueCopyBuffer( return CL_SUCCESS; } -} +} // namespace OCLRT diff --git a/runtime/command_queue/enqueue_fill_buffer.h b/runtime/command_queue/enqueue_fill_buffer.h index 1b13b461a7..c314bc7a87 100644 --- a/runtime/command_queue/enqueue_fill_buffer.h +++ b/runtime/command_queue/enqueue_fill_buffer.h @@ -93,4 +93,4 @@ cl_int CommandQueueHw::enqueueFillBuffer( return CL_SUCCESS; } -} +} // namespace OCLRT diff --git a/runtime/command_queue/enqueue_svm.h b/runtime/command_queue/enqueue_svm.h index 1a71b026c9..1413262b61 100644 --- a/runtime/command_queue/enqueue_svm.h +++ b/runtime/command_queue/enqueue_svm.h @@ -319,4 +319,4 @@ cl_int CommandQueueHw::enqueueSVMMigrateMem(cl_uint numSvmPointers, event); return CL_SUCCESS; } -} +} // namespace OCLRT diff --git a/runtime/command_queue/local_id_gen.h b/runtime/command_queue/local_id_gen.h index 28836e6026..2884bd0834 100644 --- a/runtime/command_queue/local_id_gen.h +++ b/runtime/command_queue/local_id_gen.h @@ -76,4 +76,4 @@ template void generateLocalIDsSimd(void *b, size_t lwsX, size_t lwsY, size_t threadsPerWorkGroup); void generateLocalIDs(void *buffer, uint32_t simd, size_t lwsX, size_t lwsY, size_t lwsZ); -} \ No newline at end of file +} // namespace OCLRT \ No newline at end of file diff --git a/runtime/command_queue/local_id_gen.inl b/runtime/command_queue/local_id_gen.inl index 390d660c3d..ba35aaf261 100644 --- a/runtime/command_queue/local_id_gen.inl +++ b/runtime/command_queue/local_id_gen.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"), @@ -157,4 +157,4 @@ inline void generateLocalIDsSimd(void *b, size_t lwsX, size_t lwsY, size_t threa } while (++pass < passes); } -} +} // namespace OCLRT diff --git a/runtime/command_queue/local_id_gen_avx2.cpp b/runtime/command_queue/local_id_gen_avx2.cpp index ee0ec6c5de..c0b262b66c 100644 --- a/runtime/command_queue/local_id_gen_avx2.cpp +++ b/runtime/command_queue/local_id_gen_avx2.cpp @@ -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,5 +27,5 @@ namespace OCLRT { template void generateLocalIDsSimd(void *b, size_t lwsX, size_t lwsY, size_t threadsPerWorkGroup); template void generateLocalIDsSimd(void *b, size_t lwsX, size_t lwsY, size_t threadsPerWorkGroup); -} +} // namespace OCLRT #endif \ No newline at end of file diff --git a/runtime/command_queue/local_id_gen_sse4.cpp b/runtime/command_queue/local_id_gen_sse4.cpp index 6f4d2ddecc..56c1e6bdb2 100644 --- a/runtime/command_queue/local_id_gen_sse4.cpp +++ b/runtime/command_queue/local_id_gen_sse4.cpp @@ -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,4 +27,4 @@ namespace OCLRT { template void generateLocalIDsSimd(void *b, size_t lwsX, size_t lwsY, size_t threadsPerWorkGroup); template void generateLocalIDsSimd(void *b, size_t lwsX, size_t lwsY, size_t threadsPerWorkGroup); template void generateLocalIDsSimd(void *b, size_t lwsX, size_t lwsY, size_t threadsPerWorkGroup); -} +} // namespace OCLRT diff --git a/runtime/command_stream/aub_command_stream_receiver.h b/runtime/command_stream/aub_command_stream_receiver.h index dd07367328..326e903033 100644 --- a/runtime/command_stream/aub_command_stream_receiver.h +++ b/runtime/command_stream/aub_command_stream_receiver.h @@ -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"), @@ -35,4 +35,4 @@ struct AUBCommandStreamReceiver { }; typedef CommandStreamReceiver *(*AubCommandStreamReceiverCreateFunc)(const HardwareInfo &hwInfoIn, const std::string &fileName, bool standalone); -} +} // namespace OCLRT diff --git a/runtime/command_stream/create_command_stream_impl.h b/runtime/command_stream/create_command_stream_impl.h index 117c391efc..508724048d 100644 --- a/runtime/command_stream/create_command_stream_impl.h +++ b/runtime/command_stream/create_command_stream_impl.h @@ -27,4 +27,4 @@ namespace OCLRT { extern CommandStreamReceiver *createCommandStreamImpl(const HardwareInfo *pHwInfo); extern bool getDevicesImpl(HardwareInfo **hwInfo, size_t &numDevicesReturned); -} +} // namespace OCLRT diff --git a/runtime/command_stream/device_command_stream.h b/runtime/command_stream/device_command_stream.h index 26b4e2daf1..ce94d41aea 100644 --- a/runtime/command_stream/device_command_stream.h +++ b/runtime/command_stream/device_command_stream.h @@ -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"), @@ -38,4 +38,4 @@ class DeviceCommandStreamReceiver : public CommandStreamReceiverHw { public: static CommandStreamReceiver *create(const HardwareInfo &hwInfo, bool withAubDump); }; -} +} // namespace OCLRT diff --git a/runtime/command_stream/linear_stream.cpp b/runtime/command_stream/linear_stream.cpp index 9431737501..d92ae87fce 100644 --- a/runtime/command_stream/linear_stream.cpp +++ b/runtime/command_stream/linear_stream.cpp @@ -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"), @@ -43,4 +43,4 @@ LinearStream::LinearStream(GraphicsAllocation *gfxAllocation) LinearStream::LinearStream() : LinearStream(nullptr) { } -} +} // namespace OCLRT diff --git a/runtime/command_stream/tbx_command_stream_receiver.cpp b/runtime/command_stream/tbx_command_stream_receiver.cpp index 09c38d67ad..b8ff6f0c67 100644 --- a/runtime/command_stream/tbx_command_stream_receiver.cpp +++ b/runtime/command_stream/tbx_command_stream_receiver.cpp @@ -40,4 +40,4 @@ CommandStreamReceiver *TbxCommandStreamReceiver::create(const HardwareInfo &hwIn return pCreate ? pCreate(hwInfo, withAubDump) : nullptr; } -} +} // namespace OCLRT diff --git a/runtime/compiler_interface/binary_cache.cpp b/runtime/compiler_interface/binary_cache.cpp index e49126b656..fe29ee2e7e 100644 --- a/runtime/compiler_interface/binary_cache.cpp +++ b/runtime/compiler_interface/binary_cache.cpp @@ -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"), @@ -110,4 +110,4 @@ bool BinaryCache::loadCachedBinary(const std::string kernelFileHash, Program &pr return true; } -} // namesapce OCLRT +} // namespace OCLRT diff --git a/runtime/compiler_interface/binary_cache.h b/runtime/compiler_interface/binary_cache.h index 196b542cc6..dd246d7442 100644 --- a/runtime/compiler_interface/binary_cache.h +++ b/runtime/compiler_interface/binary_cache.h @@ -46,4 +46,4 @@ class BinaryCache { static std::mutex cacheAccessMtx; }; -} // namesapce OCLRT +} // namespace OCLRT diff --git a/runtime/compiler_interface/compiler_interface.inl b/runtime/compiler_interface/compiler_interface.inl index 8c9dbeaf04..e959108ec7 100644 --- a/runtime/compiler_interface/compiler_interface.inl +++ b/runtime/compiler_interface/compiler_interface.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"), @@ -54,7 +54,7 @@ CIF::CIFMain *createMainNoSanitize(CIF::CreateCIFMainFunc_t createFunc); template