Révision 192
| Pi/XPU/PiXPU.py (revision 192) | ||
|---|---|---|
| 529 | 529 |
print("No XPU #%i found in all of %i devices, sorry..." % (Device,Id-1))
|
| 530 | 530 |
sys.exit() |
| 531 | 531 |
|
| 532 |
|
|
| 532 | 533 |
# Je cree le contexte et la queue pour son execution |
| 533 | 534 |
try: |
| 534 |
ctx = cl.Context([XPU]) |
|
| 535 |
ctx = cl.Context(devices=[XPU])
|
|
| 535 | 536 |
queue = cl.CommandQueue(ctx,properties=cl.command_queue_properties.PROFILING_ENABLE) |
| 536 | 537 |
except: |
| 537 | 538 |
print("Crash during context creation")
|
| ... | ... | |
| 762 | 763 |
Iterations = numpy.uint64(arg) |
| 763 | 764 |
elif opt in ("-b", "--blocksbegin"):
|
| 764 | 765 |
BlocksBegin = int(arg) |
| 766 |
BlocksEnd= BlocksBegin |
|
| 765 | 767 |
elif opt in ("-e", "--blocksend"):
|
| 766 | 768 |
BlocksEnd = int(arg) |
| 767 | 769 |
elif opt in ("-s", "--blocksstep"):
|
| 768 | 770 |
BlocksStep = int(arg) |
| 769 | 771 |
elif opt in ("-f", "--threadsfirst"):
|
| 770 | 772 |
ThreadsBegin = int(arg) |
| 773 |
ThreadsEnd = ThreadsBegin |
|
| 771 | 774 |
elif opt in ("-l", "--threadslast"):
|
| 772 | 775 |
ThreadsEnd = int(arg) |
| 773 | 776 |
elif opt in ("-t", "--threadsstep"):
|
| Pi/XPU/PiXpuMPI.py (revision 192) | ||
|---|---|---|
| 140 | 140 |
Iterations = numpy.uint64(arg) |
| 141 | 141 |
elif opt in ("-b", "--blocksbegin"):
|
| 142 | 142 |
BlocksBegin = int(arg) |
| 143 |
BlocksEnd = BlocksBegin |
|
| 143 | 144 |
elif opt in ("-e", "--blocksend"):
|
| 144 | 145 |
BlocksEnd = int(arg) |
| 145 | 146 |
elif opt in ("-s", "--blocksstep"):
|
| 146 | 147 |
BlocksStep = int(arg) |
| 147 | 148 |
elif opt in ("-f", "--threadsfirst"):
|
| 148 | 149 |
ThreadsBegin = int(arg) |
| 150 |
ThreadsEnd = ThreadsBegin |
|
| 149 | 151 |
elif opt in ("-l", "--threadslast"):
|
| 150 | 152 |
ThreadsEnd = int(arg) |
| 151 | 153 |
elif opt in ("-t", "--threadsstep"):
|
| Pi/XPU/PiXpuThreads.py (revision 192) | ||
|---|---|---|
| 143 | 143 |
Iterations = numpy.uint64(arg) |
| 144 | 144 |
elif opt in ("-b", "--blocksbegin"):
|
| 145 | 145 |
BlocksBegin = int(arg) |
| 146 |
BlocksEnd = BlocksBegin |
|
| 146 | 147 |
elif opt in ("-e", "--blocksend"):
|
| 147 | 148 |
BlocksEnd = int(arg) |
| 148 | 149 |
elif opt in ("-s", "--blocksstep"):
|
| 149 | 150 |
BlocksStep = int(arg) |
| 150 | 151 |
elif opt in ("-f", "--threadsfirst"):
|
| 151 | 152 |
ThreadsBegin = int(arg) |
| 153 |
ThreadsEnd = ThreadsBegin |
|
| 152 | 154 |
elif opt in ("-l", "--threadslast"):
|
| 153 | 155 |
ThreadsEnd = int(arg) |
| 154 | 156 |
elif opt in ("-t", "--threadsstep"):
|
Formats disponibles : Unified diff