📅  最后修改于: 2022-03-11 14:44:52.182000             🧑  作者: Mango
代码示例1
cudaMemcpy(d_dst, h_src, N*sizeof(float), cudaMemcpyHostToDevice);
cudaMemcpy(h_dst, d_src, N*sizeof(float), cudaMemcpyDeviceToHost);