Skip to content

Instantly share code, notes, and snippets.

View zunction's full-sized avatar

Zhangsheng Lai zunction

View GitHub Profile
@lebedov
lebedov / multi_pycuda_ipc_demo.py
Created September 2, 2013 00:10
Allocate a GPUArray in one process and access it in another process using IPC handles.
#!/usr/bin/env python
"""
Allocate a GPUArray in one process and access it in another process using IPC
handles.
"""
import multiprocessing as mp
import numpy as np
import zmq