diff --git a/src/blas/backends/cublas/cublas_scope_handle.cpp b/src/blas/backends/cublas/cublas_scope_handle.cpp index 05d1c1935..168e339ad 100644 --- a/src/blas/backends/cublas/cublas_scope_handle.cpp +++ b/src/blas/backends/cublas/cublas_scope_handle.cpp @@ -35,8 +35,8 @@ namespace cublas { * takes place if no other element in the container has a key equivalent to * the one being emplaced (keys in a map container are unique). */ -thread_local cublas_handle CublasScopedContextHandler::handle_helper = - cublas_handle{}; +thread_local cublas_handle CublasScopedContextHandler::handle_helper = + cublas_handle{}; CublasScopedContextHandler::CublasScopedContextHandler(sycl::queue queue, sycl::interop_handle &ih) : ih(ih), @@ -92,7 +92,7 @@ cublasHandle_t CublasScopedContextHandler::get_handle(const sycl::queue &queue) CUresult cuErr; CUcontext desired; CUDA_ERROR_FUNC(cuDevicePrimaryCtxRetain, cuErr, &desired, cudaDevice); - auto piPlacedContext_ = reinterpret_cast(desired); + auto piPlacedContext_ = reinterpret_cast(desired); CUstream streamId = get_stream(queue); cublasStatus_t err; auto it = handle_helper.cublas_handle_mapper_.find(piPlacedContext_); diff --git a/src/blas/backends/cublas/cublas_scope_handle.hpp b/src/blas/backends/cublas/cublas_scope_handle.hpp index 7648130be..3f19536d7 100644 --- a/src/blas/backends/cublas/cublas_scope_handle.hpp +++ b/src/blas/backends/cublas/cublas_scope_handle.hpp @@ -28,11 +28,11 @@ #include #endif #include -#include +#include #else #include #include -#include +#include #endif #include #include @@ -77,7 +77,7 @@ class CublasScopedContextHandler { sycl::context *placedContext_; bool needToRecover_; sycl::interop_handle &ih; - static thread_local cublas_handle handle_helper; + static thread_local cublas_handle handle_helper; CUstream get_stream(const sycl::queue &queue); sycl::context get_context(const sycl::queue &queue); diff --git a/src/blas/backends/cublas/cublas_task.hpp b/src/blas/backends/cublas/cublas_task.hpp index e5cf0d7c2..010d1bf9a 100644 --- a/src/blas/backends/cublas/cublas_task.hpp +++ b/src/blas/backends/cublas/cublas_task.hpp @@ -32,10 +32,10 @@ #include "oneapi/mkl/types.hpp" #ifndef __HIPSYCL__ #include "cublas_scope_handle.hpp" -#if __has_include() -#include +#if __has_include() +#include #else -#include +#include #endif #else #include "cublas_scope_handle_hipsycl.hpp" diff --git a/src/blas/backends/rocblas/rocblas_scope_handle.cpp b/src/blas/backends/rocblas/rocblas_scope_handle.cpp index 404d1fc06..2dc5fd765 100644 --- a/src/blas/backends/rocblas/rocblas_scope_handle.cpp +++ b/src/blas/backends/rocblas/rocblas_scope_handle.cpp @@ -50,8 +50,8 @@ rocblas_handle_container::~rocblas_handle_container() noexcept(false) { * takes place if no other element in the container has a key equivalent to * the one being emplaced (keys in a map container are unique). */ -thread_local rocblas_handle_container RocblasScopedContextHandler::handle_helper = - rocblas_handle_container{}; +thread_local rocblas_handle_container RocblasScopedContextHandler::handle_helper = + rocblas_handle_container{}; RocblasScopedContextHandler::RocblasScopedContextHandler(sycl::queue queue, sycl::interop_handle &ih) @@ -108,7 +108,7 @@ rocblas_handle RocblasScopedContextHandler::get_handle(const sycl::queue &queue) hipError_t hipErr; hipCtx_t desired; HIP_ERROR_FUNC(hipDevicePrimaryCtxRetain, hipErr, &desired, hipDevice); - auto piPlacedContext_ = reinterpret_cast(desired); + auto piPlacedContext_ = reinterpret_cast(desired); hipStream_t streamId = get_stream(queue); rocblas_status err; auto it = handle_helper.rocblas_handle_container_mapper_.find(piPlacedContext_); diff --git a/src/blas/backends/rocblas/rocblas_scope_handle.hpp b/src/blas/backends/rocblas/rocblas_scope_handle.hpp index 908d4c05c..d637d0905 100644 --- a/src/blas/backends/rocblas/rocblas_scope_handle.hpp +++ b/src/blas/backends/rocblas/rocblas_scope_handle.hpp @@ -43,7 +43,7 @@ class RocblasScopedContextHandler { sycl::context *placedContext_; bool needToRecover_; sycl::interop_handle &interop_h; - static thread_local rocblas_handle_container handle_helper; + static thread_local rocblas_handle_container handle_helper; sycl::context get_context(const sycl::queue &queue); hipStream_t get_stream(const sycl::queue &queue); diff --git a/src/blas/backends/rocblas/rocblas_task.hpp b/src/blas/backends/rocblas/rocblas_task.hpp index 94e2b2b4a..3606f58dd 100644 --- a/src/blas/backends/rocblas/rocblas_task.hpp +++ b/src/blas/backends/rocblas/rocblas_task.hpp @@ -30,10 +30,10 @@ #include "oneapi/mkl/types.hpp" #ifndef __HIPSYCL__ #include "rocblas_scope_handle.hpp" -#if __has_include() -#include +#if __has_include() +#include #else -#include +#include #endif #else #include "rocblas_scope_handle_hipsycl.hpp" diff --git a/src/lapack/backends/cusolver/cusolver_scope_handle.cpp b/src/lapack/backends/cusolver/cusolver_scope_handle.cpp index 0bc3ebdb0..4855608cd 100644 --- a/src/lapack/backends/cusolver/cusolver_scope_handle.cpp +++ b/src/lapack/backends/cusolver/cusolver_scope_handle.cpp @@ -35,8 +35,8 @@ namespace cusolver { * takes place if no other element in the container has a key equivalent to * the one being emplaced (keys in a map container are unique). */ -thread_local cusolver_handle CusolverScopedContextHandler::handle_helper = - cusolver_handle{}; +thread_local cusolver_handle CusolverScopedContextHandler::handle_helper = + cusolver_handle{}; CusolverScopedContextHandler::CusolverScopedContextHandler(sycl::queue queue, sycl::interop_handle &ih) @@ -93,7 +93,7 @@ cusolverDnHandle_t CusolverScopedContextHandler::get_handle(const sycl::queue &q CUresult cuErr; CUcontext desired; CUDA_ERROR_FUNC(cuDevicePrimaryCtxRetain, cuErr, &desired, cudaDevice); - auto piPlacedContext_ = reinterpret_cast(desired); + auto piPlacedContext_ = reinterpret_cast(desired); CUstream streamId = get_stream(queue); cusolverStatus_t err; auto it = handle_helper.cusolver_handle_mapper_.find(piPlacedContext_); diff --git a/src/lapack/backends/cusolver/cusolver_scope_handle.hpp b/src/lapack/backends/cusolver/cusolver_scope_handle.hpp index 585b4995a..04a07e54f 100644 --- a/src/lapack/backends/cusolver/cusolver_scope_handle.hpp +++ b/src/lapack/backends/cusolver/cusolver_scope_handle.hpp @@ -28,11 +28,11 @@ #include #endif #include -#include +#include #else #include #include -#include +#include #endif #include #include @@ -82,7 +82,7 @@ class CusolverScopedContextHandler { sycl::context *placedContext_; bool needToRecover_; sycl::interop_handle &ih; - static thread_local cusolver_handle handle_helper; + static thread_local cusolver_handle handle_helper; CUstream get_stream(const sycl::queue &queue); sycl::context get_context(const sycl::queue &queue); diff --git a/src/lapack/backends/cusolver/cusolver_task.hpp b/src/lapack/backends/cusolver/cusolver_task.hpp index 9d319be64..a701cd825 100644 --- a/src/lapack/backends/cusolver/cusolver_task.hpp +++ b/src/lapack/backends/cusolver/cusolver_task.hpp @@ -30,10 +30,10 @@ #endif #include "oneapi/mkl/types.hpp" #include "cusolver_scope_handle.hpp" -#if __has_include() -#include +#if __has_include() +#include #else -#include +#include #endif namespace oneapi { namespace mkl { diff --git a/src/lapack/backends/rocsolver/rocsolver_scope_handle.cpp b/src/lapack/backends/rocsolver/rocsolver_scope_handle.cpp index 42e262e7b..6348d042c 100644 --- a/src/lapack/backends/rocsolver/rocsolver_scope_handle.cpp +++ b/src/lapack/backends/rocsolver/rocsolver_scope_handle.cpp @@ -37,8 +37,8 @@ namespace rocsolver { * takes place if no other element in the container has a key equivalent to * the one being emplaced (keys in a map container are unique). */ -thread_local rocsolver_handle RocsolverScopedContextHandler::handle_helper = - rocsolver_handle{}; +thread_local rocsolver_handle RocsolverScopedContextHandler::handle_helper = + rocsolver_handle{}; RocsolverScopedContextHandler::RocsolverScopedContextHandler(sycl::queue queue, sycl::interop_handle &ih) @@ -95,7 +95,7 @@ rocblas_handle RocsolverScopedContextHandler::get_handle(const sycl::queue &queu hipError_t hipErr; hipCtx_t desired; HIP_ERROR_FUNC(hipDevicePrimaryCtxRetain, hipErr, &desired, hipDevice); - auto piPlacedContext_ = reinterpret_cast(desired); + auto piPlacedContext_ = reinterpret_cast(desired); hipStream_t streamId = get_stream(queue); rocblas_status err; auto it = handle_helper.rocsolver_handle_mapper_.find(piPlacedContext_); diff --git a/src/lapack/backends/rocsolver/rocsolver_scope_handle.hpp b/src/lapack/backends/rocsolver/rocsolver_scope_handle.hpp index 9f1bc068a..acabceabf 100644 --- a/src/lapack/backends/rocsolver/rocsolver_scope_handle.hpp +++ b/src/lapack/backends/rocsolver/rocsolver_scope_handle.hpp @@ -43,7 +43,7 @@ class RocsolverScopedContextHandler { sycl::context *placedContext_; bool needToRecover_; sycl::interop_handle &ih; - static thread_local rocsolver_handle handle_helper; + static thread_local rocsolver_handle handle_helper; hipStream_t get_stream(const sycl::queue &queue); sycl::context get_context(const sycl::queue &queue); diff --git a/src/lapack/backends/rocsolver/rocsolver_task.hpp b/src/lapack/backends/rocsolver/rocsolver_task.hpp index 08f8e5cea..ce36d1aad 100644 --- a/src/lapack/backends/rocsolver/rocsolver_task.hpp +++ b/src/lapack/backends/rocsolver/rocsolver_task.hpp @@ -32,10 +32,10 @@ #endif #include "oneapi/mkl/types.hpp" #include "rocsolver_scope_handle.hpp" -#if __has_include() -#include +#if __has_include() +#include #else -#include +#include #endif namespace oneapi {