Skip to content

Commit

Permalink
format with clang-format-10
Browse files Browse the repository at this point in the history
  • Loading branch information
FMarno committed Mar 29, 2023
1 parent 3cf0577 commit 46b450a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/dft/backends/cufft/backward.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ ONEMKL_EXPORT sycl::event compute_backward(descriptor_type &desc, data_type *ino
auto plan = static_cast<cufftHandle *>(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)";
Expand Down Expand Up @@ -148,7 +148,7 @@ ONEMKL_EXPORT sycl::event compute_backward(descriptor_type &desc, input_type *in
auto plan = static_cast<cufftHandle *>(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)";
Expand Down
4 changes: 2 additions & 2 deletions src/dft/backends/cufft/forward.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ ONEMKL_EXPORT sycl::event compute_forward(descriptor_type &desc, data_type *inou
auto plan = static_cast<cufftHandle *>(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)";
Expand Down Expand Up @@ -150,7 +150,7 @@ ONEMKL_EXPORT sycl::event compute_forward(descriptor_type &desc, input_type *in,
auto plan = static_cast<cufftHandle *>(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)";
Expand Down
5 changes: 3 additions & 2 deletions tests/unit_tests/dft/include/compute_inplace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,9 @@ int DFT_Test<precision, domain>::test_in_place_USM() {

try {
std::vector<sycl::event> dependencies;
oneapi::mkl::dft::compute_forward<descriptor_t, FwdInputType>(
descriptor, inout.data(), dependencies).wait_and_throw();
oneapi::mkl::dft::compute_forward<descriptor_t, FwdInputType>(descriptor, inout.data(),
dependencies)
.wait_and_throw();
}
catch (oneapi::mkl::unimplemented& e) {
std::cout << "Skipping test because: \"" << e.what() << "\"" << std::endl;
Expand Down

0 comments on commit 46b450a

Please sign in to comment.