From b5daf22c260b34a17a4063a56f77c704c7f86d02 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Mon, 12 Aug 2019 10:25:05 +0300 Subject: [PATCH] Added interface function acSynchronizeMesh --- include/astaroth.h | 3 +++ src/core/astaroth.cu | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/include/astaroth.h b/include/astaroth.h index cae7139..748c057 100644 --- a/include/astaroth.h +++ b/include/astaroth.h @@ -57,6 +57,9 @@ AcResult acCheckDeviceAvailability(void); * parameter*/ AcResult acSynchronizeStream(const Stream stream); +/** */ +AcResult acSynchronizeMesh(void); + /** Loads a constant to the memories of the devices visible to the caller */ AcResult acLoadDeviceConstant(const AcRealParam param, const AcReal value); diff --git a/src/core/astaroth.cu b/src/core/astaroth.cu index 6e06663..287bcd2 100644 --- a/src/core/astaroth.cu +++ b/src/core/astaroth.cu @@ -151,3 +151,9 @@ acLoadWithOffset(const AcMesh host_mesh, const int3 src, const int num_vertices) { return acNodeLoadMeshWithOffset(nodes[0], STREAM_DEFAULT, host_mesh, src, src, num_vertices); } + +AcResult +acSynchronizeMesh(void) +{ + return acNodeSynchronizeMesh(nodes[0], STREAM_DEFAULT); +}