Ignore:
Timestamp:
Oct 9, 2015, 3:51:21 PM (9 years ago)
Author:
alain
Message:

Modify sort application to use the pthreads API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/convol/convol.c

    r708 r718  
    727727    unsigned int nthreads   = nclusters * nprocs;     
    728728
     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
    729738    // parameters checking
     739    if ( (width != NP) || (height != NL) )
     740        giet_pthread_exit( "[CONVOL ERROR] FBF size must be NP * NL\n");
    730741    if ((nprocs != 1) && (nprocs != 2) && (nprocs != 4) && (nprocs != 8))
    731742        giet_pthread_exit( "[CONVOL ERROR] NB_PROCS_MAX must be 1, 2, 4 or 8\n");
     
    743754        giet_pthread_exit( "[CONVOL ERROR] X_SIZE*Y_SIZE must be a divider of NP");
    744755
    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 
    749759    // initializes the distributed heap[x,y]
    750760    for ( cx = 0 ; cx < x_size ; cx++ )
Note: See TracChangeset for help on using the changeset viewer.