Changeset 744 for trunk/softs/soft_transpose_giet/main.c
- Timestamp:
- Jul 10, 2014, 11:23:57 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/soft_transpose_giet/main.c
r631 r744 12 12 #define PRINTF(...) ({ if (lpid == 0) { _tty_printf(__VA_ARGS__); } }) 13 13 14 #define DISPLAY_OK 1 // enable display on frame buffer when non zero15 #define CHECK_VERBOSE 1// display a detailed check on TTY when non zero16 #define INSTRUMENTATION_OK 0 // display statistcs on TTY when non zero14 #define DISPLAY_OK 1 // enable display on frame buffer when non zero 15 #define CHECK_VERBOSE !DISPLAY_OK // display a detailed check on TTY when non zero 16 #define INSTRUMENTATION_OK 0 // display statistcs on TTY when non zero 17 17 18 18 // tricks to read some addresses from ldscript … … 41 41 unsigned int l; // line index for loops 42 42 unsigned int p; // pixel index for loops 43 44 unsigned int * ioc_address = (unsigned int *) &seg_ioc_base; 45 unsigned int block_size = ioc_address[BLOCK_DEVICE_BLOCK_SIZE]; 46 43 unsigned int block_size = _ioc_get_blocksize(); // get IOC block size 47 44 unsigned int proc_id = _procid(); // processor id 48 45 unsigned int nclusters = X_SIZE*Y_SIZE; // number of clusters … … 128 125 LOAD_END[cluster_id][lpid] = _proctime(); 129 126 127 128 _tty_printf("*** Proc [%d,%d,%d] barrier wait (0)\n", x, y, lpid); 130 129 _barrier_wait(0); 131 130
Note: See TracChangeset
for help on using the changeset viewer.