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

Compile flags for Eigen optimization #1

Merged
merged 2 commits into from
Jan 10, 2017
Merged

Compile flags for Eigen optimization #1

merged 2 commits into from
Jan 10, 2017

Conversation

jungikim
Copy link
Contributor

With the change in this PR, boost in translation speed of OpenNMT model is observed.
Actual speed-up may depend on the computing environment and translation options.
In my experiments, I get 10 to 20% decrease in time.

@guillaumekln
Copy link
Collaborator

I think -march=native should be user-defined as one may want/need to compile for another platform.

However, we could advise to use this flag in the README. It is just about adding -DCMAKE_CXX_FLAGS="-march=native" to the cmake command line.

@guillaumekln guillaumekln merged commit cc6ab46 into OpenNMT:master Jan 10, 2017
@jungikim
Copy link
Contributor Author

Hi Guillaume, I removed the flag from CMakeLists.txt and added the comment to README as you advised.

@guillaumekln
Copy link
Collaborator

Thanks! It is merged.

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