Exemplo n.º 1
0
def inner():
    scorep.region_begin("inner")

    tmp = 1
    c.Barrier()
    for i in xrange(100):
        tmp *= i + 1

    scorep.region_end("inner")
Exemplo n.º 2
0
def example():
    d = 2356

    scorep.region_begin('example')

    comm.send(d,dest=(rank+1)%size)
    data=comm.recv(source=(rank-1)%size)

    scorep.enable_recording()

    comm.send(d,dest=(rank+1)%size)
    data=comm.recv(source=(rank-1)%size)

    scorep.disable_recording()

    scorep.region_end('example')
    print data
Exemplo n.º 3
0
 def wrapper():
   a= function.__name__
   scorep.region_begin(a)
   function()
   scorep.region_end(a)
Exemplo n.º 4
0
def outer():
    scorep.region_begin("outer")
    c.Barrier()
    for i in xrange(100):
        inner()
    scorep.region_end("outer")