Révision 123 Pi/XPU/PiXpuMPI.py
| PiXpuMPI.py (revision 123) | ||
|---|---|---|
| 104 | 104 |
Id=Id+1 |
| 105 | 105 |
|
| 106 | 106 |
|
| 107 |
sys.exit() |
|
| 108 |
except ImportError: |
|
| 107 |
except: |
|
| 109 | 108 |
print "Your platform does not seem to support OpenCL" |
| 109 |
|
|
| 110 |
# For PyCUDA import |
|
| 111 |
try: |
|
| 112 |
import pycuda.driver as cuda |
|
| 113 |
cuda.init() |
|
| 114 |
for Id in range(cuda.Device.count()): |
|
| 115 |
device=cuda.Device(Id) |
|
| 116 |
print "Device #%i of type GPU : %s" % (Id,device.name()) |
|
| 117 |
|
|
| 118 |
except: |
|
| 119 |
print "Your platform does not seem to support CUDA" |
|
| 110 | 120 |
|
| 121 |
sys.exit() |
|
| 122 |
|
|
| 111 | 123 |
elif opt == '-o': |
| 112 | 124 |
OutMetrology=True |
| 113 | 125 |
Metrology='OutMetro' |
Formats disponibles : Unified diff