-
Notifications
You must be signed in to change notification settings - Fork 41
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
OpenMP not detected Mac 12 (Monterey) M1 (ARM) Mac #263
Comments
Yes - I'm having the same problem with fst on a 4-core intel iMac - fst installs without errors from source, but it doesn't recognize openMP |
similar to @markdanese, configuring |
Just adding a bit more detail. Here's the result after running
|
And the output:
|
A quick hack to get it to work - ensure that g++ is called with
Now:
|
Unfortunately, I couldn't get that to work for me on an M1 Mac OSX 12.1. Doesn't mean I did it correctly, but I tried a number of variations replacing |
My fault. It works fine if I build from source. Below are the extra lines I added to my existing Makevars
Then I get this:
And data.table is unaffected (still getting 5 threads). |
Hi @markdanese, thanks for reporting your solution (and adding it to the |
I don't really understand compilers or the compilation process so I had somebody knowledgeable helping me figure it out. Hence, I can't answer your question. My first solution worked for |
@markdanese - thanks very much for the info about your Makevars - I can finally use fst with multiple threads on my Mac |
Please note that since fst 0.9.8 the new package install.packages("fstcore")
install.packages("fst") |
I can confirm that 0.9.8 is now back to single threaded. If someone can clarify what to change in Makevars, that would be the most helpful. I don't know what it means to "install |
Just to follow-up on my comment, one has to install Now I get 10 threads. |
N.B.: AFAIK, install from source should be the default for most installations. Most likely, your single-core-issue was resolved simply because of the re-installation and thus re-compilation of Simply re-installing |
#242 (comment) might help and might be more troublefree than using |
I just wanted to say that the instructions here solved it for me: https://investcookies.ru/post/datatable_m1/data_table_arm/ (I know, the website looks super sketchy lol). I reinstalled data.table and fst from source after making those suggested tweaks to Makevars (and brew install llvm) -- and they compiled and worked. Very cool! |
Just in case this can be fixed: this remains an issue for me. |
I installed fst on a clean build of a new Mac M1 computer running OS 12 (Monterey). Version 0.9.4. I originally had trouble with data.table but finally got the Makevars working and data.table loads and recognizes OpenMP (see this link). But I can't seem to get fst to recognize OpenMP. This is way outside my area of expertise so I don't have any solutions to offer but wanted to at least put this out there for others. It may be related to the how homebrew is now installing libraries or the new Mac OS or to the ARM processor (or Rosetta).
I should clarify that I installed fst from source and it seems to have compiled correctly. And it works fine, just not with OpenMP.
The text was updated successfully, but these errors were encountered: