Changeset 384 for soft/giet_vm


Ignore:
Timestamp:
Aug 7, 2014, 12:28:23 PM (10 years ago)
Author:
alain
Message:

Update the convol application to use the new malloc.h and barrier.h libraries.

Location:
soft/giet_vm/convol
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/convol/convol.py

    r353 r384  
    5656    for x in xrange (x_size):
    5757        for y in xrange (y_size):
    58            
    5958            size       = code_size
    6059            base       = code_base
     
    6766    for x in xrange (x_size):
    6867        for y in xrange (y_size):
    69            
    7068            cluster_id = (x * y_size) + y
    7169            size       = heap_size / (x_size * y_size)
     
    7977        for y in xrange (y_size):
    8078            for p in xrange( procs_max ):
    81 
    8279                proc_id = (((x * y_size) + y) * procs_max) + p
    8380                size    = stack_size / (x_size * y_size * procs_max)
     
    9087    for x in xrange (x_size):
    9188        for y in xrange (y_size):
    92            
    9389            size       = ptab_size
    9490            base       = ptab_base
     
    10298        for y in xrange (y_size):
    10399            for p in xrange( procs_max ):
    104 
    105100                trdid = (((x * y_size) + y) * procs_max) + p
    106101                mapping.addTask( vspace, 'sort_%d_%d_%d' % (x,y,p), trdid, x, y, p,
  • soft/giet_vm/convol/main.c

    r377 r384  
    1111#include "stdlib.h"
    1212#include "barrier.h"
    13 #include "remote_malloc.h"
     13#include "malloc.h"
    1414
    1515#define USE_SBT_BARRIER            1
     
    183183#endif
    184184
    185         GA[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)   , 9 , x , y );
    186         GB[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)*2 , 9 , x , y );
    187         GC[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)*2 , 9 , x , y );
    188         GD[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)*2 , 9 , x , y );
    189         GZ[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)/2 , 9 , x , y );
     185        GA[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)   , x , y );
     186        GB[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)*2 , x , y );
     187        GC[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)*2 , x , y );
     188        GD[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)*2 , x , y );
     189        GZ[cluster_id] = remote_malloc( (FRAME_SIZE/nclusters)/2 , x , y );
    190190       
    191191#if VERBOSE
Note: See TracChangeset for help on using the changeset viewer.