@WardBrian Thank you for your response, and now I understood what the command line looks like when STAN passes the test. In fact, I have already set STAN_OPENCL=true
in make/local
in ~/.cmdstan/cmdstan-2.35.0/make/
for this trial and for the previous trial, too. Since I have not tried to set STAN_OPENCL=true
in my environment variable (i.e. I have neither execute export STAN_OPENCL=true
nor echo 'export STAN_OPENCL=true' >> ~/.bashrc && source ~/.bashrc
), I will try that.
My current make/local
looks like:
CXXFLAGS += -Wno-deprecated-declarations
LDFLAGS+= -L"/usr/local/cuda-12.1/targets/x86_64-linux/lib" -lOpenCL
LDFLAGS_OPENCL= -L"/usr/local/cuda-12.1/targets/x86_64-linux/lib" -lOpenCL
STAN_OPENCL=true
OPENCL_DEVICE_ID=0
OPENCL_PLATFORM_ID=0
CC = g++
Do I also have to copy that file to ~/.cmdstan/cmdstan-2.35.0/stan/lib/stan_math/make/local
? I do not have ~/.cmdstan/cmdstan-2.35.0/stan/lib/stan_math/make/local
so far but I will create it if necessary.