Skip to content

Commit eed518a

Browse files
author
Diptorup Deb
authored
Add missing dllexport (#329)
1 parent 323d301 commit eed518a

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

dpctl-capi/helper/include/dpctl_async_error_handler.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@
2525

2626
#pragma once
2727

28+
#include "Support/DllExport.h"
2829
#include "dpctl_error_handler_type.h"
2930
#include <CL/sycl.hpp>
3031

3132
/*!
3233
* @brief Functor class used by DPCTL to handle SYCL asynchronous errors.
3334
*/
34-
class DPCTL_AsyncErrorHandler
35+
class DPCTL_API DPCTL_AsyncErrorHandler
3536
{
3637
error_handler_callback *handler_ = nullptr;
3738

dpctl-capi/helper/include/dpctl_utils_helper.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#pragma once
2626

2727
#include "../include/dpctl_sycl_enum_types.h"
28+
#include "Support/DllExport.h"
2829
#include <CL/sycl.hpp>
2930

3031
/*!
@@ -33,6 +34,7 @@
3334
* @param devTy A sycl::info::device_type enum value.
3435
* @return A string representation of a sycl::info::device_type enum.
3536
*/
37+
DPCTL_API
3638
std::string DPCTL_DeviceTypeToStr(sycl::info::device_type devTy);
3739

3840
/*!
@@ -47,6 +49,7 @@ std::string DPCTL_DeviceTypeToStr(sycl::info::device_type devTy);
4749
* string.
4850
* @throws runtime_error
4951
*/
52+
DPCTL_API
5053
sycl::info::device_type DPCTL_StrToDeviceType(const std::string &devTyStr);
5154

5255
/*!
@@ -58,6 +61,7 @@ sycl::info::device_type DPCTL_StrToDeviceType(const std::string &devTyStr);
5861
* DPCTLSyclDeviceType enum value.
5962
* @throws runtime_error
6063
*/
64+
DPCTL_API
6165
sycl::backend DPCTL_DPCTLBackendTypeToSyclBackend(DPCTLSyclBackendType BeTy);
6266

6367
/*!
@@ -69,6 +73,7 @@ sycl::backend DPCTL_DPCTLBackendTypeToSyclBackend(DPCTLSyclBackendType BeTy);
6973
* @return A DPCTLSyclBackendType enum value for the input
7074
* sycl::backend enum value.
7175
*/
76+
DPCTL_API
7277
DPCTLSyclBackendType DPCTL_SyclBackendToDPCTLBackendType(sycl::backend B);
7378

7479
/*!
@@ -81,6 +86,7 @@ DPCTLSyclBackendType DPCTL_SyclBackendToDPCTLBackendType(sycl::backend B);
8186
* DPCTLSyclDeviceType enum value.
8287
* @throws runtime_error
8388
*/
89+
DPCTL_API
8490
sycl::info::device_type
8591
DPCTL_DPCTLDeviceTypeToSyclDeviceType(DPCTLSyclDeviceType DTy);
8692

@@ -93,6 +99,7 @@ DPCTL_DPCTLDeviceTypeToSyclDeviceType(DPCTLSyclDeviceType DTy);
9399
* @return A DPCTLSyclDeviceType enum value for the input
94100
* sycl::info::device_type enum value.
95101
*/
102+
DPCTL_API
96103
DPCTLSyclDeviceType
97104
DPCTL_SyclDeviceTypeToDPCTLDeviceType(sycl::info::device_type D);
98105

@@ -103,6 +110,7 @@ DPCTL_SyclDeviceTypeToDPCTLDeviceType(sycl::info::device_type D);
103110
* @return A string representation of a sycl::aspect.
104111
* @throws runtime_error
105112
*/
113+
DPCTL_API
106114
std::string DPCTL_AspectToStr(sycl::aspect aspectTy);
107115

108116
/*!
@@ -114,6 +122,7 @@ std::string DPCTL_AspectToStr(sycl::aspect aspectTy);
114122
* string.
115123
* @throws runtime_error
116124
*/
125+
DPCTL_API
117126
sycl::aspect DPCTL_StrToAspectType(const std::string &aspectTyStr);
118127

119128
/*!
@@ -125,6 +134,7 @@ sycl::aspect DPCTL_StrToAspectType(const std::string &aspectTyStr);
125134
* DPCTLSyclAspectType enum value.
126135
* @throws runtime_error
127136
*/
137+
DPCTL_API
128138
sycl::aspect DPCTL_DPCTLAspectTypeToSyclAspect(DPCTLSyclAspectType AspectTy);
129139

130140
/*!
@@ -137,4 +147,5 @@ sycl::aspect DPCTL_DPCTLAspectTypeToSyclAspect(DPCTLSyclAspectType AspectTy);
137147
* sycl::aspect enum value.
138148
* @throws runtime_error
139149
*/
150+
DPCTL_API
140151
DPCTLSyclAspectType DPCTL_SyclAspectToDPCTLAspectType(sycl::aspect Aspect);

dpctl-capi/include/dpctl_sycl_device_manager.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ DPCTL_C_EXTERN_C_BEGIN
4343
* @brief Contains a #DPCTLSyclDeviceRef and #DPCTLSyclContextRef 2-tuple that
4444
* contains a sycl::device and a sycl::context associated with that device.
4545
*/
46-
typedef struct DeviceAndContextPair
46+
DPCTL_API typedef struct DeviceAndContextPair
4747
{
4848
DPCTLSyclDeviceRef DRef;
4949
DPCTLSyclContextRef CRef;
@@ -73,6 +73,7 @@ DPCTL_DECLARE_VECTOR(Device)
7373
* @return True if the underlying sycl::device are same, false otherwise.
7474
* @ingroup DeviceManager
7575
*/
76+
DPCTL_API
7677
bool DPCTLDeviceMgr_AreEq(__dpctl_keep const DPCTLSyclDeviceRef DRef1,
7778
__dpctl_keep const DPCTLSyclDeviceRef DRef2);
7879

0 commit comments

Comments
 (0)