-
Notifications
You must be signed in to change notification settings - Fork 423
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
Multiple fixes for UCX v1.5.2 #3662
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1896d5d
SPEC/BUILD/NEWS: Update version to v1.5.2
yosefe 53eff99
CONTRIB/JENKINS: Build docs without parallel make
yosefe 19d5172
UCS/TEST: Remove entry from configuration list when library is unloaded
yosefe ed2748f
INFO: ficed crash on ucx_info -fca
608d823
UCP/RMA: Handle ucp_request memory pool allocation failure
yosefe eaa4411
UCP/UCS/UCT: Removing redundant code
yosefe 0cb7b64
UCT/DC: Initialize qp_cap
yosefe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** | ||
* Copyright (C) Mellanox Technologies Ltd. 2019. ALL RIGHTS RESERVED. | ||
* | ||
* See file LICENSE for terms. | ||
*/ | ||
|
||
#include <stdlib.h> | ||
#include <dlfcn.h> | ||
#include <stdio.h> | ||
|
||
#define _QUOTE(x) #x | ||
#define QUOTE(x) _QUOTE(x) | ||
|
||
|
||
static void* do_dlopen_or_exit(const char *filename) | ||
{ | ||
void *handle; | ||
|
||
(void)dlerror(); | ||
printf("opening '%s'\n", filename); | ||
handle = dlopen(filename, RTLD_LAZY); | ||
if (handle == NULL) { | ||
fprintf(stderr, "failed to open %s: %s\n", filename, | ||
dlerror()); | ||
exit(1); | ||
} | ||
|
||
return handle; | ||
} | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
const char *ucs_filename = QUOTE(UCS_LIB_PATH); | ||
const char *uct_filename = QUOTE(UCT_LIB_PATH); | ||
void *ucs_handle, *uct_handle; | ||
int i; | ||
|
||
/* unload and reload uct while ucs is loaded | ||
* would fail if uct global vars are kept on global lists in ucs */ | ||
ucs_handle = do_dlopen_or_exit(ucs_filename); | ||
for (i = 0; i < 2; ++i) { | ||
uct_handle = do_dlopen_or_exit(uct_filename); | ||
dlclose(uct_handle); | ||
} | ||
|
||
/* print all config table, to force going over the global list in ucs */ | ||
void (*print_all_opts)(FILE*,int) = dlsym(ucs_handle, | ||
"ucs_config_parser_print_all_opts"); | ||
print_all_opts(stdout, 0); | ||
dlclose(ucs_handle); | ||
|
||
printf("done\n"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
minor: space after
,