-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add RoCE support for tests #13
base: devel
Are you sure you want to change the base?
Conversation
@@ -1,9 +1,9 @@ | |||
/* | |||
* GPUDirect Async latency benchmark | |||
* | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please address whitespace issues in a different pull req ?
@@ -193,8 +193,22 @@ static int pp_connect_ctx(struct pingpong_context *ctx, int port, int my_psn, | |||
|
|||
ctx->ah = ibv_create_ah(ctx->pd, &ah_attr); | |||
if (!ctx->ah) { | |||
fprintf(stderr, "Failed to create AH\n"); | |||
return 1; | |||
union ibv_gid dgid; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could add a comment describing this fallback code.
e.g.. "this code is required for RoCE V1 and/or V2 blabla"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ferasd could you please review this change ?
as a context, it is required to run this test in RoCE mode.
@@ -918,8 +932,16 @@ int main(int argc, char *argv[]) | |||
|
|||
ctx->ah = ibv_create_ah(ctx->pd, &ah_attr); | |||
if (!ctx->ah) { | |||
fprintf(stderr, "Failed to create AH\n"); | |||
return 1; | |||
ah_attr.is_global = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as before, add a comment here
@ksang I'm going to integrate the cleaup branch into devel. can you please rebase this change on that other branch or wait ? |
Issue #10
Only tested loopback test as I don't have env for MPI test running on two nodes.