Check at compilation time that both MPI or QMP are set when doing multi-gpu (and vice versa).