From a465ac76dfbbf85cffe0977b4fb118b0549ab98a Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Wed, 28 Oct 2020 15:13:49 -0500 Subject: [PATCH 01/15] Enable warning flags to CXX_FLAGS. --- backends/CMakeLists.txt | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/backends/CMakeLists.txt b/backends/CMakeLists.txt index a8d02185f2..1dc784016e 100644 --- a/backends/CMakeLists.txt +++ b/backends/CMakeLists.txt @@ -68,18 +68,20 @@ if(WIN32) message(STATUS "Resetting CXX compiler to: " ${CMAKE_CXX_COMPILER}) message(STATUS "Resetting C compiler to: " ${CMAKE_C_COMPILER}) message(STATUS "Resetting Linker to: " ${CMAKE_LINK}) - - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \ - -Wall -Wextra -Winit-self -Wuninitialized -Wmissing-declarations \ - -fdiagnostics-color=auto -O3 \ - ") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qstd=c++17") - set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3 -DDEBUG ") + set(WARNING_FLAGS "-Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS}") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS} -Qstd=c++17") + set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${WARNING_FLAGS} -ggdb3 -DDEBUG") + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${WARNING_FLAGS} -ggdb3 -DDEBUG -Qstd=c++17") elseif(UNIX) + set(SDL_FLAGS "-fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SDL_FLAGS} -Wall -Wextra -Winit-self -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto") - set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3 -DDEBUG ") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SDL_FLAGS} -std=c++17 -fsycl") + set(WARNING_FLAGS "-Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS} ${SDL_FLAGS}") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS} ${SDL_FLAGS} -std=c++17 -fsycl") + set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${WARNING_FLAGS} -ggdb3 -DDEBUG") + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${WARNING_FLAGS} -ggdb3 -DDEBUG -std=c++17 -fsycl") + else() message(FATAL_ERROR "Unsupported system.") endif() From 5271051c131beec3f5d60db63e36b35e0a10362e Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Wed, 28 Oct 2020 16:50:47 -0500 Subject: [PATCH 02/15] Add __atrribute__((unused)) to wrap/unwrap functions. -- Wrap/unwrap functions are imported using the smae macro and both versions are not necessarilly used in the same file. Adding this attribute prevents a flood of warning. --- backends/include/Support/CBindingWrapping.h | 39 +++++++++++---------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/backends/include/Support/CBindingWrapping.h b/backends/include/Support/CBindingWrapping.h index 4c77612269..4570176992 100644 --- a/backends/include/Support/CBindingWrapping.h +++ b/backends/include/Support/CBindingWrapping.h @@ -23,23 +23,26 @@ /// //===----------------------------------------------------------------------===// - #pragma once +#pragma once - #define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \ - inline ty *unwrap(ref P) { \ - return reinterpret_cast(P); \ - } \ - \ - inline ref wrap(const ty *P) { \ - return reinterpret_cast(const_cast(P)); \ - } +#define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \ + __attribute__((unused)) inline ty *unwrap(ref P) \ + { \ + return reinterpret_cast(P); \ + } \ + \ + __attribute__((unused)) inline ref wrap(const ty *P) \ + { \ + return reinterpret_cast(const_cast(P)); \ + } - #define DEFINE_STDCXX_CONVERSION_FUNCTIONS(ty, ref) \ - DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \ - \ - template \ - inline T *unwrap(ref P) { \ - T *Q = (T*)unwrap(P); \ - assert(Q && "Invalid cast!"); \ - return Q; \ - } + #define DEFINE_STDCXX_CONVERSION_FUNCTIONS(ty, ref) \ + DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \ + \ + template \ + __attribute__((unused)) inline T *unwrap(ref P) \ + { \ + T *Q = (T*)unwrap(P); \ + assert(Q && "Invalid cast!"); \ + return Q; \ + } From ed142f397a2b5d1be30b6b322f20259b652a3d7f Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Wed, 28 Oct 2020 17:02:21 -0500 Subject: [PATCH 03/15] Remove unused variable. --- backends/source/dppl_sycl_program_interface.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/backends/source/dppl_sycl_program_interface.cpp b/backends/source/dppl_sycl_program_interface.cpp index edb8429c3f..e076d4080e 100644 --- a/backends/source/dppl_sycl_program_interface.cpp +++ b/backends/source/dppl_sycl_program_interface.cpp @@ -96,7 +96,6 @@ DPPLProgram_CreateFromOCLSource (__dppl_keep const DPPLSyclContextRef Ctx, __dppl_keep const char *Source, __dppl_keep const char *CompileOpts) { - cl_int err; std::string compileOpts; context *SyclCtx = nullptr; program *SyclProgram = nullptr; From 1fec3da98cd0a91383856d644556d304869dda29 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Wed, 28 Oct 2020 17:22:15 -0500 Subject: [PATCH 04/15] initialize before use. --- backends/tests/test_sycl_queue_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/tests/test_sycl_queue_manager.cpp b/backends/tests/test_sycl_queue_manager.cpp index 55f8cb725d..386e332e11 100644 --- a/backends/tests/test_sycl_queue_manager.cpp +++ b/backends/tests/test_sycl_queue_manager.cpp @@ -83,7 +83,7 @@ TEST_F (TestDPPLSyclQueueManager, CheckDPPLGetCurrentQueue) if(!has_devices()) GTEST_SKIP_("Skipping: No Sycl devices.\n"); - DPPLSyclQueueRef q; + DPPLSyclQueueRef q = nullptr; ASSERT_NO_THROW(q = DPPLQueueMgr_GetCurrentQueue()); ASSERT_TRUE(q != nullptr); } From 5ec8ef5e1f8aac1fc112c0da42da19949a5598ec Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Wed, 28 Oct 2020 18:04:36 -0500 Subject: [PATCH 05/15] Fix signed comparison warnings. --- backends/tests/test_sycl_kernel_interface.cpp | 4 +- .../tests/test_sycl_platform_interface.cpp | 4 +- backends/tests/test_sycl_queue_manager.cpp | 9 +- backends/warning.out | 511 ++++++++++++++++++ 4 files changed, 519 insertions(+), 9 deletions(-) create mode 100644 backends/warning.out diff --git a/backends/tests/test_sycl_kernel_interface.cpp b/backends/tests/test_sycl_kernel_interface.cpp index 8ef4d8d951..d841b0c430 100644 --- a/backends/tests/test_sycl_kernel_interface.cpp +++ b/backends/tests/test_sycl_kernel_interface.cpp @@ -99,8 +99,8 @@ TEST_F (TestDPPLSyclKernelInterface, CheckGetNumArgs) auto AddKernel = DPPLProgram_GetKernel(PRef, "add"); auto AxpyKernel = DPPLProgram_GetKernel(PRef, "axpy"); - ASSERT_EQ(DPPLKernel_GetNumArgs(AddKernel), 3); - ASSERT_EQ(DPPLKernel_GetNumArgs(AxpyKernel), 4); + ASSERT_EQ(DPPLKernel_GetNumArgs(AddKernel), 3ul); + ASSERT_EQ(DPPLKernel_GetNumArgs(AxpyKernel), 4ul); DPPLQueue_Delete(QueueRef); DPPLContext_Delete(CtxRef); diff --git a/backends/tests/test_sycl_platform_interface.cpp b/backends/tests/test_sycl_platform_interface.cpp index fed815e9bf..645e883b40 100644 --- a/backends/tests/test_sycl_platform_interface.cpp +++ b/backends/tests/test_sycl_platform_interface.cpp @@ -32,13 +32,13 @@ struct TestDPPLSyclPlatformInterface : public ::testing::Test TEST_F (TestDPPLSyclPlatformInterface, CheckGetNumPlatforms) { auto nplatforms = DPPLPlatform_GetNumNonHostPlatforms(); - EXPECT_GE(nplatforms, 0); + EXPECT_GE(nplatforms, 0ul); } TEST_F (TestDPPLSyclPlatformInterface, GetNumBackends) { auto nbackends = DPPLPlatform_GetNumNonHostBackends(); - EXPECT_GE(nbackends, 0); + EXPECT_GE(nbackends, 0ul); } TEST_F (TestDPPLSyclPlatformInterface, GetListOfBackends) diff --git a/backends/tests/test_sycl_queue_manager.cpp b/backends/tests/test_sycl_queue_manager.cpp index 96ed6840c3..44be69d7fc 100644 --- a/backends/tests/test_sycl_queue_manager.cpp +++ b/backends/tests/test_sycl_queue_manager.cpp @@ -170,7 +170,6 @@ TEST_F (TestDPPLSyclQueueManager, CheckGetNumActivatedQueues) auto nOpenCLCpuQ = DPPLQueueMgr_GetNumQueues(DPPL_OPENCL, DPPL_CPU); auto nOpenCLGpuQ = DPPLQueueMgr_GetNumQueues(DPPL_OPENCL, DPPL_GPU); - auto nL0GpuQ = DPPLQueueMgr_GetNumQueues(DPPL_LEVEL_ZERO, DPPL_GPU); // Add a queue to main thread if(!nOpenCLCpuQ || !nOpenCLGpuQ) @@ -192,10 +191,10 @@ TEST_F (TestDPPLSyclQueueManager, CheckGetNumActivatedQueues) // Verify what the expected number of activated queues each time a thread // called getNumActivatedQueues. - EXPECT_EQ(num0, 1); - EXPECT_EQ(num1, 2); - EXPECT_EQ(num2, 1); - EXPECT_EQ(num4, 0); + EXPECT_EQ(num0, 1ul); + EXPECT_EQ(num1, 2ul); + EXPECT_EQ(num2, 1ul); + EXPECT_EQ(num4, 0ul); DPPLQueue_Delete(q); } diff --git a/backends/warning.out b/backends/warning.out new file mode 100644 index 0000000000..4190939798 --- /dev/null +++ b/backends/warning.out @@ -0,0 +1,511 @@ +~/Desktop/devel/dpctl/backends/build ~/Desktop/devel/dpctl/backends +-- The C compiler identification is Clang 12.0.0 +-- The CXX compiler identification is Clang 12.0.0 +-- Check for working C compiler: /opt/intel/oneapi/compiler/latest/linux/bin/clang +-- Check for working C compiler: /opt/intel/oneapi/compiler/latest/linux/bin/clang -- works +-- Detecting C compiler ABI info +-- Detecting C compiler ABI info - done +-- Detecting C compile features +-- Detecting C compile features - done +-- Check for working CXX compiler: /opt/intel/oneapi/compiler/latest/linux/bin/dpcpp +-- Check for working CXX compiler: /opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -- works +-- Detecting CXX compiler ABI info +-- Detecting CXX compiler ABI info - done +-- Detecting CXX compile features +-- Detecting CXX compile features - done +-- dpcpp ver[0]: Intel(R) oneAPI DPC++ Compiler 2021.1 (2020.8.0.1005) +-- dpcpp ver[0]: Target: x86_64-unknown-linux-gnu +-- dpcpp ver[0]: Thread model: posix +-- dpcpp ver[0]: InstalledDir: /opt/intel/oneapi/compiler/2021.1-beta10/linux/bin +-- NUMPY_INCLUDE_DIR: /home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include +-- PYTHON_INCLUDE_DIR: /home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 +-- Looking for pthread.h +-- Looking for pthread.h - found +-- Performing Test CMAKE_HAVE_LIBC_PTHREAD +-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed +-- Looking for pthread_create in pthreads +-- Looking for pthread_create in pthreads - not found +-- Looking for pthread_create in pthread +-- Looking for pthread_create in pthread - found +-- Found Threads: TRUE +-- Configuring done +-- Generating done +-- Build files have been written to: /home/diptorupd/Desktop/devel/dpctl/backends/build +/usr/bin/cmake -S/home/diptorupd/Desktop/devel/dpctl/backends -B/home/diptorupd/Desktop/devel/dpctl/backends/build --check-build-system CMakeFiles/Makefile.cmake 0 +/usr/bin/cmake -E cmake_progress_start /home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles /home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles/progress.marks +make -f CMakeFiles/Makefile2 all +make -f CMakeFiles/DPPLSyclInterface.dir/build.make CMakeFiles/DPPLSyclInterface.dir/depend +cd /home/diptorupd/Desktop/devel/dpctl/backends/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/diptorupd/Desktop/devel/dpctl/backends /home/diptorupd/Desktop/devel/dpctl/backends /home/diptorupd/Desktop/devel/dpctl/backends/build /home/diptorupd/Desktop/devel/dpctl/backends/build /home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles/DPPLSyclInterface.dir/DependInfo.cmake --color= +make -f CMakeFiles/DPPLSyclInterface.dir/build.make CMakeFiles/DPPLSyclInterface.dir/build +/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=1 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_context_interface.cpp.o" +/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_context_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_context_interface.cpp +/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=2 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_device_interface.cpp.o" +/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_device_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_device_interface.cpp +/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=3 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_event_interface.cpp.o" +/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_event_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_event_interface.cpp +/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=4 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_kernel_interface.cpp.o" +/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_kernel_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_kernel_interface.cpp +/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=5 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_platform_interface.cpp.o" +/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_platform_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_platform_interface.cpp +/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=6 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_program_interface.cpp.o" +/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_program_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_program_interface.cpp +/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=7 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_queue_interface.cpp.o" +/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_queue_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_queue_interface.cpp +/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=8 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_queue_manager.cpp.o" +/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_queue_manager.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_queue_manager.cpp +/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=9 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_usm_interface.cpp.o" +/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_usm_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_usm_interface.cpp +/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=10 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_utils.cpp.o" +/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_utils.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_utils.cpp +/usr/bin/cmake -E cmake_echo_color --switch= --green --bold --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=11 "Linking CXX shared library libDPPLSyclInterface.so" +/usr/bin/cmake -E cmake_link_script CMakeFiles/DPPLSyclInterface.dir/link.txt --verbose= +/usr/bin/cmake -E cmake_echo_color --switch= --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=1,2,3,4,5,6,7,8,9,10,11 "Built target DPPLSyclInterface" +/usr/bin/cmake -E cmake_progress_start /home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles 0 +Scanning dependencies of target DPPLSyclInterface +[ 4%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_context_interface.cpp.o +[ 8%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_device_interface.cpp.o +[ 12%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_event_interface.cpp.o +[ 16%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_kernel_interface.cpp.o +[ 20%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_platform_interface.cpp.o +[ 24%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_program_interface.cpp.o +[ 28%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_queue_interface.cpp.o +[ 32%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_queue_manager.cpp.o +[ 36%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_usm_interface.cpp.o +[ 40%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_utils.cpp.o +[ 44%] Linking CXX shared library libDPPLSyclInterface.so +[ 44%] Built target DPPLSyclInterface +Scanning dependencies of target test_sycl_program_interface +[ 48%] Building CXX object tests/CMakeFiles/test_sycl_program_interface.dir/test_sycl_program_interface.cpp.o +/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_program_interface.cpp:50:26: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare] + for (int i = 0; i' requested here + return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs); + ^ +/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_program_interface.cpp:73:13: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare' requested here + EXPECT_EQ(c[i], i + i); + ^ +/home/diptorupd/.conda/envs/dpctl-devel/include/gtest/gtest.h:2028:54: note: expanded from macro 'EXPECT_EQ' + EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2) + ^ +4 warnings generated. +/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_program_interface.cpp:50:26: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare] + for (int i = 0; i' requested here + return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs); + ^ +/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_program_interface.cpp:73:13: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare' requested here + EXPECT_EQ(c[i], i + i); + ^ +/home/diptorupd/.conda/envs/dpctl-devel/include/gtest/gtest.h:2028:54: note: expanded from macro 'EXPECT_EQ' + EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2) + ^ +4 warnings generated. +/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_program_interface.cpp:50:26: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare] + for (int i = 0; i' requested here + return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs); + ^ +/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_program_interface.cpp:73:13: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare' requested here + EXPECT_EQ(c[i], i + i); + ^ +/home/diptorupd/.conda/envs/dpctl-devel/include/gtest/gtest.h:2028:54: note: expanded from macro 'EXPECT_EQ' + EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2) + ^ +4 warnings generated. +[ 52%] Linking CXX executable test_sycl_program_interface +[ 52%] Built target test_sycl_program_interface +Scanning dependencies of target test_sycl_queue_manager +[ 56%] Building CXX object tests/CMakeFiles/test_sycl_queue_manager.dir/test_sycl_queue_manager.cpp.o +[ 60%] Linking CXX executable test_sycl_queue_manager +[ 60%] Built target test_sycl_queue_manager +Scanning dependencies of target test_sycl_kernel_interface +[ 64%] Building CXX object tests/CMakeFiles/test_sycl_kernel_interface.dir/test_sycl_kernel_interface.cpp.o +[ 68%] Linking CXX executable test_sycl_kernel_interface +[ 68%] Built target test_sycl_kernel_interface +Scanning dependencies of target test_sycl_usm_interface +[ 72%] Building CXX object tests/CMakeFiles/test_sycl_usm_interface.dir/test_sycl_usm_interface.cpp.o +/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_usm_interface.cpp:41:18: warning: unused variable 'SIZE' [-Wunused-const-variable] +constexpr size_t SIZE = 1024; + ^ +1 warning generated. +/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_usm_interface.cpp:41:18: warning: unused variable 'SIZE' [-Wunused-const-variable] +constexpr size_t SIZE = 1024; + ^ +1 warning generated. +/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_usm_interface.cpp:41:18: warning: unused variable 'SIZE' [-Wunused-const-variable] +constexpr size_t SIZE = 1024; + ^ +1 warning generated. +[ 76%] Linking CXX executable test_sycl_usm_interface +[ 76%] Built target test_sycl_usm_interface +Scanning dependencies of target test_sycl_platform_interface +[ 80%] Building CXX object tests/CMakeFiles/test_sycl_platform_interface.dir/test_sycl_platform_interface.cpp.o +[ 84%] Linking CXX executable test_sycl_platform_interface +[ 84%] Built target test_sycl_platform_interface +Scanning dependencies of target test_sycl_queue_interface +[ 88%] Building CXX object tests/CMakeFiles/test_sycl_queue_interface.dir/test_sycl_queue_interface.cpp.o +[ 92%] Linking CXX executable test_sycl_queue_interface +[ 92%] Built target test_sycl_queue_interface +Scanning dependencies of target test_sycl_device_interface +[ 96%] Building CXX object tests/CMakeFiles/test_sycl_device_interface.dir/test_sycl_device_interface.cpp.o +[100%] Linking CXX executable test_sycl_device_interface +[100%] Built target test_sycl_device_interface +Scanning dependencies of target check +UpdateCTestConfiguration from :/home/diptorupd/Desktop/devel/dpctl/backends/build/tests/DartConfiguration.tcl +UpdateCTestConfiguration from :/home/diptorupd/Desktop/devel/dpctl/backends/build/tests/DartConfiguration.tcl +Test project /home/diptorupd/Desktop/devel/dpctl/backends/build/tests +Constructing a list of tests +Done constructing a list of tests +Updating test list for fixtures +Added 0 tests to meet fixture requirements +Checking test dependency graph... +Checking test dependency graph end +test 1 + Start 1: test_sycl_device_interface + +1: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_device_interface +1: Test timeout computed to be: 10000000 +1: [==========] Running 33 tests from 1 test suite. +1: [----------] Global test environment set-up. +1: [----------] 33 tests from TestDPPLSyclDeviceInterface +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetDriverInfo +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetDriverInfo (235 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetDriverInfo +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetDriverInfo (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetDriverInfo +1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetDriverInfo (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxComputeUnits +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxComputeUnits (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxComputeUnits +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxComputeUnits (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxComputeUnits +1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxComputeUnits (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxWorkItemDims +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxWorkItemDims (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxWorkItemDims +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxWorkItemDims (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxWorkItemDims +1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxWorkItemDims (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxWorkItemSizes +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxWorkItemSizes (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxWorkItemSizes +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxWorkItemSizes (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxWorkItemSizes +1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxWorkItemSizes (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxWorkGroupSize +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxWorkGroupSize (1 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxWorkGroupSize +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxWorkGroupSize (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxWorkGroupSize +1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxWorkGroupSize (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxNumSubGroups +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxNumSubGroups (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxNumSubGroups +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxNumSubGroups (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxNumSubGroups +1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxNumSubGroups (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_HasInt64BaseAtomics +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_HasInt64BaseAtomics (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_HasInt64BaseAtomics +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_HasInt64BaseAtomics (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_HasInt64BaseAtomics +1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_HasInt64BaseAtomics (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_HasInt64ExtendedAtomics +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_HasInt64ExtendedAtomics (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_HasInt64ExtendedAtomics +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_HasInt64ExtendedAtomics (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_HasInt64ExtendedAtomics +1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_HasInt64ExtendedAtomics (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetName +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetName (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetName +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetName (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetName +1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetName (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetVendorName +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetVendorName (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetVendorName +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetVendorName (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetVendorName +1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetVendorName (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_IsCPU +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_IsCPU (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_IsGPU +1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_IsGPU (0 ms) +1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_IsGPU +1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_IsGPU (0 ms) +1: [----------] 33 tests from TestDPPLSyclDeviceInterface (236 ms total) +1: +1: [----------] Global test environment tear-down +1: [==========] 33 tests from 1 test suite ran. (236 ms total) +1: [ PASSED ] 33 tests. +1/7 Test #1: test_sycl_device_interface ....... Passed 0.30 sec +test 2 + Start 2: test_sycl_kernel_interface + +2: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_kernel_interface +2: Test timeout computed to be: 10000000 +2: [==========] Running 2 tests from 1 test suite. +2: [----------] Global test environment set-up. +2: [----------] 2 tests from TestDPPLSyclKernelInterface +2: [ RUN ] TestDPPLSyclKernelInterface.CheckGetFunctionName +2: [ OK ] TestDPPLSyclKernelInterface.CheckGetFunctionName (397 ms) +2: [ RUN ] TestDPPLSyclKernelInterface.CheckGetNumArgs +2: [ OK ] TestDPPLSyclKernelInterface.CheckGetNumArgs (242 ms) +2: [----------] 2 tests from TestDPPLSyclKernelInterface (639 ms total) +2: +2: [----------] Global test environment tear-down +2: [==========] 2 tests from 1 test suite ran. (639 ms total) +2: [ PASSED ] 2 tests. +2/7 Test #2: test_sycl_kernel_interface ....... Passed 0.73 sec +test 3 + Start 3: test_sycl_platform_interface + +3: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_platform_interface +3: Test timeout computed to be: 10000000 +3: [==========] Running 4 tests from 1 test suite. +3: [----------] Global test environment set-up. +3: [----------] 4 tests from TestDPPLSyclPlatformInterface +3: [ RUN ] TestDPPLSyclPlatformInterface.CheckGetNumPlatforms +3: [ OK ] TestDPPLSyclPlatformInterface.CheckGetNumPlatforms (145 ms) +3: [ RUN ] TestDPPLSyclPlatformInterface.GetNumBackends +3: [ OK ] TestDPPLSyclPlatformInterface.GetNumBackends (0 ms) +3: [ RUN ] TestDPPLSyclPlatformInterface.GetListOfBackends +3: [ OK ] TestDPPLSyclPlatformInterface.GetListOfBackends (0 ms) +3: [ RUN ] TestDPPLSyclPlatformInterface.CheckDPPLPlatformDumpInfo +3: ---Platform 0 +3: Name Intel(R) FPGA Emulation Platform for OpenCL(TM) +3: Version OpenCL 1.2 Intel(R) FPGA SDK for OpenCL(TM), Version 20.3 +3: Vendor Intel(R) Corporation +3: Profile EMBEDDED_PROFILE +3: Backend opencl +3: Devices 1 +3: ---Device 0 +3: Name Intel(R) FPGA Emulation Device +3: Driver version 2020.11.10.0.05_160000 +3: Device type accelerator +3: ---Platform 1 +3: Name Intel(R) OpenCL +3: Version OpenCL 2.1 LINUX +3: Vendor Intel(R) Corporation +3: Profile FULL_PROFILE +3: Backend opencl +3: Devices 1 +3: ---Device 0 +3: Name Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz +3: Driver version 2020.11.10.0.05_160000 +3: Device type cpu +3: ---Platform 2 +3: Name Intel(R) OpenCL HD Graphics +3: Version OpenCL 3.0 +3: Vendor Intel(R) Corporation +3: Profile FULL_PROFILE +3: Backend opencl +3: Devices 1 +3: ---Device 0 +3: Name Intel(R) Gen9 HD Graphics NEO +3: Driver version 20.41.18123 +3: Device type gpu +3: ---Platform 3 +3: Name Intel(R) Level-Zero +3: Version 1.0 +3: Vendor Intel(R) Corporation +3: Profile FULL_PROFILE +3: Backend level_zero +3: Devices 1 +3: ---Device 0 +3: Name Intel(R) Gen9 +3: Driver version 1.0.18123 +3: Device type gpu +3: ---Platform 4 +3: Name SYCL host platform +3: Version 1.2 +3: Vendor unknown +3: Profile FULL PROFILE +3: Backend unknown +3: Devices 1 +3: ---Device 0 +3: Name SYCL host device +3: Driver version 1.2 +3: Device type host +3: [ OK ] TestDPPLSyclPlatformInterface.CheckDPPLPlatformDumpInfo (0 ms) +3: [----------] 4 tests from TestDPPLSyclPlatformInterface (145 ms total) +3: +3: [----------] Global test environment tear-down +3: [==========] 4 tests from 1 test suite ran. (145 ms total) +3: [ PASSED ] 4 tests. +3/7 Test #3: test_sycl_platform_interface ..... Passed 0.20 sec +test 4 + Start 4: test_sycl_program_interface + +4: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_program_interface +4: Test timeout computed to be: 10000000 +4: [==========] Running 4 tests from 1 test suite. +4: [----------] Global test environment set-up. +4: [----------] 4 tests from TestDPPLSyclProgramInterface +4: [ RUN ] TestDPPLSyclProgramInterface.CheckCreateFromOCLSource +4: [ OK ] TestDPPLSyclProgramInterface.CheckCreateFromOCLSource (393 ms) +4: [ RUN ] TestDPPLSyclProgramInterface.CheckCreateFromOCLSpirv +4: [ OK ] TestDPPLSyclProgramInterface.CheckCreateFromOCLSpirv (76 ms) +4: [ RUN ] TestDPPLSyclProgramInterface.CheckGetKernelOCLSource +4: [ OK ] TestDPPLSyclProgramInterface.CheckGetKernelOCLSource (248 ms) +4: [ RUN ] TestDPPLSyclProgramInterface.CheckGetKernelOCLSpirv +4: [ OK ] TestDPPLSyclProgramInterface.CheckGetKernelOCLSpirv (77 ms) +4: [----------] 4 tests from TestDPPLSyclProgramInterface (794 ms total) +4: +4: [----------] Global test environment tear-down +4: [==========] 4 tests from 1 test suite ran. (794 ms total) +4: [ PASSED ] 4 tests. +4/7 Test #4: test_sycl_program_interface ...... Passed 0.90 sec +test 5 + Start 5: test_sycl_queue_interface + +5: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_queue_interface +5: Test timeout computed to be: 10000000 +5: [==========] Running 6 tests from 1 test suite. +5: [----------] Global test environment set-up. +5: [----------] 6 tests from TestDPPLSyclQueueInterface +5: [ RUN ] TestDPPLSyclQueueInterface.CheckAreEq +5: [ OK ] TestDPPLSyclQueueInterface.CheckAreEq (139 ms) +5: [ RUN ] TestDPPLSyclQueueInterface.CheckAreEq2 +5: [ OK ] TestDPPLSyclQueueInterface.CheckAreEq2 (104 ms) +5: [ RUN ] TestDPPLSyclQueueInterface.CheckGetBackend +5: [ OK ] TestDPPLSyclQueueInterface.CheckGetBackend (0 ms) +5: [ RUN ] TestDPPLSyclQueueInterface.CheckGetContext +5: [ OK ] TestDPPLSyclQueueInterface.CheckGetContext (0 ms) +5: [ RUN ] TestDPPLSyclQueueInterface.CheckGetDevice +5: [ OK ] TestDPPLSyclQueueInterface.CheckGetDevice (0 ms) +5: [ RUN ] TestDPPLSyclQueueInterface.CheckSubmit +5: [ OK ] TestDPPLSyclQueueInterface.CheckSubmit (250 ms) +5: [----------] 6 tests from TestDPPLSyclQueueInterface (494 ms total) +5: +5: [----------] Global test environment tear-down +5: [==========] 6 tests from 1 test suite ran. (494 ms total) +5: [ PASSED ] 6 tests. +5/7 Test #5: test_sycl_queue_interface ........ Passed 0.56 sec +test 6 + Start 6: test_sycl_queue_manager + +6: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_queue_manager +6: Test timeout computed to be: 10000000 +6: [==========] Running 9 tests from 1 test suite. +6: [----------] Global test environment set-up. +6: [----------] 9 tests from TestDPPLSyclQueueManager +6: [ RUN ] TestDPPLSyclQueueManager.CheckDPPLGetCurrentQueue +6: [ OK ] TestDPPLSyclQueueManager.CheckDPPLGetCurrentQueue (147 ms) +6: [ RUN ] TestDPPLSyclQueueManager.CheckDPPLGetOpenCLCpuQ +6: OpenCL CPU device 2 not found on system. +6: [ OK ] TestDPPLSyclQueueManager.CheckDPPLGetOpenCLCpuQ (98 ms) +6: [ RUN ] TestDPPLSyclQueueManager.CheckDPPLGetOpenCLGpuQ +6: OpenCL GPU device 2 not found on system. +6: [ OK ] TestDPPLSyclQueueManager.CheckDPPLGetOpenCLGpuQ (0 ms) +6: [ RUN ] TestDPPLSyclQueueManager.CheckDPPLGetLevel0GpuQ +6: Level-0 GPU device 2 not found on system. +6: [ OK ] TestDPPLSyclQueueManager.CheckDPPLGetLevel0GpuQ (0 ms) +6: [ RUN ] TestDPPLSyclQueueManager.CheckGetNumActivatedQueues +6: [ OK ] TestDPPLSyclQueueManager.CheckGetNumActivatedQueues (1 ms) +6: [ RUN ] TestDPPLSyclQueueManager.CheckDPPLDumpDeviceInfo +6: Name Intel(R) Gen9 +6: Driver version 1.0.18123 +6: Vendor Intel(R) Corporation +6: Profile FULL_PROFILE +6: Device type gpu +6: [ OK ] TestDPPLSyclQueueManager.CheckDPPLDumpDeviceInfo (0 ms) +6: [ RUN ] TestDPPLSyclQueueManager.CheckIsCurrentQueue +6: [ OK ] TestDPPLSyclQueueManager.CheckIsCurrentQueue (0 ms) +6: [ RUN ] TestDPPLSyclQueueManager.CheckIsCurrentQueue2 +6: [ OK ] TestDPPLSyclQueueManager.CheckIsCurrentQueue2 (0 ms) +6: [ RUN ] TestDPPLSyclQueueManager.CreateQueueFromDeviceAndContext +6: [ OK ] TestDPPLSyclQueueManager.CreateQueueFromDeviceAndContext (0 ms) +6: [----------] 9 tests from TestDPPLSyclQueueManager (246 ms total) +6: +6: [----------] Global test environment tear-down +6: [==========] 9 tests from 1 test suite ran. (246 ms total) +6: [ PASSED ] 9 tests. +6/7 Test #6: test_sycl_queue_manager .......... Passed 0.31 sec +test 7 + Start 7: test_sycl_usm_interface + +7: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_usm_interface +7: Test timeout computed to be: 10000000 +7: [==========] Running 6 tests from 1 test suite. +7: [----------] Global test environment set-up. +7: [----------] 6 tests from TestDPPLSyclUSMInterface +7: [ RUN ] TestDPPLSyclUSMInterface.MallocShared +7: [ OK ] TestDPPLSyclUSMInterface.MallocShared (242 ms) +7: [ RUN ] TestDPPLSyclUSMInterface.MallocDevice +7: [ OK ] TestDPPLSyclUSMInterface.MallocDevice (0 ms) +7: [ RUN ] TestDPPLSyclUSMInterface.MallocHost +7: [ OK ] TestDPPLSyclUSMInterface.MallocHost (0 ms) +7: [ RUN ] TestDPPLSyclUSMInterface.AlignedAllocShared +7: [ OK ] TestDPPLSyclUSMInterface.AlignedAllocShared (0 ms) +7: [ RUN ] TestDPPLSyclUSMInterface.AlignedAllocDevice +7: [ OK ] TestDPPLSyclUSMInterface.AlignedAllocDevice (1 ms) +7: [ RUN ] TestDPPLSyclUSMInterface.AlignedAllocHost +7: [ OK ] TestDPPLSyclUSMInterface.AlignedAllocHost (0 ms) +7: [----------] 6 tests from TestDPPLSyclUSMInterface (243 ms total) +7: +7: [----------] Global test environment tear-down +7: [==========] 6 tests from 1 test suite ran. (243 ms total) +7: [ PASSED ] 6 tests. +7/7 Test #7: test_sycl_usm_interface .......... Passed 0.35 sec + +100% tests passed, 0 tests failed out of 7 + +Total Test time (real) = 3.35 sec +[100%] Built target check +[100%] Built target DPPLSyclInterface +Install the project... +-- Install configuration: "Debug" +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/lib/libDPPLSyclInterface.so +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_data_types.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_context_interface.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_device_interface.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_enum_types.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_event_interface.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_kernel_interface.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_platform_interface.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_program_interface.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_queue_interface.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_queue_manager.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_types.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_usm_interface.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_utils.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/Support/CBindingWrapping.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/Support/DllExport.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/Support/ExternC.h +-- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/Support/MemOwnershipAttrs.h +~/Desktop/devel/dpctl/backends From a1ed121da9a635818dae73893df6d99da13220ab Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Wed, 28 Oct 2020 18:20:50 -0500 Subject: [PATCH 06/15] Remove accidentally pushed file. --- backends/warning.out | 511 ------------------------------------------- 1 file changed, 511 deletions(-) delete mode 100644 backends/warning.out diff --git a/backends/warning.out b/backends/warning.out deleted file mode 100644 index 4190939798..0000000000 --- a/backends/warning.out +++ /dev/null @@ -1,511 +0,0 @@ -~/Desktop/devel/dpctl/backends/build ~/Desktop/devel/dpctl/backends --- The C compiler identification is Clang 12.0.0 --- The CXX compiler identification is Clang 12.0.0 --- Check for working C compiler: /opt/intel/oneapi/compiler/latest/linux/bin/clang --- Check for working C compiler: /opt/intel/oneapi/compiler/latest/linux/bin/clang -- works --- Detecting C compiler ABI info --- Detecting C compiler ABI info - done --- Detecting C compile features --- Detecting C compile features - done --- Check for working CXX compiler: /opt/intel/oneapi/compiler/latest/linux/bin/dpcpp --- Check for working CXX compiler: /opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -- works --- Detecting CXX compiler ABI info --- Detecting CXX compiler ABI info - done --- Detecting CXX compile features --- Detecting CXX compile features - done --- dpcpp ver[0]: Intel(R) oneAPI DPC++ Compiler 2021.1 (2020.8.0.1005) --- dpcpp ver[0]: Target: x86_64-unknown-linux-gnu --- dpcpp ver[0]: Thread model: posix --- dpcpp ver[0]: InstalledDir: /opt/intel/oneapi/compiler/2021.1-beta10/linux/bin --- NUMPY_INCLUDE_DIR: /home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include --- PYTHON_INCLUDE_DIR: /home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 --- Looking for pthread.h --- Looking for pthread.h - found --- Performing Test CMAKE_HAVE_LIBC_PTHREAD --- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed --- Looking for pthread_create in pthreads --- Looking for pthread_create in pthreads - not found --- Looking for pthread_create in pthread --- Looking for pthread_create in pthread - found --- Found Threads: TRUE --- Configuring done --- Generating done --- Build files have been written to: /home/diptorupd/Desktop/devel/dpctl/backends/build -/usr/bin/cmake -S/home/diptorupd/Desktop/devel/dpctl/backends -B/home/diptorupd/Desktop/devel/dpctl/backends/build --check-build-system CMakeFiles/Makefile.cmake 0 -/usr/bin/cmake -E cmake_progress_start /home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles /home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles/progress.marks -make -f CMakeFiles/Makefile2 all -make -f CMakeFiles/DPPLSyclInterface.dir/build.make CMakeFiles/DPPLSyclInterface.dir/depend -cd /home/diptorupd/Desktop/devel/dpctl/backends/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/diptorupd/Desktop/devel/dpctl/backends /home/diptorupd/Desktop/devel/dpctl/backends /home/diptorupd/Desktop/devel/dpctl/backends/build /home/diptorupd/Desktop/devel/dpctl/backends/build /home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles/DPPLSyclInterface.dir/DependInfo.cmake --color= -make -f CMakeFiles/DPPLSyclInterface.dir/build.make CMakeFiles/DPPLSyclInterface.dir/build -/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=1 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_context_interface.cpp.o" -/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_context_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_context_interface.cpp -/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=2 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_device_interface.cpp.o" -/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_device_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_device_interface.cpp -/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=3 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_event_interface.cpp.o" -/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_event_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_event_interface.cpp -/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=4 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_kernel_interface.cpp.o" -/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_kernel_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_kernel_interface.cpp -/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=5 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_platform_interface.cpp.o" -/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_platform_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_platform_interface.cpp -/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=6 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_program_interface.cpp.o" -/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_program_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_program_interface.cpp -/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=7 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_queue_interface.cpp.o" -/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_queue_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_queue_interface.cpp -/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=8 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_queue_manager.cpp.o" -/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_queue_manager.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_queue_manager.cpp -/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=9 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_usm_interface.cpp.o" -/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_usm_interface.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_sycl_usm_interface.cpp -/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=10 "Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_utils.cpp.o" -/opt/intel/oneapi/compiler/latest/linux/bin/dpcpp -DDPPLSyclInterface_EXPORTS -I/home/diptorupd/Desktop/devel/dpctl/backends/include -I/home/diptorupd/.conda/envs/dpctl-devel/include/python3.8 -I/home/diptorupd/.conda/envs/dpctl-devel/lib/python3.8/site-packages/numpy/core/include -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks -std=c++17 -fsycl -g -Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto -ggdb3 -DDEBUG -std=c++17 -fsycl -fPIC -o CMakeFiles/DPPLSyclInterface.dir/source/dppl_utils.cpp.o -c /home/diptorupd/Desktop/devel/dpctl/backends/source/dppl_utils.cpp -/usr/bin/cmake -E cmake_echo_color --switch= --green --bold --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=11 "Linking CXX shared library libDPPLSyclInterface.so" -/usr/bin/cmake -E cmake_link_script CMakeFiles/DPPLSyclInterface.dir/link.txt --verbose= -/usr/bin/cmake -E cmake_echo_color --switch= --progress-dir=/home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles --progress-num=1,2,3,4,5,6,7,8,9,10,11 "Built target DPPLSyclInterface" -/usr/bin/cmake -E cmake_progress_start /home/diptorupd/Desktop/devel/dpctl/backends/build/CMakeFiles 0 -Scanning dependencies of target DPPLSyclInterface -[ 4%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_context_interface.cpp.o -[ 8%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_device_interface.cpp.o -[ 12%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_event_interface.cpp.o -[ 16%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_kernel_interface.cpp.o -[ 20%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_platform_interface.cpp.o -[ 24%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_program_interface.cpp.o -[ 28%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_queue_interface.cpp.o -[ 32%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_queue_manager.cpp.o -[ 36%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_sycl_usm_interface.cpp.o -[ 40%] Building CXX object CMakeFiles/DPPLSyclInterface.dir/source/dppl_utils.cpp.o -[ 44%] Linking CXX shared library libDPPLSyclInterface.so -[ 44%] Built target DPPLSyclInterface -Scanning dependencies of target test_sycl_program_interface -[ 48%] Building CXX object tests/CMakeFiles/test_sycl_program_interface.dir/test_sycl_program_interface.cpp.o -/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_program_interface.cpp:50:26: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare] - for (int i = 0; i' requested here - return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs); - ^ -/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_program_interface.cpp:73:13: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare' requested here - EXPECT_EQ(c[i], i + i); - ^ -/home/diptorupd/.conda/envs/dpctl-devel/include/gtest/gtest.h:2028:54: note: expanded from macro 'EXPECT_EQ' - EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2) - ^ -4 warnings generated. -/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_program_interface.cpp:50:26: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare] - for (int i = 0; i' requested here - return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs); - ^ -/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_program_interface.cpp:73:13: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare' requested here - EXPECT_EQ(c[i], i + i); - ^ -/home/diptorupd/.conda/envs/dpctl-devel/include/gtest/gtest.h:2028:54: note: expanded from macro 'EXPECT_EQ' - EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2) - ^ -4 warnings generated. -/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_program_interface.cpp:50:26: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare] - for (int i = 0; i' requested here - return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs); - ^ -/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_program_interface.cpp:73:13: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare' requested here - EXPECT_EQ(c[i], i + i); - ^ -/home/diptorupd/.conda/envs/dpctl-devel/include/gtest/gtest.h:2028:54: note: expanded from macro 'EXPECT_EQ' - EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2) - ^ -4 warnings generated. -[ 52%] Linking CXX executable test_sycl_program_interface -[ 52%] Built target test_sycl_program_interface -Scanning dependencies of target test_sycl_queue_manager -[ 56%] Building CXX object tests/CMakeFiles/test_sycl_queue_manager.dir/test_sycl_queue_manager.cpp.o -[ 60%] Linking CXX executable test_sycl_queue_manager -[ 60%] Built target test_sycl_queue_manager -Scanning dependencies of target test_sycl_kernel_interface -[ 64%] Building CXX object tests/CMakeFiles/test_sycl_kernel_interface.dir/test_sycl_kernel_interface.cpp.o -[ 68%] Linking CXX executable test_sycl_kernel_interface -[ 68%] Built target test_sycl_kernel_interface -Scanning dependencies of target test_sycl_usm_interface -[ 72%] Building CXX object tests/CMakeFiles/test_sycl_usm_interface.dir/test_sycl_usm_interface.cpp.o -/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_usm_interface.cpp:41:18: warning: unused variable 'SIZE' [-Wunused-const-variable] -constexpr size_t SIZE = 1024; - ^ -1 warning generated. -/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_usm_interface.cpp:41:18: warning: unused variable 'SIZE' [-Wunused-const-variable] -constexpr size_t SIZE = 1024; - ^ -1 warning generated. -/home/diptorupd/Desktop/devel/dpctl/backends/tests/test_sycl_usm_interface.cpp:41:18: warning: unused variable 'SIZE' [-Wunused-const-variable] -constexpr size_t SIZE = 1024; - ^ -1 warning generated. -[ 76%] Linking CXX executable test_sycl_usm_interface -[ 76%] Built target test_sycl_usm_interface -Scanning dependencies of target test_sycl_platform_interface -[ 80%] Building CXX object tests/CMakeFiles/test_sycl_platform_interface.dir/test_sycl_platform_interface.cpp.o -[ 84%] Linking CXX executable test_sycl_platform_interface -[ 84%] Built target test_sycl_platform_interface -Scanning dependencies of target test_sycl_queue_interface -[ 88%] Building CXX object tests/CMakeFiles/test_sycl_queue_interface.dir/test_sycl_queue_interface.cpp.o -[ 92%] Linking CXX executable test_sycl_queue_interface -[ 92%] Built target test_sycl_queue_interface -Scanning dependencies of target test_sycl_device_interface -[ 96%] Building CXX object tests/CMakeFiles/test_sycl_device_interface.dir/test_sycl_device_interface.cpp.o -[100%] Linking CXX executable test_sycl_device_interface -[100%] Built target test_sycl_device_interface -Scanning dependencies of target check -UpdateCTestConfiguration from :/home/diptorupd/Desktop/devel/dpctl/backends/build/tests/DartConfiguration.tcl -UpdateCTestConfiguration from :/home/diptorupd/Desktop/devel/dpctl/backends/build/tests/DartConfiguration.tcl -Test project /home/diptorupd/Desktop/devel/dpctl/backends/build/tests -Constructing a list of tests -Done constructing a list of tests -Updating test list for fixtures -Added 0 tests to meet fixture requirements -Checking test dependency graph... -Checking test dependency graph end -test 1 - Start 1: test_sycl_device_interface - -1: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_device_interface -1: Test timeout computed to be: 10000000 -1: [==========] Running 33 tests from 1 test suite. -1: [----------] Global test environment set-up. -1: [----------] 33 tests from TestDPPLSyclDeviceInterface -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetDriverInfo -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetDriverInfo (235 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetDriverInfo -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetDriverInfo (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetDriverInfo -1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetDriverInfo (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxComputeUnits -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxComputeUnits (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxComputeUnits -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxComputeUnits (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxComputeUnits -1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxComputeUnits (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxWorkItemDims -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxWorkItemDims (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxWorkItemDims -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxWorkItemDims (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxWorkItemDims -1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxWorkItemDims (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxWorkItemSizes -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxWorkItemSizes (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxWorkItemSizes -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxWorkItemSizes (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxWorkItemSizes -1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxWorkItemSizes (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxWorkGroupSize -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxWorkGroupSize (1 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxWorkGroupSize -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxWorkGroupSize (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxWorkGroupSize -1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxWorkGroupSize (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxNumSubGroups -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetMaxNumSubGroups (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxNumSubGroups -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetMaxNumSubGroups (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxNumSubGroups -1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetMaxNumSubGroups (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_HasInt64BaseAtomics -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_HasInt64BaseAtomics (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_HasInt64BaseAtomics -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_HasInt64BaseAtomics (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_HasInt64BaseAtomics -1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_HasInt64BaseAtomics (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_HasInt64ExtendedAtomics -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_HasInt64ExtendedAtomics (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_HasInt64ExtendedAtomics -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_HasInt64ExtendedAtomics (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_HasInt64ExtendedAtomics -1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_HasInt64ExtendedAtomics (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetName -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetName (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetName -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetName (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetName -1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetName (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetVendorName -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_GetVendorName (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetVendorName -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_GetVendorName (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetVendorName -1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_GetVendorName (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLCPU_IsCPU -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLCPU_IsCPU (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckOCLGPU_IsGPU -1: [ OK ] TestDPPLSyclDeviceInterface.CheckOCLGPU_IsGPU (0 ms) -1: [ RUN ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_IsGPU -1: [ OK ] TestDPPLSyclDeviceInterface.CheckLevel0GPU_IsGPU (0 ms) -1: [----------] 33 tests from TestDPPLSyclDeviceInterface (236 ms total) -1: -1: [----------] Global test environment tear-down -1: [==========] 33 tests from 1 test suite ran. (236 ms total) -1: [ PASSED ] 33 tests. -1/7 Test #1: test_sycl_device_interface ....... Passed 0.30 sec -test 2 - Start 2: test_sycl_kernel_interface - -2: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_kernel_interface -2: Test timeout computed to be: 10000000 -2: [==========] Running 2 tests from 1 test suite. -2: [----------] Global test environment set-up. -2: [----------] 2 tests from TestDPPLSyclKernelInterface -2: [ RUN ] TestDPPLSyclKernelInterface.CheckGetFunctionName -2: [ OK ] TestDPPLSyclKernelInterface.CheckGetFunctionName (397 ms) -2: [ RUN ] TestDPPLSyclKernelInterface.CheckGetNumArgs -2: [ OK ] TestDPPLSyclKernelInterface.CheckGetNumArgs (242 ms) -2: [----------] 2 tests from TestDPPLSyclKernelInterface (639 ms total) -2: -2: [----------] Global test environment tear-down -2: [==========] 2 tests from 1 test suite ran. (639 ms total) -2: [ PASSED ] 2 tests. -2/7 Test #2: test_sycl_kernel_interface ....... Passed 0.73 sec -test 3 - Start 3: test_sycl_platform_interface - -3: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_platform_interface -3: Test timeout computed to be: 10000000 -3: [==========] Running 4 tests from 1 test suite. -3: [----------] Global test environment set-up. -3: [----------] 4 tests from TestDPPLSyclPlatformInterface -3: [ RUN ] TestDPPLSyclPlatformInterface.CheckGetNumPlatforms -3: [ OK ] TestDPPLSyclPlatformInterface.CheckGetNumPlatforms (145 ms) -3: [ RUN ] TestDPPLSyclPlatformInterface.GetNumBackends -3: [ OK ] TestDPPLSyclPlatformInterface.GetNumBackends (0 ms) -3: [ RUN ] TestDPPLSyclPlatformInterface.GetListOfBackends -3: [ OK ] TestDPPLSyclPlatformInterface.GetListOfBackends (0 ms) -3: [ RUN ] TestDPPLSyclPlatformInterface.CheckDPPLPlatformDumpInfo -3: ---Platform 0 -3: Name Intel(R) FPGA Emulation Platform for OpenCL(TM) -3: Version OpenCL 1.2 Intel(R) FPGA SDK for OpenCL(TM), Version 20.3 -3: Vendor Intel(R) Corporation -3: Profile EMBEDDED_PROFILE -3: Backend opencl -3: Devices 1 -3: ---Device 0 -3: Name Intel(R) FPGA Emulation Device -3: Driver version 2020.11.10.0.05_160000 -3: Device type accelerator -3: ---Platform 1 -3: Name Intel(R) OpenCL -3: Version OpenCL 2.1 LINUX -3: Vendor Intel(R) Corporation -3: Profile FULL_PROFILE -3: Backend opencl -3: Devices 1 -3: ---Device 0 -3: Name Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz -3: Driver version 2020.11.10.0.05_160000 -3: Device type cpu -3: ---Platform 2 -3: Name Intel(R) OpenCL HD Graphics -3: Version OpenCL 3.0 -3: Vendor Intel(R) Corporation -3: Profile FULL_PROFILE -3: Backend opencl -3: Devices 1 -3: ---Device 0 -3: Name Intel(R) Gen9 HD Graphics NEO -3: Driver version 20.41.18123 -3: Device type gpu -3: ---Platform 3 -3: Name Intel(R) Level-Zero -3: Version 1.0 -3: Vendor Intel(R) Corporation -3: Profile FULL_PROFILE -3: Backend level_zero -3: Devices 1 -3: ---Device 0 -3: Name Intel(R) Gen9 -3: Driver version 1.0.18123 -3: Device type gpu -3: ---Platform 4 -3: Name SYCL host platform -3: Version 1.2 -3: Vendor unknown -3: Profile FULL PROFILE -3: Backend unknown -3: Devices 1 -3: ---Device 0 -3: Name SYCL host device -3: Driver version 1.2 -3: Device type host -3: [ OK ] TestDPPLSyclPlatformInterface.CheckDPPLPlatformDumpInfo (0 ms) -3: [----------] 4 tests from TestDPPLSyclPlatformInterface (145 ms total) -3: -3: [----------] Global test environment tear-down -3: [==========] 4 tests from 1 test suite ran. (145 ms total) -3: [ PASSED ] 4 tests. -3/7 Test #3: test_sycl_platform_interface ..... Passed 0.20 sec -test 4 - Start 4: test_sycl_program_interface - -4: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_program_interface -4: Test timeout computed to be: 10000000 -4: [==========] Running 4 tests from 1 test suite. -4: [----------] Global test environment set-up. -4: [----------] 4 tests from TestDPPLSyclProgramInterface -4: [ RUN ] TestDPPLSyclProgramInterface.CheckCreateFromOCLSource -4: [ OK ] TestDPPLSyclProgramInterface.CheckCreateFromOCLSource (393 ms) -4: [ RUN ] TestDPPLSyclProgramInterface.CheckCreateFromOCLSpirv -4: [ OK ] TestDPPLSyclProgramInterface.CheckCreateFromOCLSpirv (76 ms) -4: [ RUN ] TestDPPLSyclProgramInterface.CheckGetKernelOCLSource -4: [ OK ] TestDPPLSyclProgramInterface.CheckGetKernelOCLSource (248 ms) -4: [ RUN ] TestDPPLSyclProgramInterface.CheckGetKernelOCLSpirv -4: [ OK ] TestDPPLSyclProgramInterface.CheckGetKernelOCLSpirv (77 ms) -4: [----------] 4 tests from TestDPPLSyclProgramInterface (794 ms total) -4: -4: [----------] Global test environment tear-down -4: [==========] 4 tests from 1 test suite ran. (794 ms total) -4: [ PASSED ] 4 tests. -4/7 Test #4: test_sycl_program_interface ...... Passed 0.90 sec -test 5 - Start 5: test_sycl_queue_interface - -5: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_queue_interface -5: Test timeout computed to be: 10000000 -5: [==========] Running 6 tests from 1 test suite. -5: [----------] Global test environment set-up. -5: [----------] 6 tests from TestDPPLSyclQueueInterface -5: [ RUN ] TestDPPLSyclQueueInterface.CheckAreEq -5: [ OK ] TestDPPLSyclQueueInterface.CheckAreEq (139 ms) -5: [ RUN ] TestDPPLSyclQueueInterface.CheckAreEq2 -5: [ OK ] TestDPPLSyclQueueInterface.CheckAreEq2 (104 ms) -5: [ RUN ] TestDPPLSyclQueueInterface.CheckGetBackend -5: [ OK ] TestDPPLSyclQueueInterface.CheckGetBackend (0 ms) -5: [ RUN ] TestDPPLSyclQueueInterface.CheckGetContext -5: [ OK ] TestDPPLSyclQueueInterface.CheckGetContext (0 ms) -5: [ RUN ] TestDPPLSyclQueueInterface.CheckGetDevice -5: [ OK ] TestDPPLSyclQueueInterface.CheckGetDevice (0 ms) -5: [ RUN ] TestDPPLSyclQueueInterface.CheckSubmit -5: [ OK ] TestDPPLSyclQueueInterface.CheckSubmit (250 ms) -5: [----------] 6 tests from TestDPPLSyclQueueInterface (494 ms total) -5: -5: [----------] Global test environment tear-down -5: [==========] 6 tests from 1 test suite ran. (494 ms total) -5: [ PASSED ] 6 tests. -5/7 Test #5: test_sycl_queue_interface ........ Passed 0.56 sec -test 6 - Start 6: test_sycl_queue_manager - -6: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_queue_manager -6: Test timeout computed to be: 10000000 -6: [==========] Running 9 tests from 1 test suite. -6: [----------] Global test environment set-up. -6: [----------] 9 tests from TestDPPLSyclQueueManager -6: [ RUN ] TestDPPLSyclQueueManager.CheckDPPLGetCurrentQueue -6: [ OK ] TestDPPLSyclQueueManager.CheckDPPLGetCurrentQueue (147 ms) -6: [ RUN ] TestDPPLSyclQueueManager.CheckDPPLGetOpenCLCpuQ -6: OpenCL CPU device 2 not found on system. -6: [ OK ] TestDPPLSyclQueueManager.CheckDPPLGetOpenCLCpuQ (98 ms) -6: [ RUN ] TestDPPLSyclQueueManager.CheckDPPLGetOpenCLGpuQ -6: OpenCL GPU device 2 not found on system. -6: [ OK ] TestDPPLSyclQueueManager.CheckDPPLGetOpenCLGpuQ (0 ms) -6: [ RUN ] TestDPPLSyclQueueManager.CheckDPPLGetLevel0GpuQ -6: Level-0 GPU device 2 not found on system. -6: [ OK ] TestDPPLSyclQueueManager.CheckDPPLGetLevel0GpuQ (0 ms) -6: [ RUN ] TestDPPLSyclQueueManager.CheckGetNumActivatedQueues -6: [ OK ] TestDPPLSyclQueueManager.CheckGetNumActivatedQueues (1 ms) -6: [ RUN ] TestDPPLSyclQueueManager.CheckDPPLDumpDeviceInfo -6: Name Intel(R) Gen9 -6: Driver version 1.0.18123 -6: Vendor Intel(R) Corporation -6: Profile FULL_PROFILE -6: Device type gpu -6: [ OK ] TestDPPLSyclQueueManager.CheckDPPLDumpDeviceInfo (0 ms) -6: [ RUN ] TestDPPLSyclQueueManager.CheckIsCurrentQueue -6: [ OK ] TestDPPLSyclQueueManager.CheckIsCurrentQueue (0 ms) -6: [ RUN ] TestDPPLSyclQueueManager.CheckIsCurrentQueue2 -6: [ OK ] TestDPPLSyclQueueManager.CheckIsCurrentQueue2 (0 ms) -6: [ RUN ] TestDPPLSyclQueueManager.CreateQueueFromDeviceAndContext -6: [ OK ] TestDPPLSyclQueueManager.CreateQueueFromDeviceAndContext (0 ms) -6: [----------] 9 tests from TestDPPLSyclQueueManager (246 ms total) -6: -6: [----------] Global test environment tear-down -6: [==========] 9 tests from 1 test suite ran. (246 ms total) -6: [ PASSED ] 9 tests. -6/7 Test #6: test_sycl_queue_manager .......... Passed 0.31 sec -test 7 - Start 7: test_sycl_usm_interface - -7: Test command: /home/diptorupd/Desktop/devel/dpctl/backends/build/tests/test_sycl_usm_interface -7: Test timeout computed to be: 10000000 -7: [==========] Running 6 tests from 1 test suite. -7: [----------] Global test environment set-up. -7: [----------] 6 tests from TestDPPLSyclUSMInterface -7: [ RUN ] TestDPPLSyclUSMInterface.MallocShared -7: [ OK ] TestDPPLSyclUSMInterface.MallocShared (242 ms) -7: [ RUN ] TestDPPLSyclUSMInterface.MallocDevice -7: [ OK ] TestDPPLSyclUSMInterface.MallocDevice (0 ms) -7: [ RUN ] TestDPPLSyclUSMInterface.MallocHost -7: [ OK ] TestDPPLSyclUSMInterface.MallocHost (0 ms) -7: [ RUN ] TestDPPLSyclUSMInterface.AlignedAllocShared -7: [ OK ] TestDPPLSyclUSMInterface.AlignedAllocShared (0 ms) -7: [ RUN ] TestDPPLSyclUSMInterface.AlignedAllocDevice -7: [ OK ] TestDPPLSyclUSMInterface.AlignedAllocDevice (1 ms) -7: [ RUN ] TestDPPLSyclUSMInterface.AlignedAllocHost -7: [ OK ] TestDPPLSyclUSMInterface.AlignedAllocHost (0 ms) -7: [----------] 6 tests from TestDPPLSyclUSMInterface (243 ms total) -7: -7: [----------] Global test environment tear-down -7: [==========] 6 tests from 1 test suite ran. (243 ms total) -7: [ PASSED ] 6 tests. -7/7 Test #7: test_sycl_usm_interface .......... Passed 0.35 sec - -100% tests passed, 0 tests failed out of 7 - -Total Test time (real) = 3.35 sec -[100%] Built target check -[100%] Built target DPPLSyclInterface -Install the project... --- Install configuration: "Debug" --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/lib/libDPPLSyclInterface.so --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_data_types.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_context_interface.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_device_interface.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_enum_types.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_event_interface.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_kernel_interface.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_platform_interface.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_program_interface.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_queue_interface.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_queue_manager.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_types.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_sycl_usm_interface.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/dppl_utils.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/Support/CBindingWrapping.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/Support/DllExport.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/Support/ExternC.h --- Installing: /home/diptorupd/Desktop/devel/dpctl/backends/install/include/Support/MemOwnershipAttrs.h -~/Desktop/devel/dpctl/backends From e6a3be5db4578789fc776d785fc403310b35e078 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Wed, 28 Oct 2020 18:25:59 -0500 Subject: [PATCH 07/15] Some formatting changes. --- .../tests/test_sycl_program_interface.cpp | 115 +++++++++--------- 1 file changed, 58 insertions(+), 57 deletions(-) diff --git a/backends/tests/test_sycl_program_interface.cpp b/backends/tests/test_sycl_program_interface.cpp index b32f7b7ab5..8fc1b97eff 100644 --- a/backends/tests/test_sycl_program_interface.cpp +++ b/backends/tests/test_sycl_program_interface.cpp @@ -40,74 +40,75 @@ using namespace cl::sycl; namespace { - const size_t SIZE = 1024; +const size_t SIZE = 1024; - void add_kernel_checker (queue *syclQueue, DPPLSyclKernelRef AddKernel) - { - range<1> a_size{SIZE}; - std::array a, b, c; +void add_kernel_checker (queue *syclQueue, DPPLSyclKernelRef AddKernel) +{ + range<1> a_size{SIZE}; + std::array a, b, c; - for (int i = 0; i a_device(a.data(), a_size); - buffer b_device(b.data(), a_size); - buffer c_device(c.data(), a_size); - buffer buffs[3] = {a_device, b_device, c_device}; - syclQueue->submit([&](handler& cgh) { - for (auto buff : buffs) { - auto arg = buff.get_access(cgh); - cgh.set_args(arg); - } - auto syclKernel = reinterpret_cast(AddKernel); - cgh.parallel_for(range<1>{SIZE}, *syclKernel); - }); - } + { + buffer a_device(a.data(), a_size); + buffer b_device(b.data(), a_size); + buffer c_device(c.data(), a_size); + buffer buffs[3] = {a_device, b_device, c_device}; + syclQueue->submit([&](handler& cgh) { + for (auto buff : buffs) { + auto arg = buff.get_access(cgh); + cgh.set_args(arg); + } + auto syclKernel = reinterpret_cast(AddKernel); + cgh.parallel_for(range<1>{SIZE}, *syclKernel); + }); + } - // Validate the data - for(auto i = 0ul; i < SIZE; ++i) { - EXPECT_EQ(c[i], i + i); - } + // Validate the data + for(auto i = 0ul; i < SIZE; ++i) { + EXPECT_EQ(c[i], i + i); } +} - void axpy_kernel_checker (queue *syclQueue, DPPLSyclKernelRef AxpyKernel) - { - range<1> a_size{SIZE}; - std::array a, b, c; +void axpy_kernel_checker (queue *syclQueue, DPPLSyclKernelRef AxpyKernel) +{ + range<1> a_size{SIZE}; + std::array a, b, c; - for (int i = 0; i a_device(a.data(), a_size); - buffer b_device(b.data(), a_size); - buffer c_device(c.data(), a_size); - buffer buffs[3] = {a_device, b_device, c_device}; - syclQueue->submit([&](handler& cgh) { - for (auto i = 0ul; i < 3; ++i) { - auto arg = buffs[i].get_access(cgh); - cgh.set_arg(i, arg); - } - cgh.set_arg(3, d); - auto syclKernel = reinterpret_cast(AxpyKernel); - cgh.parallel_for(range<1>{SIZE}, *syclKernel); - }); - } + for (int i = 0; i < SIZE; ++i) { + a[i] = i; + b[i] = i; + c[i] = 0; + } + int d = 10; + { + buffer a_device(a.data(), a_size); + buffer b_device(b.data(), a_size); + buffer c_device(c.data(), a_size); + buffer buffs[3] = {a_device, b_device, c_device}; + syclQueue->submit([&](handler& cgh) { + for (auto i = 0ul; i < 3; ++i) { + auto arg = buffs[i].get_access(cgh); + cgh.set_arg(i, arg); + } + cgh.set_arg(3, d); + auto syclKernel = reinterpret_cast(AxpyKernel); + cgh.parallel_for(range<1>{SIZE}, *syclKernel); + }); + } - // Validate the data - for(auto i = 0ul; i < SIZE; ++i) { - EXPECT_EQ(c[i], i + d*i); - } + // Validate the data + for(auto i = 0ul; i < SIZE; ++i) { + EXPECT_EQ(c[i], i + d*i); } } +} /* end of anonymous namespace */ + struct TestDPPLSyclProgramInterface : public ::testing::Test { const char *CLProgramStr = R"CLC( From 97921ce48470e36b4b9bc5fef4399d6fa32972e9 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Wed, 28 Oct 2020 18:29:34 -0500 Subject: [PATCH 08/15] Fix unused variable. --- backends/tests/test_sycl_usm_interface.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/backends/tests/test_sycl_usm_interface.cpp b/backends/tests/test_sycl_usm_interface.cpp index d07157029f..b28eb2ac75 100644 --- a/backends/tests/test_sycl_usm_interface.cpp +++ b/backends/tests/test_sycl_usm_interface.cpp @@ -75,7 +75,7 @@ common_test_body (size_t nbytes, const DPPLSyclUSMRef Ptr, DPPLDevice_Delete(Dev); DPPLContext_Delete(Ctx); } - + } // end of namespace struct TestDPPLSyclUSMInterface : public ::testing::Test @@ -94,7 +94,7 @@ TEST_F (TestDPPLSyclUSMInterface, MallocShared) GTEST_SKIP_("Skipping: No Sycl Devices.\n"); auto Q = DPPLQueueMgr_GetCurrentQueue(); - const size_t nbytes = 1024; + const size_t nbytes = SIZE; auto Ptr = DPPLmalloc_shared(nbytes, Q); EXPECT_TRUE(bool(Ptr)); @@ -110,12 +110,12 @@ TEST_F (TestDPPLSyclUSMInterface, MallocDevice) GTEST_SKIP_("Skipping: No Sycl Devices.\n"); auto Q = DPPLQueueMgr_GetCurrentQueue(); - const size_t nbytes = 1024; + const size_t nbytes = SIZE; auto Ptr = DPPLmalloc_device(nbytes, Q); EXPECT_TRUE(bool(Ptr)); - common_test_body(nbytes, Ptr, Q, "device"); + common_test_body(nbytes, Ptr, Q, "device"); DPPLfree_with_queue(Ptr, Q); DPPLQueue_Delete(Q); } @@ -126,7 +126,7 @@ TEST_F (TestDPPLSyclUSMInterface, MallocHost) GTEST_SKIP_("Skipping: No Sycl Devices.\n"); auto Q = DPPLQueueMgr_GetCurrentQueue(); - const size_t nbytes = 1024; + const size_t nbytes = SIZE; auto Ptr = DPPLmalloc_host(nbytes, Q); EXPECT_TRUE(bool(Ptr)); @@ -142,7 +142,7 @@ TEST_F (TestDPPLSyclUSMInterface, AlignedAllocShared) GTEST_SKIP_("Skipping: No Sycl Devices.\n"); auto Q = DPPLQueueMgr_GetCurrentQueue(); - const size_t nbytes = 1024; + const size_t nbytes = SIZE; auto Ptr = DPPLaligned_alloc_shared(64, nbytes, Q); EXPECT_TRUE(bool(Ptr)); @@ -158,7 +158,7 @@ TEST_F (TestDPPLSyclUSMInterface, AlignedAllocDevice) GTEST_SKIP_("Skipping: No Sycl Devices.\n"); auto Q = DPPLQueueMgr_GetCurrentQueue(); - const size_t nbytes = 1024; + const size_t nbytes = SIZE; auto Ptr = DPPLaligned_alloc_device(64, nbytes, Q); EXPECT_TRUE(bool(Ptr)); @@ -174,7 +174,7 @@ TEST_F (TestDPPLSyclUSMInterface, AlignedAllocHost) GTEST_SKIP_("Skipping: No Sycl Devices.\n"); auto Q = DPPLQueueMgr_GetCurrentQueue(); - const size_t nbytes = 1024; + const size_t nbytes = SIZE; auto Ptr = DPPLaligned_alloc_host(64, nbytes, Q); EXPECT_TRUE(bool(Ptr)); From 0f24e8f10c6d7675b9e17ca44150a7793b37d044 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Wed, 28 Oct 2020 22:24:05 -0500 Subject: [PATCH 09/15] fix warnings about comparing signed with unsigned --- backends/tests/test_sycl_program_interface.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backends/tests/test_sycl_program_interface.cpp b/backends/tests/test_sycl_program_interface.cpp index 8fc1b97eff..b2f22c0aca 100644 --- a/backends/tests/test_sycl_program_interface.cpp +++ b/backends/tests/test_sycl_program_interface.cpp @@ -40,7 +40,7 @@ using namespace cl::sycl; namespace { -const size_t SIZE = 1024; +const int SIZE = 1024; void add_kernel_checker (queue *syclQueue, DPPLSyclKernelRef AddKernel) { @@ -69,7 +69,7 @@ void add_kernel_checker (queue *syclQueue, DPPLSyclKernelRef AddKernel) } // Validate the data - for(auto i = 0ul; i < SIZE; ++i) { + for(int i = 0; i < SIZE; ++i) { EXPECT_EQ(c[i], i + i); } } @@ -102,7 +102,7 @@ void axpy_kernel_checker (queue *syclQueue, DPPLSyclKernelRef AxpyKernel) } // Validate the data - for(auto i = 0ul; i < SIZE; ++i) { + for(int i = 0; i < SIZE; ++i) { EXPECT_EQ(c[i], i + d*i); } } @@ -129,10 +129,10 @@ struct TestDPPLSyclProgramInterface : public ::testing::Test size_t nOpenCLGpuQ = 0; TestDPPLSyclProgramInterface () : - nOpenCLGpuQ(DPPLQueueMgr_GetNumQueues(DPPL_OPENCL, DPPL_GPU)), spirvFile{"./multi_kernel.spv", std::ios::binary | std::ios::ate}, spirvFileSize(std::filesystem::file_size("./multi_kernel.spv")), - spirvBuffer(spirvFileSize) + spirvBuffer(spirvFileSize), + nOpenCLGpuQ(DPPLQueueMgr_GetNumQueues(DPPL_OPENCL, DPPL_GPU)) { spirvFile.seekg(0, std::ios::beg); spirvFile.read(spirvBuffer.data(), spirvFileSize); From 5566cfb62e3cbcd330d260fd6373559d97eadd31 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Wed, 28 Oct 2020 23:45:21 -0500 Subject: [PATCH 10/15] Remove option not known to MSVC. --- backends/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backends/CMakeLists.txt b/backends/CMakeLists.txt index 1dc784016e..263a6d96c3 100644 --- a/backends/CMakeLists.txt +++ b/backends/CMakeLists.txt @@ -68,20 +68,18 @@ if(WIN32) message(STATUS "Resetting CXX compiler to: " ${CMAKE_CXX_COMPILER}) message(STATUS "Resetting C compiler to: " ${CMAKE_C_COMPILER}) message(STATUS "Resetting Linker to: " ${CMAKE_LINK}) - set(WARNING_FLAGS "-Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto") + set(WARNING_FLAGS "-Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS} -Qstd=c++17") set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${WARNING_FLAGS} -ggdb3 -DDEBUG") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${WARNING_FLAGS} -ggdb3 -DDEBUG -Qstd=c++17") elseif(UNIX) - set(SDL_FLAGS "-fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks") set(WARNING_FLAGS "-Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS} ${SDL_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS} ${SDL_FLAGS} -std=c++17 -fsycl") set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${WARNING_FLAGS} -ggdb3 -DDEBUG") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${WARNING_FLAGS} -ggdb3 -DDEBUG -std=c++17 -fsycl") - else() message(FATAL_ERROR "Unsupported system.") endif() From bb8a455ceb2e411d57e2a12fc28f881c1c961985 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Thu, 29 Oct 2020 00:32:19 -0500 Subject: [PATCH 11/15] Silence strncpy depracation warning on Windows. --- .../source/dppl_sycl_device_interface.cpp | 28 +++++++++++++++---- .../source/dppl_sycl_kernel_interface.cpp | 9 ++++-- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/backends/source/dppl_sycl_device_interface.cpp b/backends/source/dppl_sycl_device_interface.cpp index 8c14bfd38e..5aca623418 100644 --- a/backends/source/dppl_sycl_device_interface.cpp +++ b/backends/source/dppl_sycl_device_interface.cpp @@ -28,6 +28,7 @@ #include "Support/CBindingWrapping.h" #include #include +#include #include /* SYCL headers */ using namespace cl::sycl; @@ -220,8 +221,13 @@ DPPLDevice_GetName (__dppl_keep const DPPLSyclDeviceRef DRef) auto D = unwrap(DRef); if (D) { auto name = D->get_info(); - auto cstr_name = new char [name.length()+1]; - std::strcpy (cstr_name, name.c_str()); + auto cstr_len = name.length()+1; + auto cstr_name = new char[cstr_len]; +#ifdef _WIN32 + strncpy_s(cstr_name, cstr_len, name.c_str(), cstr_len); +#else + std::strncpy(cstr_name, name.c_str(), cstr_len); +#endif return cstr_name; } return nullptr; @@ -233,8 +239,13 @@ DPPLDevice_GetVendorName (__dppl_keep const DPPLSyclDeviceRef DRef) auto D = unwrap(DRef); if (D) { auto vendor = D->get_info(); - auto cstr_vendor = new char [vendor.length()+1]; - std::strcpy (cstr_vendor, vendor.c_str()); + auto cstr_len = vendor.length()+1; + auto cstr_vendor = new char[cstr_len]; +#ifdef _WIN32 + strncpy_s(cstr_vendor, cstr_len, vendor.c_str(), cstr_len); +#else + std::strncpy(cstr_vendor, vendor.c_str(), cstr_len); +#endif return cstr_vendor; } return nullptr; @@ -246,8 +257,13 @@ DPPLDevice_GetDriverInfo (__dppl_keep const DPPLSyclDeviceRef DRef) auto D = unwrap(DRef); if (D) { auto driver = D->get_info(); - auto cstr_driver = new char [driver.length()+1]; - std::strcpy (cstr_driver, driver.c_str()); + auto cstr_len = driver.length()+1; + auto cstr_driver = new char[cstr_len]; +#ifdef _WIN32 + strncpy_s(cstr_driver, cstr_len, driver.c_str(), cstr_len); +#else + std::strncpy(cstr_driver, driver.c_str(), cstr_len); +#endif return cstr_driver; } return nullptr; diff --git a/backends/source/dppl_sycl_kernel_interface.cpp b/backends/source/dppl_sycl_kernel_interface.cpp index e030974bc3..152cf59197 100644 --- a/backends/source/dppl_sycl_kernel_interface.cpp +++ b/backends/source/dppl_sycl_kernel_interface.cpp @@ -50,8 +50,13 @@ DPPLKernel_GetFunctionName (__dppl_keep const DPPLSyclKernelRef Kernel) auto kernel_name = SyclKernel->get_info(); if(kernel_name.empty()) return nullptr; - auto cstr_name = new char [kernel_name.length()+1]; - std::strcpy (cstr_name, kernel_name.c_str()); + auto cstr_len = kernel_name.length()+1; + auto cstr_name = new char[cstr_len]; +#ifdef _WIN32 + strncpy_s(cstr_name, cstr_len, kernel_name.c_str(), cstr_len); +#else + std::strncpy (cstr_name, kernel_name.c_str(), cstr_len); +#endif return cstr_name; } From 6ee862340e7a91c8a5537ea8b3789ca1d44ecf32 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Thu, 29 Oct 2020 08:58:11 -0500 Subject: [PATCH 12/15] Suppress tp_print deprecation warning flood on Linux. --- setup.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 52d17cfc9c..02317ab108 100644 --- a/setup.py +++ b/setup.py @@ -88,6 +88,17 @@ def get_other_cxxflags(): return ["/Ox", "/std:c++17"] +def get_suppressed_warning_flags(): + if IS_LIN: + # PEP 590 renamed "tp_print" to "tp_vectorcall" and this causes a flood + # of deprecation warnings in the Cython generated module. This flag + # temporarily suppresses the warnings. The flag should not be needed + # once we move to Python 3.9 and/or Cython 0.30. + return ["-Wno-deprecated-declarations"] + elif IS_WIN: + return [] + + def extensions(): # Security flags eca = get_sdl_cflags() @@ -119,7 +130,8 @@ def extensions(): dppl_sycl_interface_include, ], "include_dirs": [np.get_include(), dppl_sycl_interface_include], - "extra_compile_args": eca + get_other_cxxflags(), + "extra_compile_args": eca + get_other_cxxflags() + + get_suppressed_warning_flags(), "extra_link_args": ela, "libraries": libs, "library_dirs": librarys, From 6bcaf0d18d0045eb4a7678cf33149a5ee4d9dc15 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Thu, 29 Oct 2020 09:00:51 -0500 Subject: [PATCH 13/15] make black happy. --- setup.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/setup.py b/setup.py index 02317ab108..28d280226b 100644 --- a/setup.py +++ b/setup.py @@ -126,12 +126,11 @@ def extensions(): runtime_library_dirs = [] extension_args = { - "depends": [ - dppl_sycl_interface_include, - ], + "depends": [dppl_sycl_interface_include,], "include_dirs": [np.get_include(), dppl_sycl_interface_include], - "extra_compile_args": eca + get_other_cxxflags() + - get_suppressed_warning_flags(), + "extra_compile_args": eca + + get_other_cxxflags() + + get_suppressed_warning_flags(), "extra_link_args": ela, "libraries": libs, "library_dirs": librarys, @@ -142,16 +141,12 @@ def extensions(): extensions = [ Extension( "dpctl._sycl_core", - [ - os.path.join("dpctl", "_sycl_core.pyx"), - ], + [os.path.join("dpctl", "_sycl_core.pyx"),], **extension_args ), Extension( "dpctl.memory._memory", - [ - os.path.join("dpctl", "memory", "_memory.pyx"), - ], + [os.path.join("dpctl", "memory", "_memory.pyx"),], **extension_args ), ] From a9e774ad00345f35268506d300e90e95dd950fe9 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Thu, 29 Oct 2020 09:05:07 -0500 Subject: [PATCH 14/15] make black happy. Take 2! --- setup.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 28d280226b..ba9fbd0f21 100644 --- a/setup.py +++ b/setup.py @@ -126,7 +126,9 @@ def extensions(): runtime_library_dirs = [] extension_args = { - "depends": [dppl_sycl_interface_include,], + "depends": [ + dppl_sycl_interface_include, + ], "include_dirs": [np.get_include(), dppl_sycl_interface_include], "extra_compile_args": eca + get_other_cxxflags() @@ -141,12 +143,16 @@ def extensions(): extensions = [ Extension( "dpctl._sycl_core", - [os.path.join("dpctl", "_sycl_core.pyx"),], + [ + os.path.join("dpctl", "_sycl_core.pyx"), + ], **extension_args ), Extension( "dpctl.memory._memory", - [os.path.join("dpctl", "memory", "_memory.pyx"),], + [ + os.path.join("dpctl", "memory", "_memory.pyx"), + ], **extension_args ), ] From 5ca0fab20078325a9c95a96942037ca5c4bd4f6b Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Thu, 29 Oct 2020 09:20:33 -0500 Subject: [PATCH 15/15] Update changelog. --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f57941c65..24813e479d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ All notable changes to this project will be documented in this file. - Device descriptors "max_compute_units", "max_work_item_dimensions", "max_work_item_sizes", "max_work_group_size", "max_num_sub_groups" and "aspects" for int64 atomics inside dpctl C API and inside the dpctl.SyclDevice class. - MemoryUSM* classes moved to `dpctl.memory` module, added support for aligned allocation, added support for `prefetch` and `mem_advise` (sychronous) methods, implemented `copy_to_host`, `copy_from_host` and `copy_from_device` methods, pickling support, and zero-copy interoperability with Python objects which implement `__sycl_usm_array_inerface__` protocol. +### Fixed +- Compiler warnings when building libDPPLSyclInterface and the Cython extensions. + ### Removed - The Legacy OpenCL interface.