Beispiel #1
0
SEXP R_auto_cuMemcpyHtoDAsync(SEXP r_dstDevice, SEXP r_srcHost, SEXP r_ByteCount, SEXP r_hStream)
{
    SEXP r_ans = R_NilValue;
    CUdeviceptr dstDevice = REAL(r_dstDevice)[0];
    const void * srcHost = GET_REF(r_srcHost, const void );
    size_t ByteCount = REAL(r_ByteCount)[0];
    CUstream hStream = (CUstream) getRReference(r_hStream);
    
    CUresult ans;
    ans = cuMemcpyHtoDAsync_v2(dstDevice, srcHost, ByteCount, hStream);
    
    r_ans = Renum_convert_CUresult(ans) ;
    
    return(r_ans);
}
Beispiel #2
0
CUresult cuMemcpyHtoDAsync(CUdeviceptr dstDevice, const void *srcHost, unsigned int ByteCount, CUstream hStream)
{
	return cuMemcpyHtoDAsync_v2(dstDevice, srcHost, ByteCount, hStream);
}