3 #include <SYCL/sycl.hpp> 9 using Eigen::SyclDevice;
13 template <
typename device_selector>
15 return cl::sycl::queue(device_selector(), [=](cl::sycl::exception_list
l) {
16 for (
const auto&
e : l) {
18 std::rethrow_exception(
e);
19 }
catch (cl::sycl::exception
e) {
20 std::cout << e.what() << std::endl;
26 #define BM_FuncGPU(FUNC) \ 27 static void BM_##FUNC(int iters, int N) { \ 28 StopBenchmarkTiming(); \ 29 cl::sycl::queue q = sycl_queue<cl::sycl::gpu_selector>(); \ 30 Eigen::SyclDevice device(q); \ 31 BenchmarkSuite<Eigen::SyclDevice, float> suite(device, N); \ 34 BENCHMARK_RANGE(BM_##FUNC, 10, 5000);
static const Line3 l(Rot3(), 1, 1)
A tensor expression mapping an existing array of data.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
cl::sycl::queue sycl_queue()