Changeset 824


Ignore:
Timestamp:
Nov 26, 2016, 7:33:20 PM (7 years ago)
Author:
alain
Message:

bloup

Location:
soft/giet_vm/applications
Files:
1 deleted
7 edited

Legend:

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

    r812 r824  
    6565// parameters
    6666
    67 #define DEFAULT_M               16
     67#define DEFAULT_M               12
    6868#define VERBOSE                 0
    6969#define CHECK                   0
     
    208208        {
    209209            i         = x * y_size + y;
    210             data[i]   = (double *)remote_malloc( data_size  , x , y );
    211             trans[i]  = (double *)remote_malloc( data_size  , x , y );
    212             bloup[i]  = (double *)remote_malloc( data_size  , x , y );
    213             umain[i]  = (double *)remote_malloc( coefs_size , x , y );
    214             twid[i]   = (double *)remote_malloc( data_size  , x , y );
     210            data[i]   = (double *)remote_malloc( data_size  , 0 , 0 );
     211            trans[i]  = (double *)remote_malloc( data_size  , 0 , 0 );
     212            bloup[i]  = (double *)remote_malloc( data_size  , 0 , 0 );
     213            umain[i]  = (double *)remote_malloc( coefs_size , 0 , 0 );
     214            twid[i]   = (double *)remote_malloc( data_size  , 0 , 0 );
     215//          data[i]   = (double *)remote_malloc( data_size  , x , y );
     216//          trans[i]  = (double *)remote_malloc( data_size  , x , y );
     217//          bloup[i]  = (double *)remote_malloc( data_size  , x , y );
     218//          umain[i]  = (double *)remote_malloc( coefs_size , x , y );
     219//          twid[i]   = (double *)remote_malloc( data_size  , x , y );
    215220        }
    216221    }
  • soft/giet_vm/applications/hello/Makefile

    r191 r824  
    1 APP_NAME=hello
    21
    3 USE+= stdio.o
     2CC = mipsel-unknown-elf-gcc
     3AS = mipsel-unknown-elf-as
     4LD = mipsel-unknown-elf-ld
     5DU = mipsel-unknown-elf-objdump
     6AR = mipsel-unknown-elf-ar
    47
    5 USES=$(patsubst %,$(BUILD_PATH)/$(LIB_NAME)/%,$(USE))
     8APP_NAME = hello
    69
    7 OBJS= main.o
     10LIBS = -L../../build/libs -luser
    811
    9 all: $(APP_NAME).elf
     12LIB_DEPS = ../../build/libs/libuser.a
    1013
    11 BIN_NAME_PATH=$(BUILD_PATH)$(APP_NAME).elf
     14INCLUDES = -I. -I../.. -I../../giet_libs
    1215
    13 $(APP_NAME).elf: $(OBJS) $(APP_NAME).ld
    14         $(LD) -o $(BIN_NAME_PATH) -T $(APP_NAME).ld $(OBJS) $(USES)
    15         $(DU) -D $(BIN_NAME_PATH) > $@.txt
     16OBJS= hello.o
     17
     18appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) $(APP_NAME).py
     19        $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS)
     20        $(DU) -D $@ > $@.txt
    1621
    1722%.o: %.c
    18         $(CC)  $(INCLUDE) $(CFLAGS) $($*.o_CFLAGS) -c -o  $@ $<
    19         $(DU) -D  $@ >  $@.txt
    20 
     23        $(CC)  $(INCLUDES) $(CFLAGS) -c -o  $@ $<
    2124
    2225clean:
    23         rm -f *.o *.elf *.txt core *~ 2>$(TRASH)
    24         rm $(BIN_NAME_PATH) 2>$(TRASH)
     26        rm -f *.o *.elf *.txt core *~
  • soft/giet_vm/applications/hello/hello.ld

    r258 r824  
    33*****************************************************************************/
    44
    5 seg_code_base      = 0x00400000;
    6 seg_data_base      = 0x00500000;       
     5seg_code_base      = 0x10000000;
     6seg_data_base      = 0x20000000;       
    77
    88/***************************************************************************
  • soft/giet_vm/applications/raycast/raycast.c

    r724 r824  
    8484
    8585    // Allocate buffer and status for CMA
    86     buf = malloc(FBUF_X_SIZE * FBUF_Y_SIZE);
     86    buf = malloc(fbuf_x_size * fbuf_x_size);
    8787    sts = malloc(64);
    8888
     
    141141
    142142        // Wait last slice completion
    143         while (slice_count < FBUF_X_SIZE)  giet_tty_printf(" ");
     143        while (slice_count < fbuf_x_size)  giet_tty_printf(" ");
    144144
    145145        // display image
  • soft/giet_vm/applications/raycast/raycast.py

    r708 r824  
    3434
    3535    # define vsegs base & size
    36     code_base  = 0x10000000
    37     code_size  = 0x00010000     # 64 Kbytes
     36    code_base  = 0x10000000     # replicated in all clusters
     37    code_size  = 0x00010000     # 64 Kbytes per cluster
    3838   
    39     data_base  = 0x20000000
    40     data_size  = 0x00040000     # 256 Kbytes
     39    data_base  = 0x20000000     # non replicated
     40    data_size  = 0x00040000     # 256 Kbytes in cluster 0
    4141
    42     stack_base = 0x40000000
    43     stack_size = 0x00200000     # 2 Mbytes
     42    stack_base = 0x40000000     # distributed in all clusters
     43    stack_size = 0x00010000     # 64 Kbytes per proc
    4444
    45     heap_base  = 0x60000000
    46     heap_size  = 0x00400000     # 4 Mbytes
     45    heap_base  = 0x60000000     # distributed in all clusters
     46    heap_size  = 0x00400000     # 4 Mbytes per cluster
    4747
    4848    # create vspace
     
    7373                for p in xrange( nprocs ):
    7474                    proc_id = (((x * y_size) + y) * nprocs) + p
    75                     size    = (stack_size / nprocs) & 0xFFFFF000
     75                    size    = stack_size
    7676                    base    = stack_base + (proc_id * size)
    7777                    mapping.addVseg( vspace, 'raycast_stack_%d_%d_%d' % (x,y,p),
    7878                                     base, size, 'C_WU', vtype = 'BUFFER',
    7979                                     x = x , y = y , pseg = 'RAM',
    80                                      local = True, big = True )   
     80                                     local = True, big = False )   
    8181
    8282    # heap vsegs : shared (one per cluster)
  • soft/giet_vm/applications/transpose/Makefile

    r708 r824  
    88APP_NAME = transpose
    99
    10 OBJS= transpose.o
     10OBJS = transpose.o
    1111
    1212LIBS= -L../../build/libs -luser
     
    1616LIB_DEPS = ../../build/libs/libuser.a
    1717
    18 appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS)
     18appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) $(APP_NAME).py
    1919        $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS)
    2020        $(DU) -D $@ > $@.txt
  • soft/giet_vm/applications/transpose/transpose.py

    r775 r824  
    1515#    - The code vsegs are replicated on all clusters containing processors.
    1616#    - There is one heap vseg per cluster containing processors.
    17 #    - The stacks vsegs are distibuted on all clusters containing processors.
     17#    - The stacks vsegs are distributed on all clusters containing processors.
    1818#  This mapping uses 5 platform parameters, (obtained from the "mapping" argument)
    1919#    - x_size    : number of clusters in a row
Note: See TracChangeset for help on using the changeset viewer.