From 2f85cbba1a0929d6cd638b65202238746290ad06 Mon Sep 17 00:00:00 2001 From: Miikka Vaisala Date: Mon, 21 Sep 2020 15:54:33 +0800 Subject: [PATCH] Last mimnnut modification before the meeting. --- src/core/device.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/device.cc b/src/core/device.cc index d1640c9..29ef9c8 100644 --- a/src/core/device.cc +++ b/src/core/device.cc @@ -436,19 +436,19 @@ acDevicePeriodicBoundconds(const Device device, const Stream stream, const int3 AcResult acDeviceGeneralBoundcondStep(const Device device, const Stream stream, const VertexBufferHandle vtxbuf_handle, const int3 start, - const int3 end, const int bound_direction) + const int3 end, const int3 bindex) { cudaSetDevice(device->id); return acKernelGeneralBoundconds(device->streams[stream], start, end, - device->vba.in[vtxbuf_handle], bound_direction); + device->vba.in[vtxbuf_handle], bindex); } AcResult acDeviceGeneralBoundconds(const Device device, const Stream stream, const int3 start, - const int3 end, const int bound_direction) + const int3 end, const int3 bindex) { for (int i = 0; i < NUM_VTXBUF_HANDLES; ++i) { - acDeviceGeneralBoundcondStep(device, stream, (VertexBufferHandle)i, start, end, bound_direction); + acDeviceGeneralBoundcondStep(device, stream, (VertexBufferHandle)i, start, end, bindex); } return AC_SUCCESS; }