Révision 69
| Splutter/GPU/SplutterGPU.py (revision 69) | ||
|---|---|---|
| 733 | 733 |
for device in platform.get_devices(): |
| 734 | 734 |
deviceType=cl.device_type.to_string(device.type) |
| 735 | 735 |
deviceMemory=device.max_mem_alloc_size |
| 736 |
print "Device #%i of type %s with memory %i : %s" % (Id,deviceType,deviceMemory,device.name)
|
|
| 736 |
print "Device #%i from %s of type %s with memory %i : %s" % (Id,platform.vendor,deviceType,deviceMemory,device.name.lstrip())
|
|
| 737 | 737 |
Id=Id+1 |
| 738 | 738 |
|
| 739 | 739 |
|
| ... | ... | |
| 769 | 769 |
elif opt in ("-m", "--memory"):
|
| 770 | 770 |
Memory = int(arg) |
| 771 | 771 |
|
| 772 |
print "Toto %s" % Alu |
|
| 773 |
|
|
| 774 | 772 |
if Alu=='CPU' and GpuStyle=='CUDA': |
| 775 | 773 |
print "Alu can't be CPU for CUDA, set Alu to GPU" |
| 776 | 774 |
Alu='GPU' |
Formats disponibles : Unified diff