inlabru-org / inlabru

inlabru
https://inlabru-org.github.io/inlabru/
76 stars 21 forks source link

Is pardiso supported? #72

Closed ghost closed 4 years ago

ghost commented 4 years ago

When running inlabru on the Linux based HPC, I was wondering if pardiso is utilized, and if so, have I activated this in the correct way?

e.g.

INLA:::inla.dynload.workaround() ## Our HPC is running an older version of GLIBC

bru.options(pardiso.license = "Licenses/pardiso.lic") inla.setOption(pardiso.license = "Licenses/pardiso.lic") # Is this line necessary?

inla.pardiso.check() [1] "SUCCESS: PARDISO IS INSTALLED AND WORKING"

inlabru:::lgcp(............)

Cheers,

Harri

finnlindgren commented 4 years ago

All pardiso related things are handled internally in the INLA package, so it should work the same with inlabru. Since inlabru doesn't know anything directly about it, you need to use the inla package options, either globally, or with the feed-through mechanism from inlabru. If the only step you would use to activate pardiso in plain INLA is

inla.setOption(pardiso.license = "Licenses/pardiso.lic")

then that's all that should be needed to use it with inlabru.