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

CPU Binding on OS X #140

Closed
daschl opened this issue Dec 14, 2015 · 4 comments
Closed

CPU Binding on OS X #140

daschl opened this issue Dec 14, 2015 · 4 comments

Comments

@daschl
Copy link

daschl commented Dec 14, 2015

Hey folks,

1.11 does not support cpu binding on os x, but it looks like os x added support for it fairly recently: https://developer.apple.com/library/mac/releasenotes/Performance/RN-AffinityAPI/#//apple_ref/doc/uid/TP40006635-CH1-DontLinkElementID_2

$ hwloc-bind core:1
hwloc_set_cpubind 0x0000000c failed (errno 78 Function not implemented)

Is this something that could be added to hwloc?

@bgoglin
Copy link
Contributor

bgoglin commented Dec 14, 2015

Not sure I am reading this properly, but my understanding is that this won't let you bind tasks to specific cores, but rather just let you say whether some tasks should remain close or far away from each other (share the same L2 or not).

Also, this affinity seems to be destroyed at exec(), which would make hwloc-bind useless.

@daschl
Copy link
Author

daschl commented Dec 14, 2015

@bgoglin ah, that makes sense - thanks for the clarification!

Btw, I'm working on a rust binding :) https://github.com/daschl/hwloc-rs

@daschl daschl closed this as completed Dec 14, 2015
@bgoglin
Copy link
Contributor

bgoglin commented Dec 15, 2015

Thanks ! Let us know if you need help for this binding and/or testing.

@daschl
Copy link
Author

daschl commented Dec 15, 2015

@bgoglin yes will do! I'll ping you once its more or less complete - right now discovery pretty much works but I need to add nearly complete cpu and mem binding.

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

No branches or pull requests

2 participants