Re: [PyCUDA] Tricks to avoid device2device data copy when slicing the gpuarray?

2018-11-28 Thread Andreas Kloeckner
黄 瓒 writes: > Hi All, > > @inducer THANK YOU for providing PyCUDA. > > As cudaMalloc could be time-consuming, it seems even slicing would include > such operation in PyCUDA, are there any tricks to avoid frequent gpu memory > operation in PyCUDA? Slicing a GPUArray

[PyCUDA] Tricks to avoid device2device data copy when slicing the gpuarray?

2018-11-28 Thread 黄 瓒
Hi All, @inducer THANK YOU for providing PyCUDA. As cudaMalloc could be time-consuming, it seems even slicing would include such operation in PyCUDA, are there any tricks to avoid frequent gpu memory operation in PyCUDA? Regards, Peter