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 | |
""" | |
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 | |
""" | |
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 | |
""" | |
Demonstrate how to replace tick labels for a displayed image. | |
""" | |
import numpy as np | |
import pylab as pl | |
im = np.random.rand(100, 200) |
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 performance of using host-registered pinned and unpinned host memory. | |
""" | |
import numpy as np | |
import pycuda.autoinit | |
import pycuda.driver as drv |
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 performance of using pinned and unpinned host memory. | |
""" | |
import numpy as np | |
import pycuda.autoinit | |
import pycuda.driver as drv |
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 | |
""" | |
Simple demo of how to use scikit-cuda with multiprocessing. | |
""" | |
import atexit | |
import multiprocessing as mp | |
import numpy as np |