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.
Would this break Linux? Can you check symbols exported in legacy binding on Linux? May need to include both, or simply use
*
.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.
I guess the real question is whether we need to update
horovod.lds
as well, or they should be explicitly different? Should the newinitmpi_lib_v2
have underscore prefix on Mac OS X, too?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.
Here's what I found on Linux.
Using torch_nightly:
Using legacy:
Can't find any reference to
init_mpi_lib
,init_mpi_lib_impl
, orinitmpi_lib_v2
, onlyPyInit
.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.
Haven't had any luck getting nightly torch installed in my virtualenv with Mac OSX. Have you gotten that to work?
I think the safest option may be to just wrap the symbols in *'s.
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.
Looks like presence of
_
is different on Mac OS X and Linux indeed:With torch-nightly:
I am not able to install torch-nightly on my Mac to try out at the moment, but I suspect it will have
_
prefix as well.Since it's possible to use libtool on Linux, I suggest we just add
*
to beginning ofinit...
in bothhorovod.exp
andhorovod.lds
for consistency.