-
-
Save purew/9b10181950a188d7ec24184a497345f5 to your computer and use it in GitHub Desktop.
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
import pycuda.compiler as comp | |
import pycuda.driver as drv | |
import pycuda.tools | |
import numpy | |
#import pycuda.autoinit | |
drv.init() | |
ctx = pycuda.tools.get_default_device() | |
print('Device-count: {}'.format(drv.Device.count())) | |
dvc = drv.Device(0) | |
print('Memory', dvc.total_memory() / (1024*1000)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment