Linux: Mellanox HPCX

From Define Wiki
Jump to navigation Jump to search

Installing HPC-X

  1. Extract hpcx.tar
  2. update the shell variable of the location of hpc-x installation
     cd hpcx
     export HPCX_HOME=$PWD

Loading HPC-X Envirtonment from Bash

$ source $HPCX_HOME/hpcx-init.sh 
$ hpcx_load
$ env | grep HPCX
$ mpirun -np 2 $HPCX_HOME_MPI_TESTS_DIR/examples/hello_usempi 
$ oshrun -np 2 $HPCX_HOME_MPI_TESTS_DIR/examples/hello_oshmem 
$ hpcx_unload