Révision 192 Pi/XPU/PiXPU.py

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"):

Formats disponibles : Unified diff