aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar Mehdi Goli <mehdi.goli@codeplay.com>2017-05-26 16:01:48 +0100
committerGravatar Mehdi Goli <mehdi.goli@codeplay.com>2017-05-26 16:01:48 +0100
commit0370d3576e1df4f898b9030fbc269ec0488d3969 (patch)
tree2b713e7d5f72b5c1e3357a6b3448255d78bc5a0f /unsupported
parente3f964ed55a96d0c94814d07ab88d8805e0c2eec (diff)
Applying Ronnan's comments.
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h
index 27c10a0cf..09c96317e 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h
@@ -14,22 +14,22 @@
#if defined(EIGEN_USE_SYCL) && !defined(EIGEN_CXX11_TENSOR_TENSOR_DEVICE_SYCL_H)
#define EIGEN_CXX11_TENSOR_TENSOR_DEVICE_SYCL_H
-template<size_t Align> struct CheckAlignStatically{
+template<size_t Align> struct CheckAlignStatically {
static const bool Val= (((Align&(Align-1))==0) && (Align >= sizeof(void *)));
};
template <bool IsAligned, size_t Align>
-struct Conditional_Allocate{
+struct Conditional_Allocate {
-EIGEN_ALWAYS_INLINE static void* conditional_allocate(std::size_t elements){
- return aligned_alloc(Align, elements);
-}
+ EIGEN_ALWAYS_INLINE static void* conditional_allocate(std::size_t elements) {
+ return aligned_alloc(Align, elements);
+ }
};
template <size_t Align>
-struct Conditional_Allocate<false, Align>{
+struct Conditional_Allocate<false, Align> {
-EIGEN_ALWAYS_INLINE static void* conditional_allocate(std::size_t elements){
- return malloc(elements);
-}
+ EIGEN_ALWAYS_INLINE static void* conditional_allocate(std::size_t elements){
+ return malloc(elements);
+ }
};
template <typename Scalar, size_t Align = EIGEN_MAX_ALIGN_BYTES, class Allocator = std::allocator<Scalar>>
struct SyclAllocator {
@@ -551,4 +551,4 @@ struct SyclKernelDevice:DefaultDevice{};
} // end namespace Eigen
-#endif // EIGEN_CXX11_TENSOR_TENSOR_DEVICE_SYCL_H \ No newline at end of file
+#endif // EIGEN_CXX11_TENSOR_TENSOR_DEVICE_SYCL_H