-
Notifications
You must be signed in to change notification settings - Fork 16
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
helpers.c cannot be compiled on Mac OSX #6
Comments
Thanks for trying it out on a Mac. It's encouraging that it works without helper threads. The speed up on the matrix multiply test is a result of pqR using C routines that are a bit more sophisticated than the BLAS supplied with R-2.15.0. I'll be writing a blog post on matrix multiplies in pqR soon. The problem when helper threads are enabled appears to be that openMP is not fully implemented with your toolset on the Mac, which surprises me. A bit of a search revealed a thread at http://openmp.org/forum/viewtopic.php?f=3&t=698 about this. It seems that there are solutions, but not having gotten into Mac's development environment yet, I can't say much more. |
Great! I guess the new compiler must also generate better code, since the test has speeded up! You can try something like the following to see if the helper threads are actually working:
You can compare results with and without a --helpers=1 argument to the R command. You should see a "Using 1 helper threads" line printed in the startup message with the --helpers=1 argument. The first system.time may be different from later times, both because memory allocation may not have settled down, and because of a somewhat strange feature of pqR (which I may eliminate so I won't feel a need to explain it...). Don't try it without the "print", since then pqR will see no need to wait for anything to actually finish before the system.time is done. (Maybe I should change system.time to wait...?) |
@randy3k What did you have to do to get it to compile on Mac OSX? I'm also interested in trying it out |
I am also able to compile the R GUI for the non-helper distribution. But for the helper distribution, |
For the non-helper distribution
For the helper distribution
|
What version of gcc did you use? I downloaded gcc-4.9 through homebrew and got the following error:
|
i am using gcc4.8, also from homebrew.
In particularly, I used |
Confirming that I've successfully been able to install using gcc-4.4 and
|
I successfully installed pqR (with --disable-helper-threads ) on Mac
![r_vs_pqr](https://camo.githubusercontent.com/3446dad0d3c9a9c5c7295be729ffbbfd0ffb7237cb91cf685198850ac8bf5e0d/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313639303939332f3639323936302f31323032643838342d646335662d313165322d386365322d6432303334623262356139332e706e67)
In test.r, two random 1000x1000 matrices are multiplied together 10 times. The improvement is encouraging.
However, when I tried to install it with the helper threads, the follows happened. I have no idea what it is. Hope this piece of information will help you.
The text was updated successfully, but these errors were encountered: