Skip to content

Commit

Permalink
Put "multi-gpu-wrapper" script in BINDIR and prefix by FLAVOR
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Mar 6, 2024
1 parent c9b1419 commit 62cda8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/Python/mcrun/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,6 @@ if(NOT WINDOWS)
install(
PROGRAMS "${PROJECT_SOURCE_DIR}/acc_gpu_bind"
DESTINATION ${DEST_BINDIR}
RENAME "${FLAVOR}-acc_gpu_bind"
)
endif()
2 changes: 1 addition & 1 deletion tools/Python/mcrun/mccode.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def runMPI(self, args, pipe=False, override_mpi=None):
if self.options.machines:
mpi_flags = mpi_flags + ['-machinefile', self.options.machines]
if self.options.openacc and not os.name == 'nt':
mpi_flags = mpi_flags + [mccode_config.configuration['MCCODE_LIB_DIR'] + '/bin/acc_gpu_bind']
mpi_flags = mpi_flags + [mccode_config.directories['bindir'] + '/' + mccode_config.configuration['MCCODE'] + '-acc_gpu_bind']
args = mpi_flags + [self.binpath] + args

return Process(binpath).run(args, pipe=pipe)
Expand Down

0 comments on commit 62cda8f

Please sign in to comment.