[cig-commits] [commit] devel: fix : use pinned buffer to transfer to GPU (73f4ef6)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Oct 30 06:12:00 PDT 2014


Repository : https://github.com/geodynamics/specfem3d

On branch  : devel
Link       : https://github.com/geodynamics/specfem3d/compare/c497ce046eaca64c0b32596123eee513e0ac361c...73f4ef636194629ed7db93c7a3f78f24615ea1be

>---------------------------------------------------------------

commit 73f4ef636194629ed7db93c7a3f78f24615ea1be
Author: EtienneBachmann <etiennebachmann at hotmail.fr>
Date:   Thu Oct 30 11:30:38 2014 +0100

    fix : use pinned buffer to transfer to GPU


>---------------------------------------------------------------

73f4ef636194629ed7db93c7a3f78f24615ea1be
 src/cuda/assemble_MPI_vector_cuda.cu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cuda/assemble_MPI_vector_cuda.cu b/src/cuda/assemble_MPI_vector_cuda.cu
index db5d3bf..1b850d5 100644
--- a/src/cuda/assemble_MPI_vector_cuda.cu
+++ b/src/cuda/assemble_MPI_vector_cuda.cu
@@ -195,7 +195,7 @@ void FC_FUNC_(transfer_boundary_to_device_a,
     memcpy(mp->h_recv_accel_buffer,buffer_recv_vector_ext_mesh,mp->size_mpi_buffer*sizeof(realw));
 
     // asynchronous copy to GPU using copy_stream
-    cudaMemcpyAsync(mp->d_send_accel_buffer, buffer_recv_vector_ext_mesh,
+    cudaMemcpyAsync(mp->d_send_accel_buffer, mp->h_recv_accel_buffer,
                     mp->size_mpi_buffer*sizeof(realw),cudaMemcpyHostToDevice,mp->copy_stream);
   }
 }



More information about the CIG-COMMITS mailing list