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

sched_getcpu not available on MacOS #2862

Closed
kleinhenz opened this issue Aug 26, 2017 · 1 comment
Closed

sched_getcpu not available on MacOS #2862

kleinhenz opened this issue Aug 26, 2017 · 1 comment

Comments

@kleinhenz
Copy link
Contributor

On MacOS hpx/examples/resource_partitioner/simple_resource_partitioner.cpp fails to compile on the current master because hpx/examples/resource_partitioner/shared_priority_scheduler.hpp includes parcelport_logging.hpp which uses the sched_getcpu system call which is not part of sched.h on MacOS. This include is currently protected by a #if !defined(HPX_MSVC) which should probably be expanded to check for MacOS as well or else implemented in a more portable way. The sched_getcpu call was added in ecb798f.

@hkaiser
Copy link
Member

hkaiser commented Aug 26, 2017

@biddisco Could you take care of this, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants