This file contains hidden or 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, ctypes, re, time | |
import numpy as np | |
import pycuda.driver as drv | |
import pycuda.gpuarray as gpuarray |