Skip to content
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

Some minor fixes for compile/usage #41

Merged
merged 2 commits into from
Sep 15, 2016
Merged

Conversation

jia-kai
Copy link
Contributor

@jia-kai jia-kai commented Aug 19, 2016

Two minor modifications are included in this PR:

  1. Add -lrt to LDFLAGS. shm_open needs this flag, and it seems that nvcc automatically adds it; however, if one wants to link libnccl.so manually with other projects using ld, it would fail due to undefined symbol.
  2. Change the type of devlist param in ncclCommInitAll from int* to const int*, since it would not be modified and the user might actually pass a const int pointer.

@sjeaugey sjeaugey merged commit 9ee6189 into NVIDIA:master Sep 15, 2016
@sjeaugey
Copy link
Member

Hi Jia-kai,

Thanks for the fixes !

minsii added a commit to minsii/nccl that referenced this pull request Feb 22, 2024
Summary: Pull Request resolved: facebookresearch#41

Differential Revision: D54004780
minsii added a commit to minsii/nccl that referenced this pull request Mar 14, 2024
Summary: Pull Request resolved: facebookresearch#41

Reviewed By: YulunW

Differential Revision: D54004780

fbshipit-source-id: 41627e6eafa14411c3d4dfdb83374622b08fca4b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants