I'm a lucky owner of AMD Ryzen 5950x processor. I use R
for different calculations, so, earlier I had an Intel processor and a simpliest solution of starting using Intel BLAS / Lapack was a copying and renaming of some libraries (dll) in R directory.
I have AOCL libraries installed on my computer, but still have no information how to get married R
with AOCL
. Could anyone explain what should I do or (it will be the best variant) someone has an instruction how to add AOCL
libraries directly in R
or, maybe, build R
with these libraries?
Thank you.
P.S. I use gcc 12.2.0 on Windows 11. P.P.S. Do not say me to use OpenBLAS, because OpenBLAS has a big problem with freezing execution in parallel calculations, unfortunately.
Dmitriy's method didn't work for me (I didn't know where to find the omp libraries), but an updated version of this one (https://docs.google.com/presentation/d/1mrrE8nLx1Morsy0CSejSWSavatS-PyxNJMWSxZ5M_MI/edit#slide=id.gf104e05a_048) did:
to the folder where R's Rblas is. In my case:
and
(where x is the number of cores) in the input boxes.
I don't know whether steps 5) and 6) are crucial but I did them and it worked. I have a AMD Ryzen 9 3900X with 12 cores and 24 threads. For x (step 6), I used the number of cores (=12), as it was actually slower when I tried with the number of threads. The explanation seems to be here: https://illposed.net/r-on-linux.html.
I haven't done any speed testing but, at the times all cores are activated, it seems to be about 30% faster than it was before.