Révision 144 Ising/GPU/Ising2D-GPU-Global.py
Ising2D-GPU-Global.py (revision 144) | ||
---|---|---|
217 | 217 |
for platform in cl.get_platforms(): |
218 | 218 |
for device in platform.get_devices(): |
219 | 219 |
OCL_vendor[Id]=platform.vendor.lstrip().rstrip() |
220 |
OCL_type[Id]=cl.device_type.to_string(device.type) |
|
220 |
#OCL_type[Id]=cl.device_type.to_string(device.type) |
|
221 |
OCL_type[Id]="xPU" |
|
221 | 222 |
OCL_description[Id]=device.name.lstrip().rstrip() |
222 | 223 |
print "* Device #%i from %s of type %s : %s" % (Id,OCL_vendor[Id],OCL_type[Id],OCL_description[Id]) |
223 | 224 |
Id=Id+1 |
Formats disponibles : Unified diff