Skip to content

Remove stanc flags munging for cpp_options$stan_opencl #1111

@WardBrian

Description

@WardBrian

This code:

cmdstanr/R/model.R

Lines 538 to 540 in edccf2d

if (isTRUE(cpp_options$stan_opencl)) {
stanc_options[["use-opencl"]] <- TRUE
}

Is redundant with the logic already in the cmdstan makefiles:
https://github.com/stan-dev/cmdstan/blob/b2d14a30df8a843115aae9045ff5c01a031561e7/make/program#L59-L62

And is generating invalid calls to stanc3, see https://discourse.mc-stan.org/t/cannot-complile-and-then-use-gpu/40315

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions