Changeset 628 for trunk/user/sort


Ignore:
Timestamp:
May 6, 2019, 1:28:01 PM (6 years ago)
Author:
alain
Message:

Introduce teh page_min / page_max mechanism in the fatfs_release_inode()
function, to avoid to scan all pages in FAT mapper.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/sort/sort.c

    r627 r628  
    2929#include <hal_macros.h>
    3030
    31 #define ARRAY_LENGTH        4096       // number of items
     31#define ARRAY_LENGTH        1024       // number of items
    3232#define MAX_THREADS         1024       // 16 * 16 * 4
    3333
     
    3535#define DISPLAY_ARRAY       0          // display items values before and after
    3636#define DEBUG_MAIN          1          // trace main function
    37 #define DEBUG_SORT          0          // trace sort function
     37#define DEBUG_SORT          1          // trace sort function
    3838#define INTERACTIVE_MODE    0          // activate idbg() during instrumentation
    3939#define CHECK_RESULT        0          // for debug
     
    337337
    338338#if DEBUG_MAIN
    339 printf("\n[sort] main completes barrier init\n");
     339if( USE_DQT_BARRIER ) printf("\n[sort] main completes DQT barrier init\n");
     340else                  printf("\n[sort] main completes simple barrier init\n");
    340341#endif
    341342
Note: See TracChangeset for help on using the changeset viewer.