Changeset 718 for soft/giet_vm/applications/convol
- Timestamp:
- Oct 9, 2015, 3:51:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/convol/convol.c
r708 r718 727 727 unsigned int nthreads = nclusters * nprocs; 728 728 729 // get a shared TTY 730 giet_tty_alloc( 1 ); 731 lock_init( &tty_lock ); 732 733 // get FBF size 734 unsigned int width; 735 unsigned int height; 736 giet_fbf_size( &width , &height ); 737 729 738 // parameters checking 739 if ( (width != NP) || (height != NL) ) 740 giet_pthread_exit( "[CONVOL ERROR] FBF size must be NP * NL\n"); 730 741 if ((nprocs != 1) && (nprocs != 2) && (nprocs != 4) && (nprocs != 8)) 731 742 giet_pthread_exit( "[CONVOL ERROR] NB_PROCS_MAX must be 1, 2, 4 or 8\n"); … … 743 754 giet_pthread_exit( "[CONVOL ERROR] X_SIZE*Y_SIZE must be a divider of NP"); 744 755 745 // get a shared TTY 746 giet_tty_alloc( 1 ); 747 lock_init( &tty_lock ); 748 756 // get FBF ownership 757 giet_fbf_alloc(); 758 749 759 // initializes the distributed heap[x,y] 750 760 for ( cx = 0 ; cx < x_size ; cx++ )
Note: See TracChangeset
for help on using the changeset viewer.