Skip to content

Commit

Permalink
Fix for commit a9df5ed7f04484b6838ee2b48246be1ab66513f1
Browse files Browse the repository at this point in the history
FreeBSD not supporting contig memory allocation

Signed-off-by: Zohar Ben Aharon <zoharb@mellanox.com>
  • Loading branch information
Zohar Ben Aharon committed Mar 11, 2018
1 parent e1947a0 commit 3d9815e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/perftest_resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,10 @@ int create_single_mr(struct pingpong_context *ctx, struct perftest_parameters *u
uint64_t exp_flags = IBV_EXP_ACCESS_LOCAL_WRITE;
#endif

#if defined(__FreeBSD__)
ctx->is_contig_supported = FAILURE;
#endif

/* ODP */
#if defined HAVE_EX_ODP || defined HAVE_EXP_ODP
if (user_param->use_odp) {
Expand All @@ -1164,7 +1168,6 @@ int create_single_mr(struct pingpong_context *ctx, struct perftest_parameters *u
}
#endif

ctx->is_contig_supported = FAILURE;

#ifdef HAVE_CUDA
if (user_param->use_cuda) {
Expand Down

0 comments on commit 3d9815e

Please sign in to comment.