This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
IPython 0.10 profile to automatically initialize PyCUDA on a specified | |
device. | |
""" | |
import sys | |
import atexit | |
import IPython.ipapi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RPM SPEC file for packaging CULA Dense for Mandriva Linux. | |
%bcond_with full | |
%if %{with full} | |
%define name cula_dense | |
%else | |
%define name cula_dense_free | |
%endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use backtick as control character: | |
set -g prefix ` | |
unbind C-b | |
bind ` send-prefix | |
# Config reload key: | |
bind r source-file ~/.tmux.conf | |
set -g history-limit 7500 | |
set -g default-terminal "screen-256color" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Demo of how to extend multiprocessing.Process to communicate with | |
pyzmq. | |
""" | |
import zmq | |
from multiprocessing import Process | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Pass interactively entered data to a server process using pyzmq. | |
""" | |
import zmq | |
import multiprocessing as mp | |
def server_func(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Pass data between processes started through the multiprocessing module | |
using pyzmq and process them with PyCUDA | |
""" | |
import numpy as np | |
import zmq | |
import multiprocessing as mp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Bidirectional communication between two processes. | |
""" | |
import numpy as np | |
import zmq | |
import multiprocessing as mp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Demo of how to use the logging module with pyzmq. | |
""" | |
import logging | |
import zmq | |
import multiprocessing as mp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Use eventloops to send and receive data. | |
""" | |
import logging | |
import zmq | |
from zmq.eventloop.ioloop import IOLoop, PeriodicCallback | |
from zmq.eventloop.zmqstream import ZMQStream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Compare speed of several methods of copying data between two GPU devices. | |
""" | |
import atexit, re, time | |
import numpy as np | |
import pycuda.driver as drv | |
import pycuda.gpuarray as gpuarray |
OlderNewer