I think CuPy is tightly integrated with CUDA.
-lOpenCL option has the following error
src/cmdstan/main.o:main.cpp:(.text+0x190): undefined reference to `clGetPlatformInfo'
src/cmdstan/main.o:main.cpp:(.text+0x1be): undefined reference to `clGetPlatformInfo'
src/cmdstan/main.o:main.cpp:(.text+0x6e68): undefined reference to `clReleaseDevice'