Recently, when submitting calculations with OpenFOAM and SU2, the error message “Authorization required, but no authorization protocol specified” repeatedly appeared. Although the calculation was eventually completed by ignoring it, the constant error message made me feel uneasy.

I suspected that it was a problem with OpenMPI, and verified it with the following command:

mpirun -np 2 hostname

Sure enough, an error message appeared:

9369ef647d5aff57821c1d728ec4eca1.png

After looking through the information online, the more reliable solution is this 1: Add the following environment variables to the Slurm script:

export HWLOC_COMPONENTS=-gl

Test it and the error problem is solved:

b3c56243fce578a837d01d68ab24e935.png