You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 10, 2024. It is now read-only.
Hi, I got some troubles about GPU memory copy. rgb24.PlanePtr().Export(surface_tensor.data_ptr(), w * 3, gpuID) # this works fine for me
However, when I tried to use pycuda to perform the GPU memory copy, it failed. The codes I used:
import pycuda.autoinit
import pycuda.driver as cudrv
texbufs_memcpy = cudrv.Memcpy2D()
# texbufs_memcpy.width_in_bytes = w * 3
texbufs_memcpy.width = w * 3
# texbufs_memcpy.height = h
texbufs_memcpy.set_src_device(rgb24.PlanePtr().GpuMem())
texbufs_memcpy.set_dst_device(surface_tensor.data_ptr())
texbufs_memcpy(aligned=True)