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

Make ngm work on computers with more than 256 cores #48

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

Conversation

hermannschwaerzlerUIBK
Copy link

This is a proposed fix for #34:

  • Use std::thread::hardware_concurrency() to find the available cores and use this number as num_devices parameter when calling clCreateSubDevices() instead of 256.
  • Add "-std=c++11" option to compiler. Needed for the above when using older gcc (like e.g. 4.8).

As I don't have access to Apple computers I am not sure if the second change might have to be done differently (outside the IF (NOT APPLE) clause?).

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.

None yet

1 participant