[MacPorts] #61256: Multicore support for math/R
MacPorts
noreply at macports.org
Thu Oct 1 13:55:53 UTC 2020
#61256: Multicore support for math/R
---------------------+--------------------
Reporter: webbp | Owner: (none)
Type: request | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: math/R
---------------------+--------------------
Currently, math/R is built (by default) using Apple's clang. This causes
both R itself and any packages installed by R to be single-core because
Apple clang doesn't support OpenMP. This very much sucks and is ultimately
Apple's fault. However, there is an easy solution, which is to build R
with Macports clang. More specifically, when I install macports clang-10
llvm-10 and libomp, port select clang mp-clang-10 and llvm mp-llvm-10, and
macports PATH is prefixed to my PATH, sudo port install R installs a
multicore R capable of building multicore R packages. Anecdotally, this R
on my 9-year-old MacBook Air is faster for many common operations than the
default Macports R on my 2020 MacBook Air.
The vast majority of users will not know how to do this. Therefore, please
update the default R build to build a multicore-capable R.
--
Ticket URL: <https://trac.macports.org/ticket/61256>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list