diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2017-11-01 18:09:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-01 18:09:13 +0100 |
commit | 40295b83ebaf49f9547a4366e1ebfbff39ea907c (patch) | |
tree | 0264de6639f179cad045d30079a023711dc8d2eb /samples/python | |
parent | f70f68fcd465f421b566b199e23e66c1f186b01d (diff) | |
parent | 84e163009c10f6ac5631cf5f29a4923852542eaf (diff) | |
download | astra-40295b83ebaf49f9547a4366e1ebfbff39ea907c.tar.gz astra-40295b83ebaf49f9547a4366e1ebfbff39ea907c.tar.bz2 astra-40295b83ebaf49f9547a4366e1ebfbff39ea907c.tar.xz astra-40295b83ebaf49f9547a4366e1ebfbff39ea907c.zip |
Merge pull request #126 from wjp/tests
Add basic tests to check an astra installation
Diffstat (limited to 'samples/python')
-rw-r--r-- | samples/python/s020_3d_multiGPU.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/python/s020_3d_multiGPU.py b/samples/python/s020_3d_multiGPU.py index 11a1e11..e872870 100644 --- a/samples/python/s020_3d_multiGPU.py +++ b/samples/python/s020_3d_multiGPU.py @@ -28,11 +28,11 @@ import numpy as np # Set up multi-GPU usage. # This only works for 3D GPU forward projection and back projection. -astra.astra.set_gpu_index([0,1]) +astra.set_gpu_index([0,1]) # Optionally, you can also restrict the amount of GPU memory ASTRA will use. # The line commented below sets this to 1GB. -#astra.astra.set_gpu_index([0,1], memory=1024*1024*1024) +#astra.set_gpu_index([0,1], memory=1024*1024*1024) vol_geom = astra.create_vol_geom(1024, 1024, 1024) |