Changeset 588 for trunk/user/sort
- Timestamp:
- Nov 1, 2018, 12:44:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/sort/sort.c
r574 r588 28 28 #include <hal_macros.h> 29 29 30 #define ARRAY_LENGTH 0x100 // 256 values31 32 #define MAX_THREADS 1024 // 16 * 16 * 430 #define ARRAY_LENGTH 0x1000 // 4096 values 31 32 #define MAX_THREADS 1024 // 16 * 16 * 4 33 33 34 34 #define DISPLAY_ARRAY 0 … … 60 60 61 61 //////////////////////////////////// 62 static void bubbleSort( 63 int * array, 64 unsigned int length, 65 unsigned int init_pos ) 62 static void bubbleSort( int * array, 63 unsigned int length, 64 unsigned int init_pos ) 66 65 { 67 66 unsigned int i; … … 84 83 85 84 86 ///////////////////////// 87 static void merge( 88 const int * src, 89 int * dst, 90 int length, 91 int init_pos_src_a, 92 int init_pos_src_b, 93 int init_pos_dst ) 85 /////////////////////////////////// 86 static void merge( const int * src, 87 int * dst, 88 int length, 89 int init_pos_src_a, 90 int init_pos_src_b, 91 int init_pos_dst ) 94 92 { 95 93 int i; … … 129 127 } // end merge() 130 128 131 ///////////////////////// 129 ////////////////////////////////////// 132 130 static void sort( const args_t * ptr ) 133 131 { … … 252 250 } 253 251 254 printf("\n[SORT] main starts on core[%x,%d] / %d thread(s) / %d values \n",255 main_cxy, main_lid, threads, ARRAY_LENGTH );252 printf("\n[SORT] main starts on core[%x,%d] / %d thread(s) / %d values / PID %x\n", 253 main_cxy, main_lid, threads, ARRAY_LENGTH, getpid() ); 256 254 257 255 // Barrier initialization
Note: See TracChangeset
for help on using the changeset viewer.