-
Notifications
You must be signed in to change notification settings - Fork 129
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
Code enhancements #1429
base: develop
Are you sure you want to change the base?
Code enhancements #1429
Conversation
…to MEM_LEAK_FIXES Syncing remote changes
Mem leak fixes
Deleting temporary scripts I created for debugging and testing
Mem leak test tools
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.
This looks good to me.
@@ -505,9 +510,6 @@ ncclResult_t ncclIbInit(ncclDebugLogger_t logFunction) { | |||
ncclIbMergedDevs[mergedDev].speed += ncclIbDevs[ncclNIbDevs].speed; | |||
ncclNIbDevs++; | |||
nPorts++; | |||
// [RCCL] | |||
pthread_detach(ncclIbAsyncThread); | |||
// [/RCCL] |
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.
Why removing pthread_detach? This was added to fix a memory leak issue.
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.
pthread_detach() is being called twice with same parameter, first time at line 486, second call will simply return -1 and it is not being checked, and has no effect.
Details
Enhancing code
Work item: "Internal"
What were the changes?
Modifying / enhancing failure path in ncclIBInit()
Why were the changes made?
Code improvements
How was the outcome achieved?
Analyzing the code with debugger
Additional Documentation:
pthread_detach() call is removed as it is a side effect of earlier nccl sync
Approval Checklist
Do not approve until these items are satisfied.