Cmdstan 2.21.0 - Can't make clean-all after adding MPI make/local flags

  • Operating System: Debian GNU/Linux 9 (stretch)
  • CmdStan Version: 2.21.0
  • Compiler/Toolkit: g++

Hi everyone,

This is probably a very simple question, but I am having an issue with setting MPI up on a computer cluster following the instructions on the wiki.

I can do threading just fine, but for MPI the problem comes after adding


to the make/local file.

When I try to do make clean-all I get the following error

*** "Need to set TBB_CXX_TYPE for non-standard compiler other than gcc or clang.".  

Should I specify a different compiler and linker instead of CXX=mpicxx?

I understood from the wiki that running mpicxx -show should get me more info on what to use, but I don’t understand the output or what should I do with ti

-I/usr/lib/x86_64-linux-gnu/openmpi/include -pthread 
-L/usr//lib -L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi_cxx -lmpi

Thank you for your help!

This is the same as this one:

Can you please update our wiki on MPI - it’s currently lacking the hint that TBB_CXX_TYPE must be set manually… or file an issue to Stan-math where this would need to be fixed.



Thanks for redirecting me to the post.

I will get on editing the wiki in the next few days so it is clearer.

Thank you again.