How can I prevent MPI initialization errors when running Ansys on a Slurm cluster with InfiniBand?
0 reputation · 22 Aug 2021, 05:08 UTC
Deploying Ansys workloads on a Linux HPC cluster managed by Slurm and equipped with InfiniBand occasionally results in MPI initialization errors such as "multiple pkey found" or connection failures. The objective is to run Ansys simulations reliably without these MPI‑related obstacles, while respecting the cluster’s job scheduling constraints and ensuring the license server remains reachable.
What is the recommended method for determining the correct InfiniBand partition key (MPI_IB_PKEY) for a given Slurm partition? How should a Slurm job script be structured to set MPI_IB_PKEY before launching the Ansys solver, and how can this be validated without disrupting other MPI applications? Which logs or environment checks provide confidence that the InfiniBand fabric is being utilized correctly after the variable is applied?