From 7e58c82696b31d72086561d870ad0439e7df409b Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Tue, 9 Nov 2021 16:19:54 -0600 Subject: [PATCH 1/5] Rename dpctl-capi to libsyclinterface. --- {dpctl-capi => libsyclinterface}/.gitignore | 0 {dpctl-capi => libsyclinterface}/CMakeLists.txt | 0 .../cmake/modules/FindIntelSycl.cmake | 0 .../cmake/modules/FindLLVMCov.cmake | 0 .../cmake/modules/FindLLVMProfdata.cmake | 0 .../cmake/modules/FindLcov.cmake | 0 .../cmake/modules/GetLevelZeroHeaders.cmake | 0 .../cmake/modules/GetProjectVersion.cmake | 0 {dpctl-capi => libsyclinterface}/dbg_build.bat | 0 {dpctl-capi => libsyclinterface}/dbg_build.sh | 0 .../dbg_build_custom.sh | 0 .../helper/include/dpctl_async_error_handler.h | 0 .../helper/include/dpctl_dynamic_lib_helper.h | 0 .../helper/include/dpctl_string_utils.hpp | 0 .../helper/include/dpctl_utils_helper.h | 0 .../helper/include/dpctl_vector_macros.h | 0 .../helper/source/dpctl_async_error_handler.cpp | 0 .../helper/source/dpctl_utils_helper.cpp | 0 .../include/Config/.gitignore | 0 .../include/Config/dpctl_config.h.in | 0 .../include/Support/CBindingWrapping.h | 0 .../include/Support/DllExport.h | 0 .../include/Support/ExternC.h | 0 .../include/Support/MemOwnershipAttrs.h | 0 .../include/dpctl_data_types.h | 0 .../include/dpctl_error_handler_type.h | 0 .../include/dpctl_service.h | 0 .../include/dpctl_sycl_context_interface.h | 0 .../include/dpctl_sycl_device_interface.h | 0 .../include/dpctl_sycl_device_manager.h | 0 .../include/dpctl_sycl_device_selector_interface.h | 0 .../include/dpctl_sycl_enum_types.h | 0 .../include/dpctl_sycl_event_interface.h | 0 .../include/dpctl_sycl_kernel_interface.h | 0 .../include/dpctl_sycl_platform_interface.h | 0 .../include/dpctl_sycl_platform_manager.h | 0 .../include/dpctl_sycl_program_interface.h | 0 .../include/dpctl_sycl_queue_interface.h | 0 .../include/dpctl_sycl_queue_manager.h | 0 .../include/dpctl_sycl_types.h | 0 .../include/dpctl_sycl_usm_interface.h | 0 .../include/dpctl_utils.h | 0 .../include/dpctl_vector.h | 0 .../source/dpctl_service.cpp | 0 .../source/dpctl_sycl_context_interface.cpp | 0 .../source/dpctl_sycl_device_interface.cpp | 0 .../source/dpctl_sycl_device_manager.cpp | 0 .../source/dpctl_sycl_device_selector_interface.cpp | 0 .../source/dpctl_sycl_event_interface.cpp | 0 .../source/dpctl_sycl_kernel_interface.cpp | 0 .../source/dpctl_sycl_platform_interface.cpp | 0 .../source/dpctl_sycl_platform_manager.cpp | 0 .../source/dpctl_sycl_program_interface.cpp | 0 .../source/dpctl_sycl_queue_interface.cpp | 0 .../source/dpctl_sycl_queue_manager.cpp | 0 .../source/dpctl_sycl_usm_interface.cpp | 0 .../source/dpctl_utils.cpp | 0 .../source/dpctl_vector_templ.cpp | 0 .../tests/CMakeLists.txt | 0 .../tests/dpcpp_kernels.cpp | 0 .../tests/dpcpp_kernels.hpp | 0 .../tests/multi_kernel.spv | Bin .../tests/test_main.cpp | 0 .../tests/test_service.cpp | 0 .../tests/test_sycl_context_interface.cpp | 0 .../tests/test_sycl_device_aspects.cpp | 0 .../tests/test_sycl_device_interface.cpp | 0 .../tests/test_sycl_device_invalid_filters.cpp | 0 .../tests/test_sycl_device_manager.cpp | 0 .../tests/test_sycl_device_selector_interface.cpp | 0 .../tests/test_sycl_device_subdevices.cpp | 0 .../tests/test_sycl_event_interface.cpp | 0 .../tests/test_sycl_kernel_interface.cpp | 0 .../tests/test_sycl_platform_interface.cpp | 0 .../tests/test_sycl_platform_invalid_filters.cpp | 0 .../tests/test_sycl_program_interface.cpp | 0 .../tests/test_sycl_queue_interface.cpp | 0 .../tests/test_sycl_queue_manager.cpp | 0 .../tests/test_sycl_queue_submit.cpp | 0 .../tests/test_sycl_usm_interface.cpp | 0 scripts/build_backend.py | 4 ++-- 81 files changed, 2 insertions(+), 2 deletions(-) rename {dpctl-capi => libsyclinterface}/.gitignore (100%) rename {dpctl-capi => libsyclinterface}/CMakeLists.txt (100%) rename {dpctl-capi => libsyclinterface}/cmake/modules/FindIntelSycl.cmake (100%) rename {dpctl-capi => libsyclinterface}/cmake/modules/FindLLVMCov.cmake (100%) rename {dpctl-capi => libsyclinterface}/cmake/modules/FindLLVMProfdata.cmake (100%) rename {dpctl-capi => libsyclinterface}/cmake/modules/FindLcov.cmake (100%) rename {dpctl-capi => libsyclinterface}/cmake/modules/GetLevelZeroHeaders.cmake (100%) rename {dpctl-capi => libsyclinterface}/cmake/modules/GetProjectVersion.cmake (100%) rename {dpctl-capi => libsyclinterface}/dbg_build.bat (100%) rename {dpctl-capi => libsyclinterface}/dbg_build.sh (100%) rename {dpctl-capi => libsyclinterface}/dbg_build_custom.sh (100%) rename {dpctl-capi => libsyclinterface}/helper/include/dpctl_async_error_handler.h (100%) rename {dpctl-capi => libsyclinterface}/helper/include/dpctl_dynamic_lib_helper.h (100%) rename {dpctl-capi => libsyclinterface}/helper/include/dpctl_string_utils.hpp (100%) rename {dpctl-capi => libsyclinterface}/helper/include/dpctl_utils_helper.h (100%) rename {dpctl-capi => libsyclinterface}/helper/include/dpctl_vector_macros.h (100%) rename {dpctl-capi => libsyclinterface}/helper/source/dpctl_async_error_handler.cpp (100%) rename {dpctl-capi => libsyclinterface}/helper/source/dpctl_utils_helper.cpp (100%) rename {dpctl-capi => libsyclinterface}/include/Config/.gitignore (100%) rename {dpctl-capi => libsyclinterface}/include/Config/dpctl_config.h.in (100%) rename {dpctl-capi => libsyclinterface}/include/Support/CBindingWrapping.h (100%) rename {dpctl-capi => libsyclinterface}/include/Support/DllExport.h (100%) rename {dpctl-capi => libsyclinterface}/include/Support/ExternC.h (100%) rename {dpctl-capi => libsyclinterface}/include/Support/MemOwnershipAttrs.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_data_types.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_error_handler_type.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_service.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_context_interface.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_device_interface.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_device_manager.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_device_selector_interface.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_enum_types.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_event_interface.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_kernel_interface.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_platform_interface.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_platform_manager.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_program_interface.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_queue_interface.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_queue_manager.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_types.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_sycl_usm_interface.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_utils.h (100%) rename {dpctl-capi => libsyclinterface}/include/dpctl_vector.h (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_service.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_sycl_context_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_sycl_device_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_sycl_device_manager.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_sycl_device_selector_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_sycl_event_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_sycl_kernel_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_sycl_platform_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_sycl_platform_manager.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_sycl_program_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_sycl_queue_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_sycl_queue_manager.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_sycl_usm_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_utils.cpp (100%) rename {dpctl-capi => libsyclinterface}/source/dpctl_vector_templ.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/CMakeLists.txt (100%) rename {dpctl-capi => libsyclinterface}/tests/dpcpp_kernels.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/dpcpp_kernels.hpp (100%) rename {dpctl-capi => libsyclinterface}/tests/multi_kernel.spv (100%) rename {dpctl-capi => libsyclinterface}/tests/test_main.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_service.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_context_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_device_aspects.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_device_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_device_invalid_filters.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_device_manager.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_device_selector_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_device_subdevices.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_event_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_kernel_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_platform_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_platform_invalid_filters.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_program_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_queue_interface.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_queue_manager.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_queue_submit.cpp (100%) rename {dpctl-capi => libsyclinterface}/tests/test_sycl_usm_interface.cpp (100%) diff --git a/dpctl-capi/.gitignore b/libsyclinterface/.gitignore similarity index 100% rename from dpctl-capi/.gitignore rename to libsyclinterface/.gitignore diff --git a/dpctl-capi/CMakeLists.txt b/libsyclinterface/CMakeLists.txt similarity index 100% rename from dpctl-capi/CMakeLists.txt rename to libsyclinterface/CMakeLists.txt diff --git a/dpctl-capi/cmake/modules/FindIntelSycl.cmake b/libsyclinterface/cmake/modules/FindIntelSycl.cmake similarity index 100% rename from dpctl-capi/cmake/modules/FindIntelSycl.cmake rename to libsyclinterface/cmake/modules/FindIntelSycl.cmake diff --git a/dpctl-capi/cmake/modules/FindLLVMCov.cmake b/libsyclinterface/cmake/modules/FindLLVMCov.cmake similarity index 100% rename from dpctl-capi/cmake/modules/FindLLVMCov.cmake rename to libsyclinterface/cmake/modules/FindLLVMCov.cmake diff --git a/dpctl-capi/cmake/modules/FindLLVMProfdata.cmake b/libsyclinterface/cmake/modules/FindLLVMProfdata.cmake similarity index 100% rename from dpctl-capi/cmake/modules/FindLLVMProfdata.cmake rename to libsyclinterface/cmake/modules/FindLLVMProfdata.cmake diff --git a/dpctl-capi/cmake/modules/FindLcov.cmake b/libsyclinterface/cmake/modules/FindLcov.cmake similarity index 100% rename from dpctl-capi/cmake/modules/FindLcov.cmake rename to libsyclinterface/cmake/modules/FindLcov.cmake diff --git a/dpctl-capi/cmake/modules/GetLevelZeroHeaders.cmake b/libsyclinterface/cmake/modules/GetLevelZeroHeaders.cmake similarity index 100% rename from dpctl-capi/cmake/modules/GetLevelZeroHeaders.cmake rename to libsyclinterface/cmake/modules/GetLevelZeroHeaders.cmake diff --git a/dpctl-capi/cmake/modules/GetProjectVersion.cmake b/libsyclinterface/cmake/modules/GetProjectVersion.cmake similarity index 100% rename from dpctl-capi/cmake/modules/GetProjectVersion.cmake rename to libsyclinterface/cmake/modules/GetProjectVersion.cmake diff --git a/dpctl-capi/dbg_build.bat b/libsyclinterface/dbg_build.bat similarity index 100% rename from dpctl-capi/dbg_build.bat rename to libsyclinterface/dbg_build.bat diff --git a/dpctl-capi/dbg_build.sh b/libsyclinterface/dbg_build.sh similarity index 100% rename from dpctl-capi/dbg_build.sh rename to libsyclinterface/dbg_build.sh diff --git a/dpctl-capi/dbg_build_custom.sh b/libsyclinterface/dbg_build_custom.sh similarity index 100% rename from dpctl-capi/dbg_build_custom.sh rename to libsyclinterface/dbg_build_custom.sh diff --git a/dpctl-capi/helper/include/dpctl_async_error_handler.h b/libsyclinterface/helper/include/dpctl_async_error_handler.h similarity index 100% rename from dpctl-capi/helper/include/dpctl_async_error_handler.h rename to libsyclinterface/helper/include/dpctl_async_error_handler.h diff --git a/dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h b/libsyclinterface/helper/include/dpctl_dynamic_lib_helper.h similarity index 100% rename from dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h rename to libsyclinterface/helper/include/dpctl_dynamic_lib_helper.h diff --git a/dpctl-capi/helper/include/dpctl_string_utils.hpp b/libsyclinterface/helper/include/dpctl_string_utils.hpp similarity index 100% rename from dpctl-capi/helper/include/dpctl_string_utils.hpp rename to libsyclinterface/helper/include/dpctl_string_utils.hpp diff --git a/dpctl-capi/helper/include/dpctl_utils_helper.h b/libsyclinterface/helper/include/dpctl_utils_helper.h similarity index 100% rename from dpctl-capi/helper/include/dpctl_utils_helper.h rename to libsyclinterface/helper/include/dpctl_utils_helper.h diff --git a/dpctl-capi/helper/include/dpctl_vector_macros.h b/libsyclinterface/helper/include/dpctl_vector_macros.h similarity index 100% rename from dpctl-capi/helper/include/dpctl_vector_macros.h rename to libsyclinterface/helper/include/dpctl_vector_macros.h diff --git a/dpctl-capi/helper/source/dpctl_async_error_handler.cpp b/libsyclinterface/helper/source/dpctl_async_error_handler.cpp similarity index 100% rename from dpctl-capi/helper/source/dpctl_async_error_handler.cpp rename to libsyclinterface/helper/source/dpctl_async_error_handler.cpp diff --git a/dpctl-capi/helper/source/dpctl_utils_helper.cpp b/libsyclinterface/helper/source/dpctl_utils_helper.cpp similarity index 100% rename from dpctl-capi/helper/source/dpctl_utils_helper.cpp rename to libsyclinterface/helper/source/dpctl_utils_helper.cpp diff --git a/dpctl-capi/include/Config/.gitignore b/libsyclinterface/include/Config/.gitignore similarity index 100% rename from dpctl-capi/include/Config/.gitignore rename to libsyclinterface/include/Config/.gitignore diff --git a/dpctl-capi/include/Config/dpctl_config.h.in b/libsyclinterface/include/Config/dpctl_config.h.in similarity index 100% rename from dpctl-capi/include/Config/dpctl_config.h.in rename to libsyclinterface/include/Config/dpctl_config.h.in diff --git a/dpctl-capi/include/Support/CBindingWrapping.h b/libsyclinterface/include/Support/CBindingWrapping.h similarity index 100% rename from dpctl-capi/include/Support/CBindingWrapping.h rename to libsyclinterface/include/Support/CBindingWrapping.h diff --git a/dpctl-capi/include/Support/DllExport.h b/libsyclinterface/include/Support/DllExport.h similarity index 100% rename from dpctl-capi/include/Support/DllExport.h rename to libsyclinterface/include/Support/DllExport.h diff --git a/dpctl-capi/include/Support/ExternC.h b/libsyclinterface/include/Support/ExternC.h similarity index 100% rename from dpctl-capi/include/Support/ExternC.h rename to libsyclinterface/include/Support/ExternC.h diff --git a/dpctl-capi/include/Support/MemOwnershipAttrs.h b/libsyclinterface/include/Support/MemOwnershipAttrs.h similarity index 100% rename from dpctl-capi/include/Support/MemOwnershipAttrs.h rename to libsyclinterface/include/Support/MemOwnershipAttrs.h diff --git a/dpctl-capi/include/dpctl_data_types.h b/libsyclinterface/include/dpctl_data_types.h similarity index 100% rename from dpctl-capi/include/dpctl_data_types.h rename to libsyclinterface/include/dpctl_data_types.h diff --git a/dpctl-capi/include/dpctl_error_handler_type.h b/libsyclinterface/include/dpctl_error_handler_type.h similarity index 100% rename from dpctl-capi/include/dpctl_error_handler_type.h rename to libsyclinterface/include/dpctl_error_handler_type.h diff --git a/dpctl-capi/include/dpctl_service.h b/libsyclinterface/include/dpctl_service.h similarity index 100% rename from dpctl-capi/include/dpctl_service.h rename to libsyclinterface/include/dpctl_service.h diff --git a/dpctl-capi/include/dpctl_sycl_context_interface.h b/libsyclinterface/include/dpctl_sycl_context_interface.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_context_interface.h rename to libsyclinterface/include/dpctl_sycl_context_interface.h diff --git a/dpctl-capi/include/dpctl_sycl_device_interface.h b/libsyclinterface/include/dpctl_sycl_device_interface.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_device_interface.h rename to libsyclinterface/include/dpctl_sycl_device_interface.h diff --git a/dpctl-capi/include/dpctl_sycl_device_manager.h b/libsyclinterface/include/dpctl_sycl_device_manager.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_device_manager.h rename to libsyclinterface/include/dpctl_sycl_device_manager.h diff --git a/dpctl-capi/include/dpctl_sycl_device_selector_interface.h b/libsyclinterface/include/dpctl_sycl_device_selector_interface.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_device_selector_interface.h rename to libsyclinterface/include/dpctl_sycl_device_selector_interface.h diff --git a/dpctl-capi/include/dpctl_sycl_enum_types.h b/libsyclinterface/include/dpctl_sycl_enum_types.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_enum_types.h rename to libsyclinterface/include/dpctl_sycl_enum_types.h diff --git a/dpctl-capi/include/dpctl_sycl_event_interface.h b/libsyclinterface/include/dpctl_sycl_event_interface.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_event_interface.h rename to libsyclinterface/include/dpctl_sycl_event_interface.h diff --git a/dpctl-capi/include/dpctl_sycl_kernel_interface.h b/libsyclinterface/include/dpctl_sycl_kernel_interface.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_kernel_interface.h rename to libsyclinterface/include/dpctl_sycl_kernel_interface.h diff --git a/dpctl-capi/include/dpctl_sycl_platform_interface.h b/libsyclinterface/include/dpctl_sycl_platform_interface.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_platform_interface.h rename to libsyclinterface/include/dpctl_sycl_platform_interface.h diff --git a/dpctl-capi/include/dpctl_sycl_platform_manager.h b/libsyclinterface/include/dpctl_sycl_platform_manager.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_platform_manager.h rename to libsyclinterface/include/dpctl_sycl_platform_manager.h diff --git a/dpctl-capi/include/dpctl_sycl_program_interface.h b/libsyclinterface/include/dpctl_sycl_program_interface.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_program_interface.h rename to libsyclinterface/include/dpctl_sycl_program_interface.h diff --git a/dpctl-capi/include/dpctl_sycl_queue_interface.h b/libsyclinterface/include/dpctl_sycl_queue_interface.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_queue_interface.h rename to libsyclinterface/include/dpctl_sycl_queue_interface.h diff --git a/dpctl-capi/include/dpctl_sycl_queue_manager.h b/libsyclinterface/include/dpctl_sycl_queue_manager.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_queue_manager.h rename to libsyclinterface/include/dpctl_sycl_queue_manager.h diff --git a/dpctl-capi/include/dpctl_sycl_types.h b/libsyclinterface/include/dpctl_sycl_types.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_types.h rename to libsyclinterface/include/dpctl_sycl_types.h diff --git a/dpctl-capi/include/dpctl_sycl_usm_interface.h b/libsyclinterface/include/dpctl_sycl_usm_interface.h similarity index 100% rename from dpctl-capi/include/dpctl_sycl_usm_interface.h rename to libsyclinterface/include/dpctl_sycl_usm_interface.h diff --git a/dpctl-capi/include/dpctl_utils.h b/libsyclinterface/include/dpctl_utils.h similarity index 100% rename from dpctl-capi/include/dpctl_utils.h rename to libsyclinterface/include/dpctl_utils.h diff --git a/dpctl-capi/include/dpctl_vector.h b/libsyclinterface/include/dpctl_vector.h similarity index 100% rename from dpctl-capi/include/dpctl_vector.h rename to libsyclinterface/include/dpctl_vector.h diff --git a/dpctl-capi/source/dpctl_service.cpp b/libsyclinterface/source/dpctl_service.cpp similarity index 100% rename from dpctl-capi/source/dpctl_service.cpp rename to libsyclinterface/source/dpctl_service.cpp diff --git a/dpctl-capi/source/dpctl_sycl_context_interface.cpp b/libsyclinterface/source/dpctl_sycl_context_interface.cpp similarity index 100% rename from dpctl-capi/source/dpctl_sycl_context_interface.cpp rename to libsyclinterface/source/dpctl_sycl_context_interface.cpp diff --git a/dpctl-capi/source/dpctl_sycl_device_interface.cpp b/libsyclinterface/source/dpctl_sycl_device_interface.cpp similarity index 100% rename from dpctl-capi/source/dpctl_sycl_device_interface.cpp rename to libsyclinterface/source/dpctl_sycl_device_interface.cpp diff --git a/dpctl-capi/source/dpctl_sycl_device_manager.cpp b/libsyclinterface/source/dpctl_sycl_device_manager.cpp similarity index 100% rename from dpctl-capi/source/dpctl_sycl_device_manager.cpp rename to libsyclinterface/source/dpctl_sycl_device_manager.cpp diff --git a/dpctl-capi/source/dpctl_sycl_device_selector_interface.cpp b/libsyclinterface/source/dpctl_sycl_device_selector_interface.cpp similarity index 100% rename from dpctl-capi/source/dpctl_sycl_device_selector_interface.cpp rename to libsyclinterface/source/dpctl_sycl_device_selector_interface.cpp diff --git a/dpctl-capi/source/dpctl_sycl_event_interface.cpp b/libsyclinterface/source/dpctl_sycl_event_interface.cpp similarity index 100% rename from dpctl-capi/source/dpctl_sycl_event_interface.cpp rename to libsyclinterface/source/dpctl_sycl_event_interface.cpp diff --git a/dpctl-capi/source/dpctl_sycl_kernel_interface.cpp b/libsyclinterface/source/dpctl_sycl_kernel_interface.cpp similarity index 100% rename from dpctl-capi/source/dpctl_sycl_kernel_interface.cpp rename to libsyclinterface/source/dpctl_sycl_kernel_interface.cpp diff --git a/dpctl-capi/source/dpctl_sycl_platform_interface.cpp b/libsyclinterface/source/dpctl_sycl_platform_interface.cpp similarity index 100% rename from dpctl-capi/source/dpctl_sycl_platform_interface.cpp rename to libsyclinterface/source/dpctl_sycl_platform_interface.cpp diff --git a/dpctl-capi/source/dpctl_sycl_platform_manager.cpp b/libsyclinterface/source/dpctl_sycl_platform_manager.cpp similarity index 100% rename from dpctl-capi/source/dpctl_sycl_platform_manager.cpp rename to libsyclinterface/source/dpctl_sycl_platform_manager.cpp diff --git a/dpctl-capi/source/dpctl_sycl_program_interface.cpp b/libsyclinterface/source/dpctl_sycl_program_interface.cpp similarity index 100% rename from dpctl-capi/source/dpctl_sycl_program_interface.cpp rename to libsyclinterface/source/dpctl_sycl_program_interface.cpp diff --git a/dpctl-capi/source/dpctl_sycl_queue_interface.cpp b/libsyclinterface/source/dpctl_sycl_queue_interface.cpp similarity index 100% rename from dpctl-capi/source/dpctl_sycl_queue_interface.cpp rename to libsyclinterface/source/dpctl_sycl_queue_interface.cpp diff --git a/dpctl-capi/source/dpctl_sycl_queue_manager.cpp b/libsyclinterface/source/dpctl_sycl_queue_manager.cpp similarity index 100% rename from dpctl-capi/source/dpctl_sycl_queue_manager.cpp rename to libsyclinterface/source/dpctl_sycl_queue_manager.cpp diff --git a/dpctl-capi/source/dpctl_sycl_usm_interface.cpp b/libsyclinterface/source/dpctl_sycl_usm_interface.cpp similarity index 100% rename from dpctl-capi/source/dpctl_sycl_usm_interface.cpp rename to libsyclinterface/source/dpctl_sycl_usm_interface.cpp diff --git a/dpctl-capi/source/dpctl_utils.cpp b/libsyclinterface/source/dpctl_utils.cpp similarity index 100% rename from dpctl-capi/source/dpctl_utils.cpp rename to libsyclinterface/source/dpctl_utils.cpp diff --git a/dpctl-capi/source/dpctl_vector_templ.cpp b/libsyclinterface/source/dpctl_vector_templ.cpp similarity index 100% rename from dpctl-capi/source/dpctl_vector_templ.cpp rename to libsyclinterface/source/dpctl_vector_templ.cpp diff --git a/dpctl-capi/tests/CMakeLists.txt b/libsyclinterface/tests/CMakeLists.txt similarity index 100% rename from dpctl-capi/tests/CMakeLists.txt rename to libsyclinterface/tests/CMakeLists.txt diff --git a/dpctl-capi/tests/dpcpp_kernels.cpp b/libsyclinterface/tests/dpcpp_kernels.cpp similarity index 100% rename from dpctl-capi/tests/dpcpp_kernels.cpp rename to libsyclinterface/tests/dpcpp_kernels.cpp diff --git a/dpctl-capi/tests/dpcpp_kernels.hpp b/libsyclinterface/tests/dpcpp_kernels.hpp similarity index 100% rename from dpctl-capi/tests/dpcpp_kernels.hpp rename to libsyclinterface/tests/dpcpp_kernels.hpp diff --git a/dpctl-capi/tests/multi_kernel.spv b/libsyclinterface/tests/multi_kernel.spv similarity index 100% rename from dpctl-capi/tests/multi_kernel.spv rename to libsyclinterface/tests/multi_kernel.spv diff --git a/dpctl-capi/tests/test_main.cpp b/libsyclinterface/tests/test_main.cpp similarity index 100% rename from dpctl-capi/tests/test_main.cpp rename to libsyclinterface/tests/test_main.cpp diff --git a/dpctl-capi/tests/test_service.cpp b/libsyclinterface/tests/test_service.cpp similarity index 100% rename from dpctl-capi/tests/test_service.cpp rename to libsyclinterface/tests/test_service.cpp diff --git a/dpctl-capi/tests/test_sycl_context_interface.cpp b/libsyclinterface/tests/test_sycl_context_interface.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_context_interface.cpp rename to libsyclinterface/tests/test_sycl_context_interface.cpp diff --git a/dpctl-capi/tests/test_sycl_device_aspects.cpp b/libsyclinterface/tests/test_sycl_device_aspects.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_device_aspects.cpp rename to libsyclinterface/tests/test_sycl_device_aspects.cpp diff --git a/dpctl-capi/tests/test_sycl_device_interface.cpp b/libsyclinterface/tests/test_sycl_device_interface.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_device_interface.cpp rename to libsyclinterface/tests/test_sycl_device_interface.cpp diff --git a/dpctl-capi/tests/test_sycl_device_invalid_filters.cpp b/libsyclinterface/tests/test_sycl_device_invalid_filters.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_device_invalid_filters.cpp rename to libsyclinterface/tests/test_sycl_device_invalid_filters.cpp diff --git a/dpctl-capi/tests/test_sycl_device_manager.cpp b/libsyclinterface/tests/test_sycl_device_manager.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_device_manager.cpp rename to libsyclinterface/tests/test_sycl_device_manager.cpp diff --git a/dpctl-capi/tests/test_sycl_device_selector_interface.cpp b/libsyclinterface/tests/test_sycl_device_selector_interface.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_device_selector_interface.cpp rename to libsyclinterface/tests/test_sycl_device_selector_interface.cpp diff --git a/dpctl-capi/tests/test_sycl_device_subdevices.cpp b/libsyclinterface/tests/test_sycl_device_subdevices.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_device_subdevices.cpp rename to libsyclinterface/tests/test_sycl_device_subdevices.cpp diff --git a/dpctl-capi/tests/test_sycl_event_interface.cpp b/libsyclinterface/tests/test_sycl_event_interface.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_event_interface.cpp rename to libsyclinterface/tests/test_sycl_event_interface.cpp diff --git a/dpctl-capi/tests/test_sycl_kernel_interface.cpp b/libsyclinterface/tests/test_sycl_kernel_interface.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_kernel_interface.cpp rename to libsyclinterface/tests/test_sycl_kernel_interface.cpp diff --git a/dpctl-capi/tests/test_sycl_platform_interface.cpp b/libsyclinterface/tests/test_sycl_platform_interface.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_platform_interface.cpp rename to libsyclinterface/tests/test_sycl_platform_interface.cpp diff --git a/dpctl-capi/tests/test_sycl_platform_invalid_filters.cpp b/libsyclinterface/tests/test_sycl_platform_invalid_filters.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_platform_invalid_filters.cpp rename to libsyclinterface/tests/test_sycl_platform_invalid_filters.cpp diff --git a/dpctl-capi/tests/test_sycl_program_interface.cpp b/libsyclinterface/tests/test_sycl_program_interface.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_program_interface.cpp rename to libsyclinterface/tests/test_sycl_program_interface.cpp diff --git a/dpctl-capi/tests/test_sycl_queue_interface.cpp b/libsyclinterface/tests/test_sycl_queue_interface.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_queue_interface.cpp rename to libsyclinterface/tests/test_sycl_queue_interface.cpp diff --git a/dpctl-capi/tests/test_sycl_queue_manager.cpp b/libsyclinterface/tests/test_sycl_queue_manager.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_queue_manager.cpp rename to libsyclinterface/tests/test_sycl_queue_manager.cpp diff --git a/dpctl-capi/tests/test_sycl_queue_submit.cpp b/libsyclinterface/tests/test_sycl_queue_submit.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_queue_submit.cpp rename to libsyclinterface/tests/test_sycl_queue_submit.cpp diff --git a/dpctl-capi/tests/test_sycl_usm_interface.cpp b/libsyclinterface/tests/test_sycl_usm_interface.cpp similarity index 100% rename from dpctl-capi/tests/test_sycl_usm_interface.cpp rename to libsyclinterface/tests/test_sycl_usm_interface.cpp diff --git a/scripts/build_backend.py b/scripts/build_backend.py index 6b705a4341..0ee4e8799a 100644 --- a/scripts/build_backend.py +++ b/scripts/build_backend.py @@ -76,7 +76,7 @@ def build_backend( if os.path.exists(INSTALL_PREFIX): shutil.rmtree(INSTALL_PREFIX) - backends = os.path.join(dpctl_dir, "dpctl-capi") + backends = os.path.join(dpctl_dir, "libsyclinterface") ENABLE_LO_PROGRAM_CREATION = "ON" if l0_support else "OFF" @@ -213,7 +213,7 @@ def build_backend( shutil.rmtree(include_dir) shutil.copytree( - os.path.join(dpctl_dir, "dpctl-capi", "include"), include_dir + os.path.join(dpctl_dir, "libsyclinterface", "include"), include_dir ) From f6c8a22a9f3b2e73684884ec4b676b158a913dcf Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Tue, 9 Nov 2021 16:22:13 -0600 Subject: [PATCH 2/5] Update CONTRIBUTING.md to use new name for dpctl-capi. --- CONTRIBUTING.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9cae87e86e..b1bf79975e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,12 +15,12 @@ Run before each commit: ```bash clang-format -style=file -i \ - dpctl-capi/include/*.h \ - dpctl-capi/include/Support/*.h \ - dpctl-capi/source/*.cpp \ - dpctl-capi/tests/*.cpp \ - dpctl-capi/helper/include/*.h \ - dpctl-capi/helper/source/*.cpp + libsyclinterface/include/*.h \ + libsyclinterface/include/Support/*.h \ + libsyclinterface/source/*.cpp \ + libsyclinterface/tests/*.cpp \ + libsyclinterface/helper/include/*.h \ + libsyclinterface/helper/source/*.cpp ``` > **_NOTE:_** A much simpler option is to use `pre-commit` and the From 11e7593200c151a38af847595a5197e695905adf Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Tue, 9 Nov 2021 16:22:41 -0600 Subject: [PATCH 3/5] Update folder name in cpp_style_checks workflow. --- .github/workflows/cpp_style_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cpp_style_checks.yml b/.github/workflows/cpp_style_checks.yml index b5a7def26f..89ba110ccf 100644 --- a/.github/workflows/cpp_style_checks.yml +++ b/.github/workflows/cpp_style_checks.yml @@ -19,4 +19,4 @@ jobs: uses: jidicula/clang-format-action@v3.1.0 with: clang-format-version: '11' - check-path: 'dpctl-capi' + check-path: 'libsyclinterface' From 1d4ac4116fd8a0042bb0e5112cd29b4a24e5fc43 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Tue, 9 Nov 2021 16:50:23 -0600 Subject: [PATCH 4/5] Update Changelog. --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f155ed5380..765fba02f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Next Release] TBD + +### Changed +- dpctl-capi is now renamed to `libsyclinterface` (#666). + ## [0.11.0] - 11/01/2021 ### Added From d453e7d471f55f28455b823fd99246141f50ece0 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Tue, 9 Nov 2021 17:40:29 -0600 Subject: [PATCH 5/5] Change to libsyclinterface in docs. --- docs/.gitignore | 2 +- docs/CMakeLists.txt | 4 ++-- docs/Doxyfile.in | 10 +++++----- docs/doxyrest-config.lua.in | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/.gitignore b/docs/.gitignore index c7b38c7ac8..27d532e775 100644 --- a/docs/.gitignore +++ b/docs/.gitignore @@ -1,6 +1,6 @@ docs generated_docs -docfiles/dpctl-capi +docfiles/libsyclinterface api build conf.py diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index bba66d788a..8e34d6b886 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -29,7 +29,7 @@ function(_setup_doxygen) if(DPCTL_ENABLE_DOXYGEN_HTML) set(GENERATE_HTML "YES") endif() - set(DOXYGEN_INPUT_DIR ../dpctl-capi/include) + set(DOXYGEN_INPUT_DIR ../libsyclinterface/include) set(DOXYGEN_OUTPUT_DIR ${DOC_OUTPUT_DIR}/doxygen) set(DOXYGEN_INDEX_FILE ${DOXYGEN_OUTPUT_DIR}/xml/index.xml) set(DOXYFILE_IN ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in) @@ -61,7 +61,7 @@ function(_setup_doxygen) endfunction() function(_setup_doxyrest) - set(DOXYREST_OUTPUT_DIR_NAME docfiles/dpctl-capi) + set(DOXYREST_OUTPUT_DIR_NAME docfiles/libsyclinterface) set(DOXYREST_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${DOXYREST_OUTPUT_DIR_NAME} PARENT_SCOPE diff --git a/docs/Doxyfile.in b/docs/Doxyfile.in index a1055b7256..934262a3e6 100644 --- a/docs/Doxyfile.in +++ b/docs/Doxyfile.in @@ -917,11 +917,11 @@ RECURSIVE = YES # Note that relative paths are relative to the directory from which doxygen is # run. -EXCLUDE = ../dpctl-capi/include/Support -EXCLUDE += ../dpctl-capi/include/Config -EXCLUDE += ../dpctl-capi/include/dpctl_vector.h -EXCLUDE += ../dpctl-capi/include/dpctl_data_types.h -EXCLUDE += ../dpctl-capi/include/dpctl_utils.h +EXCLUDE = ../libsyclinterface/include/Support +EXCLUDE += ../libsyclinterface/include/Config +EXCLUDE += ../libsyclinterface/include/dpctl_vector.h +EXCLUDE += ../libsyclinterface/include/dpctl_data_types.h +EXCLUDE += ../libsyclinterface/include/dpctl_utils.h # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded diff --git a/docs/doxyrest-config.lua.in b/docs/doxyrest-config.lua.in index 857260ddeb..42de9e7797 100644 --- a/docs/doxyrest-config.lua.in +++ b/docs/doxyrest-config.lua.in @@ -82,7 +82,7 @@ EXTRA_PAGE_LIST = {} --! is not set (otherwise, the title of intro file will be used). --! -INDEX_TITLE = "dpctl C API" +INDEX_TITLE = "libsyclinterface" --! --! File with project introduction (reStructuredText). When non-nil, this file