I have built mpich on a centos-8 gcc-8.3.1 machine and then tried to link it statically with my tools. The link failed because -lcuda was missing.

 

The same does not happen if I use mpich from the official centos-8 distrib.

 

Do you have any explanation about this behavior?

 

Thank you,

Damiano