diff --git a/include/oneapi/mkl/dft/detail/commit_impl.hpp b/include/oneapi/mkl/dft/detail/commit_impl.hpp index 9d983ac1a..7b141a90e 100644 --- a/include/oneapi/mkl/dft/detail/commit_impl.hpp +++ b/include/oneapi/mkl/dft/detail/commit_impl.hpp @@ -40,7 +40,7 @@ class dft_values; template class commit_impl { public: - commit_impl(sycl::queue queue, mkl::backend backend) : backend_(backend), queue_(queue) {} + commit_impl(sycl::queue queue, mkl::backend backend) : queue_(queue), backend_(backend) {} // rule of three commit_impl(const commit_impl& other) = delete; diff --git a/tests/unit_tests/dft/include/compute_inplace.hpp b/tests/unit_tests/dft/include/compute_inplace.hpp index 4a3370067..48dd96b62 100644 --- a/tests/unit_tests/dft/include/compute_inplace.hpp +++ b/tests/unit_tests/dft/include/compute_inplace.hpp @@ -167,7 +167,8 @@ int DFT_Test::test_in_place_buffer() { } // account for scaling that occurs during DFT - std::for_each(input.begin(), input.end(), [this](auto& x) { x *= forward_elements; }); + std::for_each(input.begin(), input.end(), + [this](auto& x) { x *= static_cast(forward_elements); }); if constexpr (domain == oneapi::mkl::dft::domain::REAL) { for (std::size_t j = 0; j < real_first_dims; j++) { EXPECT_TRUE(check_equal_vector( @@ -270,7 +271,8 @@ int DFT_Test::test_in_place_USM() { return test_skipped; } - std::for_each(input.begin(), input.end(), [this](auto& x) { x *= forward_elements; }); + std::for_each(input.begin(), input.end(), + [this](auto& x) { x *= static_cast(forward_elements); }); if constexpr (domain == oneapi::mkl::dft::domain::REAL) { for (std::size_t j = 0; j < real_first_dims; j++) { diff --git a/tests/unit_tests/dft/include/compute_out_of_place.hpp b/tests/unit_tests/dft/include/compute_out_of_place.hpp index 32adc26ed..11dfe7483 100644 --- a/tests/unit_tests/dft/include/compute_out_of_place.hpp +++ b/tests/unit_tests/dft/include/compute_out_of_place.hpp @@ -109,7 +109,8 @@ int DFT_Test::test_out_of_place_buffer() { } // account for scaling that occurs during DFT - std::for_each(input.begin(), input.end(), [this](auto &x) { x *= forward_elements; }); + std::for_each(input.begin(), input.end(), + [this](auto &x) { x *= static_cast(forward_elements); }); EXPECT_TRUE(check_equal_vector(fwd_data.data(), input.data(), input.size(), abs_error_margin, rel_error_margin, std::cout)); @@ -192,7 +193,8 @@ int DFT_Test::test_out_of_place_USM() { } // account for scaling that occurs during DFT - std::for_each(input.begin(), input.end(), [this](auto &x) { x *= forward_elements; }); + std::for_each(input.begin(), input.end(), + [this](auto &x) { x *= static_cast(forward_elements); }); EXPECT_TRUE(check_equal_vector(fwd.data(), input.data(), input.size(), abs_error_margin, rel_error_margin, std::cout)); diff --git a/tests/unit_tests/dft/source/descriptor_tests.cpp b/tests/unit_tests/dft/source/descriptor_tests.cpp index 0d587fd60..54ccf38f2 100644 --- a/tests/unit_tests/dft/source/descriptor_tests.cpp +++ b/tests/unit_tests/dft/source/descriptor_tests.cpp @@ -443,8 +443,8 @@ inline void recommit_values(sycl::queue& sycl_queue) { std::make_pair(config_param::TRANSPOSE, bool{ false }), std::make_pair(config_param::PACKED_FORMAT, config_value::CCE_FORMAT) }, { std::make_pair(config_param::LENGTHS, std::int64_t{ 10 }), - std::make_pair(config_param::FORWARD_SCALE, PrecisionType( 1.2 )), - std::make_pair(config_param::BACKWARD_SCALE, PrecisionType( 3.4 )) } + std::make_pair(config_param::FORWARD_SCALE, PrecisionType(1.2)), + std::make_pair(config_param::BACKWARD_SCALE, PrecisionType(3.4)) } }; for (std::size_t i = 0; i < argument_groups.size(); i += 1) {