Skip to content

Commit 1dcf884

Browse files
Remove event_manager files
1 parent 7125227 commit 1dcf884

File tree

4 files changed

+10
-97
lines changed

4 files changed

+10
-97
lines changed

dpctl-capi/include/dpctl_sycl_event_interface.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,18 @@
3131
#include "dpctl_data_types.h"
3232
#include "dpctl_sycl_enum_types.h"
3333
#include "dpctl_sycl_types.h"
34-
#include "dpctl_sycl_event_manager.h"
35-
34+
#include "dpctl_vector.h"
3635

3736
DPCTL_C_EXTERN_C_BEGIN
3837

3938
/**
4039
* @defgroup EventInterface Event class C wrapper
4140
*/
4241

42+
// Declares a set of types abd functions to deal with vectors of
43+
// DPCTLSyclEventRef. Refer dpctl_vector_macros.h
44+
DPCTL_DECLARE_VECTOR(Event)
45+
4346
/*!
4447
* @brief A wrapper for ``sycl::event`` contructor to construct a new event.
4548
*

dpctl-capi/include/dpctl_sycl_event_manager.h

Lines changed: 0 additions & 49 deletions
This file was deleted.

dpctl-capi/source/dpctl_sycl_event_interface.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ namespace
3535
{
3636
// Create wrappers for C Binding types (see CBindingWrapping.h)
3737
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(event, DPCTLSyclEventRef)
38-
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(vector_class<DPCTLSyclEventRef>,
39-
DPCTLEventVectorRef)
4038
} /* end of anonymous namespace */
4139

40+
#undef EL
41+
#define EL Event
42+
#include "dpctl_vector_templ.cpp"
43+
#undef EL
44+
4245
__dpctl_give DPCTLSyclEventRef DPCTLEvent_Create()
4346
{
4447
DPCTLSyclEventRef ERef = nullptr;

dpctl-capi/source/dpctl_sycl_event_manager.cpp

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)