cmdstanr icon indicating copy to clipboard operation
cmdstanr copied to clipboard

Add toolchain setup check for OpenCL

Open andrjohns opened this issue 2 years ago • 2 comments

Summary

It was identified on the forums that OpenCL models can fail to compile without a helpful error message: https://discourse.mc-stan.org/t/cmdstan-installation-error/32900/5

I think we should add a configuration/setup step for OpenCL so we can catch the error and recommend running the setup function. I'm currently leaning towards adding it to check_cmdstan_toolchain, like:

check_cmdstan_toolchain(fix = TRUE, opencl = TRUE)

Thoughts/prefs?

andrjohns avatar Sep 27 '23 10:09 andrjohns

Yeah I think adding it to check_cmdstan_toolchain is a good idea

jgabry avatar Sep 27 '23 16:09 jgabry

Agreed, great idea!

rok-cesnovar avatar Sep 27 '23 18:09 rok-cesnovar