Commit eac52642 authored by Philip Carns's avatar Philip Carns

just use mmap buffer on "server" side

parent d5e7b0e3
......@@ -121,11 +121,12 @@ int main(int argc, char **argv)
}
/* allocate one big buffer for rdma transfers */
if(g_opts.mmap_filename == NULL) {
g_buffer = calloc(g_buffer_size, 1);
} else {
/* On server side, optionally use an mmap'd buffer. Always calloc on
* client. */
if(rank == 1 && g_opts.mmap_filename)
g_buffer = custom_mmap_alloc(g_opts.mmap_filename, g_buffer_size, rank);
}
else
g_buffer = calloc(g_buffer_size, 1);
if(!g_buffer)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment