diff --git a/math/common/include/algebra/math/common.hpp b/math/common/include/algebra/math/common.hpp index aa1635ed..e94c66c9 100644 --- a/math/common/include/algebra/math/common.hpp +++ b/math/common/include/algebra/math/common.hpp @@ -12,7 +12,7 @@ // SYCL include(s). #if defined(CL_SYCL_LANGUAGE_VERSION) || defined(SYCL_LANGUAGE_VERSION) -#include +#include #endif // System include(s). @@ -22,7 +22,7 @@ namespace algebra::math { /// Namespace to pick up math functions from #if defined(CL_SYCL_LANGUAGE_VERSION) || defined(SYCL_LANGUAGE_VERSION) -namespace math_ns = cl::sycl; +namespace math_ns = ::sycl; #else namespace math_ns = std; #endif // SYCL diff --git a/tests/accelerator/sycl/common/execute_sycl_test.hpp b/tests/accelerator/sycl/common/execute_sycl_test.hpp index cb9e1331..ae66fa13 100644 --- a/tests/accelerator/sycl/common/execute_sycl_test.hpp +++ b/tests/accelerator/sycl/common/execute_sycl_test.hpp @@ -1,6 +1,6 @@ /** Algebra plugins library, part of the ACTS project * - * (c) 2020-2022 CERN for the benefit of the ACTS project + * (c) 2020-2024 CERN for the benefit of the ACTS project * * Mozilla Public License Version 2.0 */ @@ -8,14 +8,14 @@ #pragma once // SYCL include(s). -#include +#include // System include(s). #include /// Execute a test functor using SYCL, on @c arraySizes threads template -void execute_sycl_test(cl::sycl::queue& queue, std::size_t arraySizes, +void execute_sycl_test(::sycl::queue& queue, std::size_t arraySizes, ARGS... args) { // Submit a kernel that would run the specified functor. @@ -25,17 +25,16 @@ void execute_sycl_test(cl::sycl::queue& queue, std::size_t arraySizes, // Unfortunately the FUNCTOR class is too complicated, and DPC++ dies // on it. While providing a unique simple class for every template // specialisation is also pretty impossible. :-( - h.parallel_for(cl::sycl::range<1>(arraySizes), - [=](cl::sycl::item<1> id) { - // Find the current index that we need to - // process. - const std::size_t i = id[0]; - if (i >= arraySizes) { - return; - } - // Execute the test functor for this index. - FUNCTOR()(i, args...); - }); + h.parallel_for(::sycl::range<1>(arraySizes), [=](::sycl::item<1> id) { + // Find the current index that we need to + // process. + const std::size_t i = id[0]; + if (i >= arraySizes) { + return; + } + // Execute the test functor for this index. + FUNCTOR()(i, args...); + }); }) .wait_and_throw(); } diff --git a/tests/accelerator/sycl/common/test_sycl_basics.hpp b/tests/accelerator/sycl/common/test_sycl_basics.hpp index 630185f2..fb80b64a 100644 --- a/tests/accelerator/sycl/common/test_sycl_basics.hpp +++ b/tests/accelerator/sycl/common/test_sycl_basics.hpp @@ -1,6 +1,6 @@ /** Algebra plugins library, part of the ACTS project * - * (c) 2020-2023 CERN for the benefit of the ACTS project + * (c) 2020-2024 CERN for the benefit of the ACTS project * * Mozilla Public License Version 2.0 */ @@ -21,7 +21,7 @@ #include // SYCL include(s). -#include +#include /// Test case class, to be specialised for the different plugins template @@ -33,7 +33,7 @@ class test_sycl_basics : public test_basics_base { protected: /// Queue to be used by all of the tests. - cl::sycl::queue m_queue; + ::sycl::queue m_queue; /// Memory resource for all of the tests. vecmem::sycl::shared_memory_resource m_resource{&m_queue}; }; @@ -45,7 +45,7 @@ TYPED_TEST_P(test_sycl_basics, vector_2d_ops) { // Don't run the test at double precision, if the SYCL device doesn't // support it. if ((typeid(typename TypeParam::scalar) == typeid(double)) && - (this->m_queue.get_device().has(cl::sycl::aspect::fp64) == false)) { + (this->m_queue.get_device().has(::sycl::aspect::fp64) == false)) { GTEST_SKIP(); } @@ -69,7 +69,7 @@ TYPED_TEST_P(test_sycl_basics, vector_3d_ops) { // Don't run the test at double precision, if the SYCL device doesn't // support it. if ((typeid(typename TypeParam::scalar) == typeid(double)) && - (this->m_queue.get_device().has(cl::sycl::aspect::fp64) == false)) { + (this->m_queue.get_device().has(::sycl::aspect::fp64) == false)) { GTEST_SKIP(); } @@ -101,7 +101,7 @@ TYPED_TEST_P(test_sycl_basics, matrix64_ops) { // Don't run the test at double precision, if the SYCL device doesn't // support it. if ((typeid(typename TypeParam::scalar) == typeid(double)) && - (this->m_queue.get_device().has(cl::sycl::aspect::fp64) == false)) { + (this->m_queue.get_device().has(::sycl::aspect::fp64) == false)) { GTEST_SKIP(); } @@ -123,7 +123,7 @@ TYPED_TEST_P(test_sycl_basics, matrix22_ops) { // Don't run the test at double precision, if the SYCL device doesn't // support it. if ((typeid(typename TypeParam::scalar) == typeid(double)) && - (this->m_queue.get_device().has(cl::sycl::aspect::fp64) == false)) { + (this->m_queue.get_device().has(::sycl::aspect::fp64) == false)) { GTEST_SKIP(); } @@ -145,7 +145,7 @@ TYPED_TEST_P(test_sycl_basics, transform3) { // Don't run the test at double precision, if the SYCL device doesn't // support it. if ((typeid(typename TypeParam::scalar) == typeid(double)) && - (this->m_queue.get_device().has(cl::sycl::aspect::fp64) == false)) { + (this->m_queue.get_device().has(::sycl::aspect::fp64) == false)) { GTEST_SKIP(); }