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

Compilation breaks upon call to sysconf #2

Open
psteinb opened this issue Feb 26, 2014 · 0 comments
Open

Compilation breaks upon call to sysconf #2

psteinb opened this issue Feb 26, 2014 · 0 comments

Comments

@psteinb
Copy link

psteinb commented Feb 26, 2014

HI,
I compiled the master branch of shoc-mic inside a fresh clone of this repo. The compilation fails claiming:

scan/Scan.cpp(126): error: identifier "_SC_NPROCESSORS_ONLN" is undefined
          nThreads = sysconf(_SC_NPROCESSORS_ONLN) - 4; // Leave something for the OS

Adding

#include <unistd.h>

to Scan.cpp resolves the issue.
OS: CentOS 6.5,kernel: 2.6.32-431.5.1.el6.x86_64 , icc 14.0.0 20130728, MPSS 3.1.2

Best -
Peter

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

1 participant