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

allow torch to link with Intel MKL _ilp64 model (large integers) #1040

Open
wants to merge 79 commits into
base: master
Choose a base branch
from

Conversation

elikosan
Copy link
Contributor

Sorry for the large pull request.
I improved upon the reverted pull request #981. Thanks for the suggestions.

The goal is to allow compilation and link with Intel MKL _ILP64 (64b integers) model. This is necessary when Torch is linked with another application that itself is linked to _ILP64, otherwise the linker on linux links to the incorrect version resulting in a MKL runtime error.
The default build will not change will not be impacted. To trigger linking to _ILP64, the environment variable MKL_ILP64 has to be defined prior to building.
The INTEL_MKL_DIR environment variable now can be set so that Intel MKL can be found by the build.
I tested this patch on both linux and Windows, both with and without MKL_ILP64 defined.
Again, there should be no impact when MKL_ILP64 is not defined.

@elikosan
Copy link
Contributor Author

Also, apologies for the un-squashed commits. I yet have to learn the intricacies of Git (I'm a SVN user).

* Fast transposed copy

* Add scatterAdd

* lua 5.3 changes and gcc constants

* Adding support for ADD_TORCH_LIBRARY macro
merge from torch master
Those modes are already supported by torch.load.
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.

4 participants