Ignore:
Timestamp:
Oct 1, 2015, 4:09:25 PM (9 years ago)
Author:
alain
Message:

Adapt the following application to the POSIX threads API

  • convol
  • classif
  • raycast
  • coproc
  • display
  • gameoflife
  • transpose
  • shell
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/coproc/coproc.py

    r610 r708  
    3333    x = 0
    3434    y = 0
    35     p = 0
     35    p = 1
    3636
    3737    assert( (x < x_size) and (y < y_size) )
     
    5050
    5151    # create vspace
    52     vspace = mapping.addVspace( name = 'coproc', startname = 'coproc_data' )
     52    vspace = mapping.addVspace( name = 'coproc', startname = 'coproc_data', active = False )
    5353   
    5454    # data vseg in cluster[x,y]
     
    6969                     local = False, big = True )
    7070
    71     # one task on processor[x,y,0]
    72     mapping.addTask( vspace, 'coproc', 0 , x , y , 0 ,
    73                      'coproc_stack' , '' , 0 )
     71    # one thread on processor[x,y,p]
     72    mapping.addThread( vspace,
     73                       'coproc',
     74                       True,                    # is_main
     75                       x, y, p,
     76                       'coproc_stack',
     77                       '',                      # no heap
     78                       0 )                      # start_id
    7479
    7580    # extend mapping name
Note: See TracChangeset for help on using the changeset viewer.