On Jean-zay supercomputer with omnipath network, OpenACC need to be initialized before the MPI initialization wich can be a problem to select GPU device. This is a specifc hook for Jean Zay using slurm or reading an environment variable to retrive the local rank of the process.