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

fixes std::bad_alloc in processPhraseTableMin for large models #154

Merged
merged 1 commit into from
May 20, 2016
Merged

fixes std::bad_alloc in processPhraseTableMin for large models #154

merged 1 commit into from
May 20, 2016

Conversation

michaelhutt
Copy link
Contributor

  • only seems to affect the Intel compiler

When running processPhraseTableMin with a large phrase table, I would get a std::bad_alloc error. It appears that the Intel compiler is being too aggressive in its optimizations. Adding 'volatile' to the loop variables seems to let it complete without issue. GCC doesn't have this problem.

 + only seems to affect the Intel compiler at O3
@hieuhoang
Copy link
Contributor

@emjotde ?

@emjotde
Copy link
Contributor

emjotde commented May 20, 2016

No idea. Wouldn't break anything, I suppose.

@hieuhoang hieuhoang merged commit 512f04c into moses-smt:master May 20, 2016
@hieuhoang
Copy link
Contributor

cheers. Merged and passes regressions tests

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.

3 participants