stan-dev / stan-dev/cmdstanr

Add toolchain setup check for OpenCL

Open
#858 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
R
Stars
160
Forks
69
Avg merge
1d 19h
Merged PRs (30d)
15

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing check_cmdstan_toolchain entry point and the setup path used for OpenCL. Run the current toolchain checks to understand their behavior, then define the OpenCL failure case and verify that the check reports a helpful recommendation to run the setup function.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
build-system, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.