Skip to content
Snippets Groups Projects
Commit 8b411e81 authored by FKHals's avatar FKHals
Browse files

Fix exported PATH variables to prepend custom OMPI

to make sure to not use the default system MPI installation.
parent e391ed61
No related branches found
No related tags found
No related merge requests found
export OMPI := /home/openmpi-install export OMPI := /home/openmpi-install
export PATH := $(PATH):$(OMPI)/bin # BEWARE: the order (custom OpenMPI first/prepended) is important since the
export LD_LIBRARY_PATH := $(LD_LIBRARY_PATH):$(OMPI)/bin # first gets picked and there may be other MPI installations on the system!
export PATH := $(OMPI)/bin:$(PATH)
export LD_LIBRARY_PATH := $(OMPI)/bin:$(LD_LIBRARY_PATH)
# requirement: GNU make, see https://unix.stackexchange.com/questions/11530/adding-directory-to-path-through-makefile/261844#261844 # requirement: GNU make, see https://unix.stackexchange.com/questions/11530/adding-directory-to-path-through-makefile/261844#261844
CC = gcc CC = gcc
......
#!/bin/bash #!/bin/bash
export OMPI=/home/openmpi-install # the export not done directly since not all shells allow the value of a
export DPM_AGENT_SOCKET=$OMPI/dpm_socket_socket # variable to be set at the same time it is exported
export PATH=$PATH:$OMPI/bin OMPI=/home/openmpi-install; export OMPI
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OMPI/bin DPM_AGENT_SOCKET=$OMPI/dpm_socket_socket; export DPM_AGENT_SOCKET
# BEWARE: the order (custom OpenMPI first/prepended) is important since the
# first gets picked and there may be other MPI installations on the system!
PATH=$OMPI/bin:$PATH; export PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OMPI/bin; export LD_LIBRARY_PATH
PROCESSES=1 PROCESSES=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment