enables runtime debug messages for RCCE library calls
This commit is contained in:
parent
7d36bb7ed1
commit
f3972a36c4
2 changed files with 5 additions and 3 deletions
|
@ -45,7 +45,7 @@
|
|||
// #include <fcntl.h>
|
||||
|
||||
// En-/ or disable debug prints...
|
||||
#define DEBUG 1
|
||||
#define DEBUG 0
|
||||
|
||||
//......................................................................................
|
||||
// GLOBAL VARIABLES USED BY THE LIBRARY
|
||||
|
|
|
@ -99,14 +99,16 @@ int scc_init(void)
|
|||
mb();
|
||||
end = rdtsc();
|
||||
ticks = end > start ? end - start : start - end;
|
||||
} while(ticks*TIMER_FREQ < 1000ULL*freq*1000000ULL);
|
||||
kprintf("ticks %llu\n", ticks);
|
||||
} while(ticks*TIMER_FREQ < 300ULL*freq*1000000ULL);
|
||||
|
||||
if (RCCE_init(&bootinfo->argc, &bootinfo->argv) != RCCE_SUCCESS)
|
||||
return -ENODEV;
|
||||
if (iRCCE_init() != iRCCE_SUCCESS)
|
||||
return -ENODEV;
|
||||
|
||||
// enable additional outputs
|
||||
RCCE_debug_set(RCCE_DEBUG_ALL);
|
||||
|
||||
my_rank = RCCE_ue();
|
||||
num_ranks = RCCE_num_ues();
|
||||
kprintf("Got rank %d of %d ranks\n", my_rank, num_ranks);
|
||||
|
|
Loading…
Add table
Reference in a new issue