Re: [PyCUDA] Buffer Interface for Device Allocations

2014-01-31 Thread Andreas Kloeckner
kkFreddie Witherden fred...@witherden.org writes: Thank you for this. However, toying around with the following example: [snip] with OpenMPI 1.7.3 (running as mpirun -n 2 python file.py) I find that the version using cubuf.as_buffer fails with a segmentation fault due to invalid

Re: [PyCUDA] Buffer Interface for Device Allocations

2014-01-30 Thread Andreas Kloeckner
Freddie Witherden fred...@witherden.org writes: This came up a while ago on the mpi4py mailing list [1] and with CUDA 6 brining unified virtual memory it may become more important in the future. It would be nice if PyCUDA device allocations provided a method for creating a suitable Python

Re: [PyCUDA] Buffer Interface for Device Allocations

2014-01-30 Thread Freddie Witherden
On 30/01/14 22:40, Andreas Kloeckner wrote: Freddie Witherden fred...@witherden.org writes: This came up a while ago on the mpi4py mailing list [1] and with CUDA 6 brining unified virtual memory it may become more important in the future. It would be nice if PyCUDA device allocations provided

[PyCUDA] Buffer Interface for Device Allocations

2014-01-22 Thread Freddie Witherden
Hi all, This came up a while ago on the mpi4py mailing list [1] and with CUDA 6 brining unified virtual memory it may become more important in the future. It would be nice if PyCUDA device allocations provided a method for creating a suitable Python buffer object: e.g, myalloc.asbuf(offset=0,