Skip to content

Commit bd3e1b6

Browse files
committed
avoid using core function from backend
1 parent 198f127 commit bd3e1b6

File tree

3 files changed

+6
-29
lines changed

3 files changed

+6
-29
lines changed

core/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ target_sources(
3737
base/dense_cache.cpp
3838
base/device_matrix_data.cpp
3939
base/executor.cpp
40-
base/event.cpp
4140
base/index_set.cpp
4241
base/memory.cpp
4342
base/mpi.cpp

core/base/event.cpp

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

core/base/event.hpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,25 @@
88
#include <memory>
99

1010
#include <ginkgo/core/base/event.hpp>
11+
#include <ginkgo/core/base/executor.hpp>
1112

1213

1314
namespace gko {
1415

1516

16-
class Executor;
17-
18-
1917
/**
2018
* NotAsyncEvent is to provide an Event implementation on unsupported executor
2119
* like reference. It will ensure the kernels are finished when recording this
2220
* event.
2321
*/
2422
class NotAsyncEvent : public Event {
2523
public:
26-
NotAsyncEvent(std::shared_ptr<const Executor> exec);
24+
NotAsyncEvent(std::shared_ptr<const Executor> exec) { exec->synchronize(); }
2725

28-
void synchronize() const override;
26+
void synchronize() const override
27+
{
28+
// we have sync in the recording phase
29+
}
2930
};
3031

3132

0 commit comments

Comments
 (0)