From 46b450a165dbb439ef28f6ca25bba54b3bb3e820 Mon Sep 17 00:00:00 2001 From: Finlay Marno Date: Mon, 27 Mar 2023 17:18:20 +0100 Subject: [PATCH] format with clang-format-10 --- src/dft/backends/cufft/backward.cpp | 4 ++-- src/dft/backends/cufft/forward.cpp | 4 ++-- tests/unit_tests/dft/include/compute_inplace.hpp | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/dft/backends/cufft/backward.cpp b/src/dft/backends/cufft/backward.cpp index ac4c49f78..331869211 100644 --- a/src/dft/backends/cufft/backward.cpp +++ b/src/dft/backends/cufft/backward.cpp @@ -116,7 +116,7 @@ ONEMKL_EXPORT sycl::event compute_backward(descriptor_type &desc, data_type *ino auto plan = static_cast(commit->get_handle())[1]; return queue.submit([&](sycl::handler &cgh) { - cgh.depends_on(dependencies); + cgh.depends_on(dependencies); cgh.host_task([=](sycl::interop_handle ih) { const std::string func_name = "compute_backward(desc, inout, dependencies)"; @@ -148,7 +148,7 @@ ONEMKL_EXPORT sycl::event compute_backward(descriptor_type &desc, input_type *in auto plan = static_cast(commit->get_handle())[1]; return queue.submit([&](sycl::handler &cgh) { - cgh.depends_on(dependencies); + cgh.depends_on(dependencies); cgh.host_task([=](sycl::interop_handle ih) { const std::string func_name = "compute_backward(desc, in, out, dependencies)"; diff --git a/src/dft/backends/cufft/forward.cpp b/src/dft/backends/cufft/forward.cpp index 615ab8665..1861ba3b1 100644 --- a/src/dft/backends/cufft/forward.cpp +++ b/src/dft/backends/cufft/forward.cpp @@ -118,7 +118,7 @@ ONEMKL_EXPORT sycl::event compute_forward(descriptor_type &desc, data_type *inou auto plan = static_cast(commit->get_handle())[0]; return queue.submit([&](sycl::handler &cgh) { - cgh.depends_on(dependencies); + cgh.depends_on(dependencies); cgh.host_task([=](sycl::interop_handle ih) { const std::string func_name = "compute_forward(desc, inout, dependencies)"; @@ -150,7 +150,7 @@ ONEMKL_EXPORT sycl::event compute_forward(descriptor_type &desc, input_type *in, auto plan = static_cast(commit->get_handle())[0]; return queue.submit([&](sycl::handler &cgh) { - cgh.depends_on(dependencies); + cgh.depends_on(dependencies); cgh.host_task([=](sycl::interop_handle ih) { const std::string func_name = "compute_forward(desc, in, out, dependencies)"; diff --git a/tests/unit_tests/dft/include/compute_inplace.hpp b/tests/unit_tests/dft/include/compute_inplace.hpp index 32dab3416..69775347b 100644 --- a/tests/unit_tests/dft/include/compute_inplace.hpp +++ b/tests/unit_tests/dft/include/compute_inplace.hpp @@ -226,8 +226,9 @@ int DFT_Test::test_in_place_USM() { try { std::vector dependencies; - oneapi::mkl::dft::compute_forward( - descriptor, inout.data(), dependencies).wait_and_throw(); + oneapi::mkl::dft::compute_forward(descriptor, inout.data(), + dependencies) + .wait_and_throw(); } catch (oneapi::mkl::unimplemented& e) { std::cout << "Skipping test because: \"" << e.what() << "\"" << std::endl;