mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
enable cache warm up
This commit is contained in:
parent
053d0ec76a
commit
a90238ea79
2 changed files with 12 additions and 9 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include "RCCE.h"
|
||||
|
||||
#undef _CACHE_WARM_UP_
|
||||
#define _CACHE_WARM_UP_
|
||||
#undef _ERROR_CHECK_
|
||||
|
||||
#define MAXBUFSIZE 1024*1024*64
|
||||
|
@ -30,9 +30,9 @@
|
|||
#define NUMROUNDS 10000
|
||||
|
||||
|
||||
char send_buffer[MAXBUFSIZE+1] __attribute__ ((aligned (32)));
|
||||
char recv_buffer[MAXBUFSIZE+1] __attribute__ ((aligned (32)));
|
||||
char dummy = 0;
|
||||
static char send_buffer[MAXBUFSIZE+1] __attribute__ ((aligned (32)));
|
||||
static char recv_buffer[MAXBUFSIZE+1] __attribute__ ((aligned (32)));
|
||||
static char dummy = 0;
|
||||
|
||||
int RCCE_APP(int argc, char **argv)
|
||||
{
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include "RCCE.h"
|
||||
|
||||
#undef _CACHE_WARM_UP_
|
||||
#define _CACHE_WARM_UP_
|
||||
#undef _USE_SEPARATED_BUFFERS_
|
||||
#undef _ERROR_CHECK_
|
||||
|
||||
|
@ -32,14 +32,14 @@
|
|||
|
||||
|
||||
#ifdef _USE_SEPARATED_BUFFERS_
|
||||
char send_buffer[MAXBUFSIZE+1] __attribute__ ((aligned (32)));
|
||||
char recv_buffer[MAXBUFSIZE+1] __attribute__ ((aligned (32)));
|
||||
static char send_buffer[MAXBUFSIZE+1] __attribute__ ((aligned (32)));
|
||||
static char recv_buffer[MAXBUFSIZE+1] __attribute__ ((aligned (32)));
|
||||
#else
|
||||
#define send_buffer buffer
|
||||
#define recv_buffer buffer
|
||||
char buffer[MAXBUFSIZE+1] __attribute__ ((aligned (32)));
|
||||
static char buffer[MAXBUFSIZE+1] __attribute__ ((aligned (32)));
|
||||
#endif
|
||||
char dummy = 0;
|
||||
static char dummy = 0;
|
||||
|
||||
int RCCE_APP(int argc, char **argv)
|
||||
{
|
||||
|
@ -83,6 +83,9 @@ int RCCE_APP(int argc, char **argv)
|
|||
|
||||
if(argc > 3) ircce_mode = 1;
|
||||
|
||||
if (ircce_mode && !my_rank)
|
||||
printf("Use iRCCE mode\n");
|
||||
|
||||
if(num_ranks != 2)
|
||||
{
|
||||
if(my_rank == 0) fprintf(stderr, "Pingpong needs exactly two UEs; try again\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue