Révision 144 Ising/GPU/Ising2D-GPU-Local.py
Ising2D-GPU-Local.py (revision 144) | ||
---|---|---|
246 | 246 |
for platform in cl.get_platforms(): |
247 | 247 |
for device in platform.get_devices(): |
248 | 248 |
OCL_vendor[Id]=platform.vendor.lstrip().rstrip() |
249 |
OCL_type[Id]=cl.device_type.to_string(device.type) |
|
249 |
#OCL_type[Id]=cl.device_type.to_string(device.type) |
|
250 |
OCL_type[Id]="xPU" |
|
250 | 251 |
OCL_description[Id]=device.name.lstrip().rstrip() |
251 | 252 |
print "* Device #%i from %s of type %s : %s" % (Id,OCL_vendor[Id],OCL_type[Id],OCL_description[Id]) |
252 | 253 |
Id=Id+1 |
Formats disponibles : Unified diff