Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SWP-CM22-Planbased OMPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixkhals
SWP-CM22-Planbased OMPI
Commits
8b411e81
Commit
8b411e81
authored
2 years ago
by
FKHals
Browse files
Options
Downloads
Patches
Plain Diff
Fix exported PATH variables to prepend custom OMPI
to make sure to not use the default system MPI installation.
parent
e391ed61
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rank-swapper-agent/Makefile
+4
-2
4 additions, 2 deletions
rank-swapper-agent/Makefile
rank-swapper-agent/client.sh
+8
-4
8 additions, 4 deletions
rank-swapper-agent/client.sh
with
12 additions
and
6 deletions
rank-swapper-agent/Makefile
+
4
−
2
View file @
8b411e81
export
OMPI
:=
/home/openmpi-install
export
PATH
:=
$(
PATH
)
:
$(
OMPI
)
/bin
export
LD_LIBRARY_PATH
:=
$(
LD_LIBRARY_PATH
)
:
$(
OMPI
)
/bin
# BEWARE: the order (custom OpenMPI first/prepended) is important since the
# 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
CC
=
gcc
...
...
This diff is collapsed.
Click to expand it.
rank-swapper-agent/client.sh
+
8
−
4
View file @
8b411e81
#!/bin/bash
export
OMPI
=
/home/openmpi-install
export
DPM_AGENT_SOCKET
=
$OMPI
/dpm_socket_socket
export
PATH
=
$PATH
:
$OMPI
/bin
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:
$OMPI
/bin
# the export not done directly since not all shells allow the value of a
# variable to be set at the same time it is exported
OMPI
=
/home/openmpi-install
;
export
OMPI
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment