Last mimnnut modification before the meeting.

This commit is contained in:
Miikka Vaisala
2020-09-21 15:54:33 +08:00
parent f33f0dab65
commit 2f85cbba1a

View File

@@ -436,19 +436,19 @@ acDevicePeriodicBoundconds(const Device device, const Stream stream, const int3
AcResult AcResult
acDeviceGeneralBoundcondStep(const Device device, const Stream stream, acDeviceGeneralBoundcondStep(const Device device, const Stream stream,
const VertexBufferHandle vtxbuf_handle, const int3 start, const VertexBufferHandle vtxbuf_handle, const int3 start,
const int3 end, const int bound_direction) const int3 end, const int3 bindex)
{ {
cudaSetDevice(device->id); cudaSetDevice(device->id);
return acKernelGeneralBoundconds(device->streams[stream], start, end, return acKernelGeneralBoundconds(device->streams[stream], start, end,
device->vba.in[vtxbuf_handle], bound_direction); device->vba.in[vtxbuf_handle], bindex);
} }
AcResult AcResult
acDeviceGeneralBoundconds(const Device device, const Stream stream, const int3 start, 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) { 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; return AC_SUCCESS;
} }