Ignore:
Timestamp:
Feb 12, 2014, 9:51:23 AM (10 years ago)
Author:
alain
Message:
  • Updatre the gier_tsar to support the vci_iopic component in the tsar_generic_leti plat-form.
  • Modify the soft_transpose_giet application to make optional the graphic display on frame buffer and to introduce a systematic auto-check
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/soft_sort_giet/main.c

    r626 r629  
    5757    /* Hello World */
    5858
    59     task0_printf("\n[ PROC %d\t] Starting SORT application\n", proc_id);
    60 
    61     task0_printf("[ PROC %d\t] MESH %d x %d x %d processors\n",
    62                  proc_id, X_SIZE, Y_SIZE, NB_PROCS_MAX);
    63 
    64     /**************************************************************************/
    65     /* Barriers Inititialitatin */
     59    task0_printf("\n[ PROC_%d_%d_%d ] Starting SORT application\n",x,y,lid);
     60
     61    task0_printf("[ PROC_%d_%d_%d ] MESH %d x %d x %d processors\n",
     62                 x,y,lid, X_SIZE, Y_SIZE, NB_PROCS_MAX);
     63
     64    /**************************************************************************/
     65    /* Barriers Initialisation */
    6666
    6767    if (thread_id == 0)
     
    6969        for (i = 0; i < __builtin_ctz(total_procs); i++)
    7070        {
    71             printf("[ PROC %d\t] Initializing barrier %d with %d\n",
    72                 proc_id, i, total_procs >> i);
     71            printf("[ PROC_%d_%d_%d ] Initializing barrier %d with %d\n",
     72                x,y,lid, i, total_procs >> i);
    7373
    7474            _barrier_init(i, total_procs >> i);
    7575        }
    76 
     76        printf("\n");
    7777        asm volatile ("sync");
    7878        init_ok = 1;
     
    8080
    8181    /**************************************************************************/
    82     /* Array Inititialitatin */
     82    /* Array Initialisation */
    8383
    8484    for (i = IPP * thread_id; i < IPP * (thread_id + 1); i++)
     
    9393    /* Parallel sorting of array pieces */
    9494
    95     printf("[ PROC %d\t] Stage 0: Processor Sorting...\n\r", proc_id);
     95    printf("[ PROC_%d_%d_%d ] Stage 0: Starting...\n\r", x,y,lid);
    9696    bubbleSort(array0, IPP, IPP * thread_id);
    97     printf("[ PROC %d\t] Stage 0: Finishing...\n\r", proc_id);
     97    printf("[ PROC_%d_%d_%d ] Stage 0: Finishing...\n\r", x,y,lid);
    9898
    9999    for (i = 0; i < __builtin_ctz(total_procs); i++)
     
    104104        if((thread_id % (2 << i)) != 0) _exit();
    105105
    106         printf("[ PROC %d\t] Stage %d: Starting...\n\r", proc_id, i+1);
     106        printf("[ PROC_%d_%d_%d ] Stage %d: Starting...\n\r", x,y,lid, i+1);
    107107
    108108        if((i % 2) == 0)
     
    124124                );
    125125
    126         printf("[ PROC %d\t] Stage %d: Finishing...\n\r", proc_id, i+1);
     126        printf("[ PROC_%d_%d_%d ] Stage %d: Finishing...\n\r", x,y,lid, i+1);
    127127    }
    128128
     
    147147        if (success)
    148148        {
    149             printf("[ PROC %d\t] Success!!\n\r", proc_id);
     149            printf("[ PROC_%d_%d_%d ] Success!!\n\r", x,y,lid);
    150150        }
    151151        else
Note: See TracChangeset for help on using the changeset viewer.