Received from Gavin Weiguang Ding on Tue, Oct 07, 2014 at 06:40:46PM EDT:
Hi Lev,
Thanks a lot for the example! It really helps!
Just to make sure I understand the example in the right way:
The actual p2p data transfer happens when executing the following line?
x_gpu =
I see.
Again to confirm, are the following lines (in proc2) the right way to
actually copy data?
x_gpu = gpuarray.GPUArray(shape, dtype, gpudata=drv.IPCMemoryHandle(h))
y_gpu = gpuarray.zeros_like(x_gpu)
drv.memcpy_peer(y_gpu.ptr, x_gpu.ptr, x_gpu.dtype.itemsize * x_gpu.size,
ctx, ctx)
It seems
Received from Gavin Weiguang Ding on Wed, Oct 08, 2014 at 10:41:01AM EDT:
I see.
Again to confirm, are the following lines (in proc2) the right way to
actually copy data?
x_gpu = gpuarray.GPUArray(shape, dtype, gpudata=drv.IPCMemoryHandle(h))
y_gpu = gpuarray.zeros_like(x_gpu)
Hi all,
in my Ubuntu 14.04 I'm trying to install PyCUDA, but I have this
error's message:
utente@utente-All-Series:~$ sudo pip install pycuda
Downloading/unpacking pycuda
Downloading pycuda-2014.1.tar.gz (1.6MB): 1.6MB downloaded
Running setup.py (path:/tmp/pip_build_root/pycuda/setup.py)
Dear Marco,
the easiest thing to do is to have nvcc in your $PATH--that should then
enable PyCUDA to automatically find the rest of CUDA.
Andreas
Marco Ippolito ippolito.ma...@gmail.com writes:
Hi all,
in my Ubuntu 14.04 I'm trying to install PyCUDA, but I have this
error's message:
Marco Ippolito ippolito.ma...@gmail.com writes:
Hi Andreas,
thanks for helping.
Following the indications here:
https://help.ubuntu.com/community/EnvironmentVariables#Persistent_environment_variables
in a brand new file nvcc.sh in /etc/profile.d/ I put:
export
Thomas Unterthiner thomas_unterthi...@web.de writes:
Hi again!
How do you completely shut down PyCUDA? After running the following lines:
from pycuda import driver as pycuda_drv
pycuda_drv.init()
device = pycuda_drv.Device(0)
ctx = device.make_context()
I can see a new