example of openBLAS speeding up models? #373
Replies: 3 comments
-
Have you ruled out that openBLAS is using all available cores? That can slow things down. There's a bit at the bottom of the Gist about that:
RhpcBLASctl::blas_set_num_threads(1)
RhpcBLASctl::omp_set_num_threads(1)
usethis::edit_r_profile() Assuming the above is the default behaviour, maybe we should make those instructions more prominent or try to detect that for the user. Apple's vecLib seems to default to 1 core. Also, my memory is the speed up is more noticeable with an AR1 or random walk spatiotemporal field, but at the very least it shouldn't be slower for a simple spatial model! |
Beta Was this translation helpful? Give feedback.
-
Below is with the spatio-temporal RW turned on. I've tried:
Of course it's not a huge issue (I can always use MRAN locally), but I'd be happy to hear if there's other intermediate diagnostics that might illustrate where the issue is arising. |
Beta Was this translation helpful? Give feedback.
-
Hmm... I'm not sure. I'll have to try this myself on a DFO Windows laptop. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I can't seem to get an improvement in sdmTMB (or other TMB models) using the openBLAS instructions that are very thoroughly and helpfully provided. Below, I show that the matrix-multiplication is faster (as expected) but Pcod spatial model is slower using the updated files relative to base versions.
Does anyone have additional experience to share regarding enabling openBLAS on a windows machine using NOAA IT privileges?
Using the standard
Rblas.dll
andRlapack.dll
files:and using the updated versions:
Beta Was this translation helpful? Give feedback.
All reactions