VisionCpp  0.0.1
sycl/device.hpp
Go to the documentation of this file.
1 // This file is part of VisionCpp, a lightweight C++ template library
2 // for compute vision and image processing.
3 //
4 // Copyright (C) 2016 Codeplay Software Limited. All Rights Reserved.
5 //
6 // Contact: visioncpp@codeplay.com
7 //
8 // Licensed under the Apache License, Version 2.0 (the "License");
9 // you may not use this file except in compliance with the License.
10 // You may obtain a copy of the License at
11 //
12 // http://www.apache.org/licenses/LICENSE-2.0
13 //
14 // Unless required by applicable law or agreed to in writing, software
15 // distributed under the License is distributed on an "AS IS" BASIS,
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 // See the License for the specific language governing permissions and
18 // limitations under the License.
19 
20 /// \file sycl/device.hpp
21 /// \brief This file contains the include headers for sycl devices
22 #pragma once
23 
24 namespace visioncpp {
25 namespace internal {
26 /// \struct DeviceSelector
27 /// \brief this class is used to define different types of device for sycl
28 template <device DV>
30 
31 /// \brief specialisation of the device_selector for sycl when the device type
32 /// is cpu
33 template <>
35  using Type = cl::sycl::cpu_selector;
36 };
37 /// \brief specialisation of the device_selector for sycl when the device type
38 /// is gpu
39 template <>
41  using Type = cl::sycl::gpu_selector;
42 };
43 /// \brief specialisation of the device_selector for sycl when the device type
44 /// is host
45 template <>
47  using Type = cl::sycl::host_selector;
48 };
49 } // end internal
50 } // end visioncpp
51 #include "extract_accessors.hpp"
52 #include "sycl_device.hpp"
enum class that defines supported devices types.
This files is used to provide an access mechanism for terminal nodes on the device.
VisionCpp namespace.
Definition: sycl/device.hpp:24
@ gpu
represents the gpu device.
@ host
represents the host device.
@ cpu
represents the cpu device.
this class is used to define different types of device for sycl
Definition: sycl/device.hpp:29
This fill contains features related to sycl devices.