The current release of Stan seems to be affected by a memory leak in OpenCL code. I need to build the current dev version of stanc3 and link my
cmdstanr package to use the latest dev stanc3 version where the bug is fixed. Could anyone direct me on how to do this?
install_cmdstan(overwrite = TRUE) downloads the latest release, but I can’t specify commit hash or anything else to build from HEAD instead.
I guess I need to build it manually using this guide? 1 CmdStan Installation | CmdStan User’s Guide But how can I make sure that building cmdstan will build the correct stanc3 version?
UPDATE. Looking at submodules of cmdstan, it seems to be using stan and not stanc3, if I am not mistaken. In this case, the same bug affects me, but in a different repo.