Ignore:
Timestamp:
Jun 1, 2016, 10:25:43 AM (8 years ago)
Author:
meunier
Message:

In rosenfeld:

  • Updated nrio0, nrio1, nrio2, nrio1f, nrio2f, nrio1x, nrbool1, nrbool2 and nralloc1 in the nrc2 lib in order to use macro-typed functions
  • Updated the simulation script to include performance evaluation with random images, and a script to generate graphs
  • Updated the clock.h to use 64-bit integers, which potentially breaks the printing on the giet
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/rosenfeld/include/mca.h

    r821 r822  
    2626
    2727
    28 // QM : using mutex lock instead of mutexlock,
    29 // because apparently mutexlocks cause a bug in valgrind
     28// QM : using mutex lock instead of spinlock,
     29// because apparently spinlocks cause a bug in valgrind
    3030// (solved but the installed version is not recent enough)
    3131// cf. https://bugs.kde.org/show_bug.cgi?id=336435
    3232pthread_mutex_t print_lock;
    3333
    34 #define MCA_VERBOSE0(X) ({                 \
     34
     35
     36
     37#if MCA_VERBOSE_LEVEL >= 1
     38    #define MCA_VERBOSE1(X) ({             \
    3539        pthread_mutex_lock(&print_lock);   \
    3640        X;                                 \
    3741        pthread_mutex_unlock(&print_lock); \
    3842        })
    39 #define MCA_VERBOSE1(X) ({                 \
     43#else
     44    #define MCA_VERBOSE1(X)
     45#endif
     46
     47#if MCA_VERBOSE_LEVEL >= 2
     48    #define MCA_VERBOSE2(X) ({             \
    4049        pthread_mutex_lock(&print_lock);   \
    4150        X;                                 \
    4251        pthread_mutex_unlock(&print_lock); \
    4352        })
    44 #define MCA_DISPLAY0(X) ({                 \
     53#else
     54    #define MCA_VERBOSE2(X)
     55#endif
     56
     57#if MCA_VERBOSE_LEVEL >= 3
     58    #define MCA_VERBOSE3(X) ({             \
    4559        pthread_mutex_lock(&print_lock);   \
    4660        X;                                 \
    4761        pthread_mutex_unlock(&print_lock); \
    4862        })
    49 #define MCA_DISPLAY1(X) ({                 \
    50         pthread_mutex_lock(&print_lock);   \
    51         X;                                 \
    52         pthread_mutex_unlock(&print_lock); \
    53         })
    54 
    55 
    56 #define MCA_VERBOSE2(X)
    57 /*
    58 #define MCA_VERBOSE2(X) ({                 \
    59         pthread_mutex_lock(&print_lock);   \
    60         X;                                 \
    61         pthread_mutex_unlock(&print_lock); \
    62         })
    63 */
    64 
    65 #define MCA_DISPLAY2(X)
    66 
     63#else
     64    #define MCA_VERBOSE3(X)
     65#endif
    6766
    6867
Note: See TracChangeset for help on using the changeset viewer.