add RCCE test
This commit is contained in:
parent
2f64a5c772
commit
859c11e399
1 changed files with 3 additions and 15 deletions
|
@ -172,6 +172,7 @@ int icc_init(void)
|
|||
int i, z, tmp;
|
||||
uint64_t start, end, ticks, freq = 533;
|
||||
uint32_t cr4;
|
||||
uint32_t msg;
|
||||
|
||||
kputs("Initialize Rock Creek!\n");
|
||||
|
||||
|
@ -212,26 +213,13 @@ int icc_init(void)
|
|||
|
||||
RCCE_barrier(&RCCE_COMM_WORLD);
|
||||
|
||||
#if 0
|
||||
kputs("RCCE test...\t");
|
||||
if (my_ue == 0)
|
||||
if (!RCCE_IAM)
|
||||
msg = 0x4711;
|
||||
if (RCCE_bcast((char*) &msg, sizeof(msg), 0, RCCE_COMM_WORLD) == RCCE_SUCCESS)
|
||||
if ((RCCE_bcast((char*) &msg, sizeof(msg), 0, RCCE_COMM_WORLD) == RCCE_SUCCESS) && (msg == 0x4711))
|
||||
kprintf("successfull! (0x%x)\n", msg);
|
||||
else
|
||||
kprintf("failed! (0x%x)\n", msg);
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
char* str = RCCE_shmalloc(128);
|
||||
if (my_ue == 1) {
|
||||
memset(str, 0x00, 128);
|
||||
strcpy(str, "Hello RCCE_shmalloc\n");
|
||||
}
|
||||
RCCE_barrier(&RCCE_COMM_WORLD);
|
||||
kprintf("RCCE_shmalloc test: %s\n", str);
|
||||
RCCE_shfree(str);
|
||||
#endif
|
||||
|
||||
// reset INTR/LINT0 flag
|
||||
z = Z_PID(RC_MY_COREID);
|
||||
|
|
Loading…
Add table
Reference in a new issue