25
25
#pragma once
26
26
27
27
#include " ../include/dpctl_sycl_enum_types.h"
28
+ #include " Support/DllExport.h"
28
29
#include < CL/sycl.hpp>
29
30
30
31
/* !
33
34
* @param devTy A sycl::info::device_type enum value.
34
35
* @return A string representation of a sycl::info::device_type enum.
35
36
*/
37
+ DPCTL_API
36
38
std::string DPCTL_DeviceTypeToStr (sycl::info::device_type devTy);
37
39
38
40
/* !
@@ -47,6 +49,7 @@ std::string DPCTL_DeviceTypeToStr(sycl::info::device_type devTy);
47
49
* string.
48
50
* @throws runtime_error
49
51
*/
52
+ DPCTL_API
50
53
sycl::info::device_type DPCTL_StrToDeviceType (const std::string &devTyStr);
51
54
52
55
/* !
@@ -58,6 +61,7 @@ sycl::info::device_type DPCTL_StrToDeviceType(const std::string &devTyStr);
58
61
* DPCTLSyclDeviceType enum value.
59
62
* @throws runtime_error
60
63
*/
64
+ DPCTL_API
61
65
sycl::backend DPCTL_DPCTLBackendTypeToSyclBackend (DPCTLSyclBackendType BeTy);
62
66
63
67
/* !
@@ -69,6 +73,7 @@ sycl::backend DPCTL_DPCTLBackendTypeToSyclBackend(DPCTLSyclBackendType BeTy);
69
73
* @return A DPCTLSyclBackendType enum value for the input
70
74
* sycl::backend enum value.
71
75
*/
76
+ DPCTL_API
72
77
DPCTLSyclBackendType DPCTL_SyclBackendToDPCTLBackendType (sycl::backend B);
73
78
74
79
/* !
@@ -81,6 +86,7 @@ DPCTLSyclBackendType DPCTL_SyclBackendToDPCTLBackendType(sycl::backend B);
81
86
* DPCTLSyclDeviceType enum value.
82
87
* @throws runtime_error
83
88
*/
89
+ DPCTL_API
84
90
sycl::info::device_type
85
91
DPCTL_DPCTLDeviceTypeToSyclDeviceType (DPCTLSyclDeviceType DTy);
86
92
@@ -93,6 +99,7 @@ DPCTL_DPCTLDeviceTypeToSyclDeviceType(DPCTLSyclDeviceType DTy);
93
99
* @return A DPCTLSyclDeviceType enum value for the input
94
100
* sycl::info::device_type enum value.
95
101
*/
102
+ DPCTL_API
96
103
DPCTLSyclDeviceType
97
104
DPCTL_SyclDeviceTypeToDPCTLDeviceType (sycl::info::device_type D);
98
105
@@ -103,6 +110,7 @@ DPCTL_SyclDeviceTypeToDPCTLDeviceType(sycl::info::device_type D);
103
110
* @return A string representation of a sycl::aspect.
104
111
* @throws runtime_error
105
112
*/
113
+ DPCTL_API
106
114
std::string DPCTL_AspectToStr (sycl::aspect aspectTy);
107
115
108
116
/* !
@@ -114,6 +122,7 @@ std::string DPCTL_AspectToStr(sycl::aspect aspectTy);
114
122
* string.
115
123
* @throws runtime_error
116
124
*/
125
+ DPCTL_API
117
126
sycl::aspect DPCTL_StrToAspectType (const std::string &aspectTyStr);
118
127
119
128
/* !
@@ -125,6 +134,7 @@ sycl::aspect DPCTL_StrToAspectType(const std::string &aspectTyStr);
125
134
* DPCTLSyclAspectType enum value.
126
135
* @throws runtime_error
127
136
*/
137
+ DPCTL_API
128
138
sycl::aspect DPCTL_DPCTLAspectTypeToSyclAspect (DPCTLSyclAspectType AspectTy);
129
139
130
140
/* !
@@ -137,4 +147,5 @@ sycl::aspect DPCTL_DPCTLAspectTypeToSyclAspect(DPCTLSyclAspectType AspectTy);
137
147
* sycl::aspect enum value.
138
148
* @throws runtime_error
139
149
*/
150
+ DPCTL_API
140
151
DPCTLSyclAspectType DPCTL_SyclAspectToDPCTLAspectType (sycl::aspect Aspect);
0 commit comments