return 0;
}
-int cu_copy_D2H(void * h_dest, void * d_src, size_t bytes)
+int cu_copy_D2H_sync(void * h_dest, void * d_src, size_t bytes)
{
return cu_copy_D2H_generic(h_dest, d_src, bytes, false);
}
return 0;
}
-int cu_copy_H2D(void * d_dest, void * h_src, size_t bytes)
+int cu_copy_H2D_sync(void * d_dest, void * h_src, size_t bytes)
{
return cu_copy_H2D_generic(d_dest, h_src, bytes, false);
}
}
else
{
- cu_copy_H2D(*d_dest, h_src, *curr_size * type_size);
+ cu_copy_H2D_sync(*d_dest, h_src, *curr_size * type_size);
}
}
}
const size_t sizeInBytes = numElem * sizeof(*d_ptr);
cudaError_t stat = cudaMalloc((void **)&d_ptr, sizeInBytes);
CU_RET_ERR(stat, "cudaMalloc failed in initParamLookupTable");
- cu_copy_H2D(d_ptr, (void *)h_ptr, sizeInBytes);
+ cu_copy_H2D_sync(d_ptr, (void *)h_ptr, sizeInBytes);
if (!c_disableCudaTextures)
{
};
-/*! Launches asynchronous host to device memory copy in stream 0. */
-int cu_copy_D2H(void * /*h_dest*/, void * /*d_src*/, size_t /*bytes*/);
+/*! Launches synchronous host to device memory copy in stream 0. */
+int cu_copy_D2H_sync(void * /*h_dest*/, void * /*d_src*/, size_t /*bytes*/);
/*! Launches asynchronous host to device memory copy in stream s. */
int cu_copy_D2H_async(void * /*h_dest*/, void * /*d_src*/, size_t /*bytes*/, cudaStream_t /*s = 0*/);
/*! Launches synchronous host to device memory copy. */
-int cu_copy_H2D(void * /*d_dest*/, void * /*h_src*/, size_t /*bytes*/);
+int cu_copy_H2D_sync(void * /*d_dest*/, void * /*h_src*/, size_t /*bytes*/);
/*! Launches asynchronous host to device memory copy in stream s. */
int cu_copy_H2D_async(void * /*d_dest*/, void * /*h_src*/, size_t /*bytes*/, cudaStream_t /*s = 0*/);
/*! \brief Launches synchronous host to device memory copy.
*/
-int ocl_copy_H2D(cl_mem d_dest, void * h_src,
- size_t offset, size_t bytes,
- cl_command_queue command_queue)
+int ocl_copy_H2D_sync(cl_mem d_dest, void * h_src,
+ size_t offset, size_t bytes,
+ cl_command_queue command_queue)
{
return ocl_copy_H2D_generic(d_dest, h_src, offset, bytes, false, command_queue, NULL);
}
cl_event *copy_event);
/*! \brief Launches synchronous host to device memory copy. */
-int ocl_copy_H2D(cl_mem d_dest, void * h_src,
- size_t offset, size_t bytes,
- cl_command_queue command_queue);
+int ocl_copy_H2D_sync(cl_mem d_dest, void * h_src,
+ size_t offset, size_t bytes,
+ cl_command_queue command_queue);
/*! \brief Allocate host memory in malloc style */
void ocl_pmalloc(void **h_ptr, size_t nbytes);
}
else
{
- ocl_copy_H2D(*d_dest, h_src, 0, *curr_size * type_size, s);
+ ocl_copy_H2D_sync(*d_dest, h_src, 0, *curr_size * type_size, s);
}
}
}