Révision 157
| Pi/XPU/PiXpuMPI.py (revision 157) | ||
|---|---|---|
| 100 | 100 |
for platform in cl.get_platforms(): |
| 101 | 101 |
for device in platform.get_devices(): |
| 102 | 102 |
#deviceType=cl.device_type.to_string(device.type) |
| 103 |
deviceType="*PU"
|
|
| 103 |
deviceType="xPU"
|
|
| 104 | 104 |
print("Device #%i from %s of type %s : %s" % (Id,platform.vendor.lstrip(),deviceType,device.name.lstrip()))
|
| 105 | 105 |
Id=Id+1 |
| 106 | 106 |
|
| Pi/XPU/PiXpuThreads.py (revision 157) | ||
|---|---|---|
| 103 | 103 |
for platform in cl.get_platforms(): |
| 104 | 104 |
for device in platform.get_devices(): |
| 105 | 105 |
#deviceType=cl.device_type.to_string(device.type) |
| 106 |
deviceType="*PU"
|
|
| 106 |
deviceType="xPU"
|
|
| 107 | 107 |
print("Device #%i from %s of type %s : %s" % (Id,platform.vendor.lstrip(),deviceType,device.name.lstrip()))
|
| 108 | 108 |
Id=Id+1 |
| 109 | 109 |
|
| Pi/XPU/PiXPU.py (revision 157) | ||
|---|---|---|
| 698 | 698 |
for platform in cl.get_platforms(): |
| 699 | 699 |
for device in platform.get_devices(): |
| 700 | 700 |
#deviceType=cl.device_type.to_string(device.type) |
| 701 |
deviceType="*PU"
|
|
| 701 |
deviceType="xPU"
|
|
| 702 | 702 |
print("Device #%i from %s of type %s : %s" % (Id,platform.vendor.lstrip(),deviceType,device.name.lstrip()))
|
| 703 | 703 |
Id=Id+1 |
| 704 | 704 |
|
Formats disponibles : Unified diff