Changeset 629 for trunk/softs/soft_sort_giet
- Timestamp:
- Feb 12, 2014, 9:51:23 AM (11 years ago)
- Location:
- trunk/softs/soft_sort_giet
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/soft_sort_giet/hard_config.h
r626 r629 14 14 #define NB_PROCS_MAX 4 15 15 16 #define USE_EXT_IO 1 17 16 18 #define NB_DMA_CHANNELS 0 17 #define NB_TTY_CHANNELS (NB_PROCS_MAX * X_SIZE * Y_SIZE)18 19 #define NB_HBA_CHANNELS 0 19 20 #define NB_NIC_CHANNELS 0 20 21 #define NB_CMA_CHANNELS 0 21 22 23 #define NB_TTY_CHANNELS 4 22 24 23 25 #endif //_HARD_CONFIG_H -
trunk/softs/soft_sort_giet/ldscript
r626 r629 1 1 /********************************************************** 2 2 File : ldscript 3 Author : Cesar Fuguet3 Author : Alain Greiner 4 4 Date : January 2014 5 5 **********************************************************/ … … 23 23 24 24 seg_xcu_base = 0xF0000000; /* controler XCU */ 25 seg_tty_base = 0xF 2000000; /* controler TTY */25 seg_tty_base = 0xF4000000; /* controler TTY */ 26 26 seg_fbf_base = 0xF3000000; /* controler FBF */ 27 seg_ioc_base = 0xF4000000; /* controler IOC */ 28 seg_mmc_base = 0xFF000000; /* config MMC */ 27 seg_ioc_base = 0xF2000000; /* controler IOC */ 28 seg_nic_base = 0xF7000000; /* controler NIC */ 29 seg_cma_base = 0xF8000000; /* controler CMA */ 30 seg_pic_base = 0xF9000000; /* controler PIC */ 31 seg_mmc_base = 0xE0000000; /* config MMC */ 29 32 30 33 -
trunk/softs/soft_sort_giet/main.c
r626 r629 57 57 /* Hello World */ 58 58 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 Initi tialitatin */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 */ 66 66 67 67 if (thread_id == 0) … … 69 69 for (i = 0; i < __builtin_ctz(total_procs); i++) 70 70 { 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); 73 73 74 74 _barrier_init(i, total_procs >> i); 75 75 } 76 76 printf("\n"); 77 77 asm volatile ("sync"); 78 78 init_ok = 1; … … 80 80 81 81 /**************************************************************************/ 82 /* Array Initi tialitatin */82 /* Array Initialisation */ 83 83 84 84 for (i = IPP * thread_id; i < IPP * (thread_id + 1); i++) … … 93 93 /* Parallel sorting of array pieces */ 94 94 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); 96 96 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); 98 98 99 99 for (i = 0; i < __builtin_ctz(total_procs); i++) … … 104 104 if((thread_id % (2 << i)) != 0) _exit(); 105 105 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); 107 107 108 108 if((i % 2) == 0) … … 124 124 ); 125 125 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); 127 127 } 128 128 … … 147 147 if (success) 148 148 { 149 printf("[ PROC %d\t] Success!!\n\r", proc_id);149 printf("[ PROC_%d_%d_%d ] Success!!\n\r", x,y,lid); 150 150 } 151 151 else
Note: See TracChangeset
for help on using the changeset viewer.