@@ -118,8 +118,7 @@ TRACE("transfer_boun_accel_from_device");
118118
119119extern EXTERN_LANG
120120void FC_FUNC_ (transfer_boundary_from_device_a,
121- TRANSFER_BOUNDARY_FROM_DEVICE_A)(long * Mesh_pointer,
122- const int * nspec_outer_elastic) {
121+ TRANSFER_BOUNDARY_FROM_DEVICE_A)(long * Mesh_pointer) {
123122
124123// asynchronous transfer from device to host
125124
@@ -173,9 +172,7 @@ void FC_FUNC_(transfer_boundary_from_device_a,
173172extern EXTERN_LANG
174173void FC_FUNC_ (transfer_boundary_to_device_a,
175174 TRANSFER_BOUNDARY_TO_DEVICE_A)(long * Mesh_pointer,
176- realw* buffer_recv_vector_ext_mesh,
177- const int * num_interfaces_ext_mesh,
178- const int * max_nibool_interfaces_ext_mesh) {
175+ realw* buffer_recv_vector_ext_mesh) {
179176
180177// asynchronous transfer from host to device
181178
@@ -205,10 +202,6 @@ extern EXTERN_LANG
205202void FC_FUNC_ (transfer_asmbl_accel_to_device,
206203 TRANSFER_ASMBL_ACCEL_TO_DEVICE)(long * Mesh_pointer,
207204 realw* buffer_recv_vector_ext_mesh,
208- const int * num_interfaces_ext_mesh,
209- const int * max_nibool_interfaces_ext_mesh,
210- const int * nibool_interfaces_ext_mesh,
211- const int * ibool_interfaces_ext_mesh,
212205 const int * FORWARD_OR_ADJOINT) {
213206TRACE (" transfer_asmbl_accel_to_device" );
214207
@@ -305,10 +298,6 @@ extern EXTERN_LANG
305298void FC_FUNC_ (transfer_sync_accel_to_device,
306299 TRANSFER_ASMBL_ACCEL_TO_DEVICE)(long * Mesh_pointer,
307300 realw* buffer_recv_vector_ext_mesh,
308- const int * num_interfaces_ext_mesh,
309- const int * max_nibool_interfaces_ext_mesh,
310- const int * nibool_interfaces_ext_mesh,
311- const int * ibool_interfaces_ext_mesh,
312301 const int * FORWARD_OR_ADJOINT) {
313302TRACE (" transfer_sync_accel_to_device" );
314303
@@ -422,7 +411,7 @@ TRACE("transfer_sync_accel_to_device");
422411//
423412// // ***************************************************************************
424413// // Wait until previous copy stream finishes. We assemble while other compute kernels execute.
425- // cudaStreamSynchronize (mp->copy_stream);
414+ // gpuStreamSynchronize (mp->copy_stream);
426415//
427416// // Assembling on the copy_stream breaks the solution and it "blows up"
428417// if (*FORWARD_OR_ADJOINT == 1) { //assemble forward accel
@@ -464,7 +453,7 @@ void FC_FUNC_(sync_copy_from_device,
464453
465454 // There have been problems using the pinned-memory with MPI, so
466455 // we copy the buffer into a non-pinned region.
467- memcpy (send_buffer,mp->h_send_accel_buffer ,mp->size_mpi_buffer *sizeof (float ));
456+ memcpy (send_buffer,mp->h_send_accel_buffer ,mp->size_mpi_buffer *sizeof (realw ));
468457 }
469458 // memory copy is now finished, so non-blocking MPI send can proceed
470459}
0 commit comments