Révision 149
| NBody/NBody.py (revision 149) | ||
|---|---|---|
| 400 | 400 |
for platform in cl.get_platforms(): |
| 401 | 401 |
for device in platform.get_devices(): |
| 402 | 402 |
#deviceType=cl.device_type.to_string(device.type) |
| 403 |
deviceType="*PU"
|
|
| 403 |
deviceType="xPU"
|
|
| 404 | 404 |
print("Device #%i from %s of type %s : %s" % (Id,platform.vendor.lstrip(),deviceType,device.name.lstrip()))
|
| 405 | 405 |
Id=Id+1 |
| 406 | 406 |
sys.exit() |
Formats disponibles : Unified diff