cxx11_tensor_device_sycl.cpp
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2016
5 // Mehdi Goli Codeplay Software Ltd.
6 // Ralph Potter Codeplay Software Ltd.
7 // Luke Iwanski Codeplay Software Ltd.
8 // Contact: <eigen@codeplay.com>
9 //
10 // This Source Code Form is subject to the terms of the Mozilla
11 // Public License v. 2.0. If a copy of the MPL was not distributed
12 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
13 
14 #define EIGEN_TEST_NO_LONGDOUBLE
15 #define EIGEN_TEST_NO_COMPLEX
16 #define EIGEN_TEST_FUNC cxx11_tensor_device_sycl
17 #define EIGEN_DEFAULT_DENSE_INDEX_TYPE int
18 #define EIGEN_USE_SYCL
19 
20 #include "main.h"
21 #include <unsupported/Eigen/CXX11/Tensor>
22 
23 void test_device_sycl(const Eigen::SyclDevice &sycl_device) {
24  std::cout <<"Helo from ComputeCpp: the requested device exists and the device name is : "
25  << sycl_device.m_queue.get_device(). template get_info<cl::sycl::info::device::name>() <<std::endl;;
26 }
28  cl::sycl::gpu_selector s;
29  Eigen::SyclDevice sycl_device(s);
30  CALL_SUBTEST(test_device_sycl(sycl_device));
31 }
void test_cxx11_tensor_device_sycl()
RealScalar s
#define CALL_SUBTEST(FUNC)
Definition: main.h:342
void test_device_sycl(const Eigen::SyclDevice &sycl_device)


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:41:55