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

Multithreading message reports too many cores on Mac #191

Open
revodavid opened this issue Jul 14, 2015 · 4 comments
Open

Multithreading message reports too many cores on Mac #191

revodavid opened this issue Jul 14, 2015 · 4 comments

Comments

@revodavid
Copy link
Contributor

On my Mac, starting 3.2.1 (build 29) gives this message:

Multithreaded BLAS/LAPACK libraries detected. Using 8 cores for math algorithms

However, the System Report says:
Number of Processors: 1
Total Number of Cores: 4

@revodavid
Copy link
Contributor Author

Fix not required until after 3.2.1 release.

@sfweller
Copy link

The RRO is reporting the number of physical and virtual cores here, so in this case the total reported by R is 8 cores.

@j-martens j-martens removed the OS Mac label Jul 24, 2015
@j-martens j-martens added this to the RRO 3.2.2.0 milestone Aug 6, 2015
@j-martens j-martens removed this from the RRO 3.2.2.0 milestone Aug 19, 2015
@richcalaway
Copy link
Contributor

From this post (https://ghc.haskell.org/trac/ghc/ticket/8594), it appears we want to trade our call from sysctl hw.ncpu for sysctl hw.physicalcpu. (Ah, but apparently this is something new in OS X 10.10?)... Maybe we can't use it...Can somebody with a Mac make that modification to their Rprofile.site file and see if it gives the right answer?

@j-martens
Copy link
Contributor

With it, you get the following message:

Multithreaded BLAS/LAPACK libraries detected. Using hw.physicalcpu: 4 cores for math algorithms.

Instead of:
Multithreaded BLAS/LAPACK libraries detected. Using 8 cores for math algorithms.

— Josée

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

4 participants