LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Invalid MIT-MAGIC-COOKIE-1 key when running MPI programs on Ubuntu 20.04 (https://www.linuxquestions.org/questions/ubuntu-63/invalid-mit-magic-cookie-1-key-when-running-mpi-programs-on-ubuntu-20-04-a-4175694698/)

tom95 05-04-2021 10:52 AM

Invalid MIT-MAGIC-COOKIE-1 key when running MPI programs on Ubuntu 20.04
 
So i am trying to run a program using sst (SST-Simulator) which also uses MPI internally. The programs run fine but everytime i use "sst" i get this unwanted terminal output:
Code:

Invalid MIT-MAGIC-COOKIE-1 keyERROR: no sdl-file specified
 Usage: sst sdl-file [options]

I have tried changing graphical driver from the Nvidia one to x.org as other answers here suggested but it didn't work.

alexey.v.medvedev 03-22-2023 06:23 AM

The issue is caused by the `libhwloc` library, which is used by `OpenRTE` (the OpenMPI component) to explore the hardware topology of the node during the launch of parallel processes. When `hwloc_topology_load()` is called, `libhwloc` iterates over all of its available components, which are implemented as plug-ins. One of these components, `gl`, is responsible for gathering information about the system's graphics devices and uses X11 calls like `XOpenDisplay()`, which can generate the error message "Invalid MIT-MAGIC-COOKIE-1 key" if it fails to connect to the X11 server.

In many cases, this gl component is not needed on HPC clusters and can be safely disabled by setting the `HWLOC_COMPONENTS` environment variable to exclude it:

`export HWLOC_COMPONENTS="-gl"`


All times are GMT -5. The time now is 02:15 PM.