Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Minor fixes to enable compilation on MacOSX #3

Merged
merged 2 commits into from
Jan 17, 2017
Merged

Minor fixes to enable compilation on MacOSX #3

merged 2 commits into from
Jan 17, 2017

Conversation

jungikim
Copy link
Contributor

These commits fix compilation on MacOSX.

Definition of THMin was missing (must have been stripped out from the original torch/TH package) so I added the macro definition of THMin found in torch/TH/THGeneral.h.in.

OpenMP is only supported through custom compilers on MacOSX. So I removed the flag based on CMAKE_SYSTEM_NAME. (if(APPLE) might be simpler, but I don't know whether this applies to all apple machines)

@guillaumekln guillaumekln merged commit dce862f into OpenNMT:master Jan 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants