Changeset 720 for soft/giet_vm/applications/classif
- Timestamp:
- Oct 11, 2015, 6:23:18 PM (9 years ago)
- Location:
- soft/giet_vm/applications/classif
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/classif/classif.c
r708 r720 546 546 giet_proc_xyp( &x_id , &y_id , &p_id ); 547 547 548 // get & checkplat-form parameters548 // get plat-form parameters 549 549 unsigned int x_size; // number of clusters in a row 550 550 unsigned int y_size; // number of clusters in a column … … 552 552 giet_procs_number( &x_size , &y_size , &nprocs ); 553 553 554 // shared TTY allocation 555 giet_tty_alloc( 1 ); 556 lock_init( &tty_lock); 557 558 // check plat-form parameters 554 559 giet_pthread_assert( ((nprocs >= 3) && (nprocs <= 8)), 555 560 "[CLASSIF ERROR] number of procs per cluster must in [3...8]"); … … 570 575 } 571 576 572 // shared TTY allocation573 giet_tty_alloc( 1 );574 lock_init( &tty_lock);575 576 577 printf("\n[CLASSIF] start at cycle %d on %d cores\n", 577 578 giet_proctime(), (x_size * y_size * nprocs) ); 578 579 579 580 // thread index 580 // required b tpthread_create()581 // required by pthread_create() 581 582 // unused in this appli because no pthread_join() 582 583 pthread_t trdid; -
soft/giet_vm/applications/classif/classif.py
r712 r720 56 56 57 57 # create vspace 58 vspace = mapping.addVspace( name = 'classif', startname = 'classif_data', active = False ) 58 vspace = mapping.addVspace( name = 'classif', 59 startname = 'classif_data', 60 active = False ) 59 61 60 62 # data vseg : shared / cluster[0][0] … … 88 90 local = True ) 89 91 90 # stacks vsegs: local (one stack per processor=> nprocs stacks per cluster)92 # stacks vsegs: local (one stack per thread => nprocs stacks per cluster) 91 93 # ... plus main_stack in cluster[0][0] 92 94 mapping.addVseg( vspace, 'main_stack', … … 133 135 'classif_stack_%d_%d_%d' % (x,y,p), 134 136 'classif_heap_%d_%d' % (x,y), 135 start_index ) # index in start_vector137 start_index ) 136 138 137 139 # extend mapping name
Note: See TracChangeset
for help on using the changeset viewer.