Révision 177 Pi/XPU/PiXPU.py

PiXPU.py (revision 177)
437 437

  
438 438
    try:
439 439
        #mod = SourceModule(KernelCodeCuda(),options=['--compiler-options','-DTRNG=%i -DTYPE=%s' % (Marsaglia[RNG],Computing[ValueType])])
440
        mod = SourceModule(KernelCodeCuda(),options=['--compiler-options','-DTRNG=%i -DTYPE=%s' % (Marsaglia[RNG],Computing[ValueType])])
440
        #mod = SourceModule(KernelCodeCuda(),nvcc='nvcc',keep=True)
441
        # Needed to set the compiler via ccbin for CUDA9 implementation
442
        mod = SourceModule(KernelCodeCuda(),options=['-ccbin','clang-3.8','--compiler-options','-DTRNG=%i' % Marsaglia[RNG],'-DTYPE=%s' % Computing[ValueType]],keep=True)
441 443
    except:
442
        print("Compilation seems to broke")
444
        print("Compilation seems to break")
443 445
 
444 446
    MetropolisBlocksCU=mod.get_function("MainLoopBlocks")
445 447
    MetropolisThreadsCU=mod.get_function("MainLoopThreads")
......
474 476
    print(OutputCU)
475 477
    Context.pop()
476 478
    
477
    #Context.detach()
479
    Context.detach()
478 480
    return(OutputCU)
479 481

  
480 482
def MetropolisOpenCL(InputCL):

Formats disponibles : Unified diff