- Operating System: Linux 64 bit Centos 6
- CmdStan Version: 2.18
- Compiler/Toolkit: gcc/6.3.0 & openmpi.gnu/2.1.0
I am trying to test mpi parallelism as described here on a (slurm) cluster, but the test ends in an error.
This is the procedure I used:
Download and untar cmdstan 2.18.0 and load gcc/6.3.0 and openmpi.gnu/2.1.0.
cd cmdstan-2.18.0 make build -j4 cd stan/lib/stan_math/ // add lines `STAN_MPI=true` and `CXX=mpicxx` to make/local in the folder stan_math make clean-all ./runTests.py test/unit/math/prim/mat/functor/map_rect_test.cpp
At the end of the test i get the error
make: clang++: Command not found
make: *** [bin/math/prim/arr/functor/mpi_cluster_inst.o] Error 127
make -j1 test/unit/math/prim/mat/functor/map_rect_test failed
(full output: test_output.txt )
which I don’t understand because I thought the gnu compiler would be used (but I know very little about compilers and…).
Does anybody have an idea what I am doing wrong?