Skip to content

Commit 62cda8f

Browse files
committed
Put "multi-gpu-wrapper" script in BINDIR and prefix by FLAVOR
1 parent c9b1419 commit 62cda8f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tools/Python/mcrun/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,6 @@ if(NOT WINDOWS)
137137
install(
138138
PROGRAMS "${PROJECT_SOURCE_DIR}/acc_gpu_bind"
139139
DESTINATION ${DEST_BINDIR}
140+
RENAME "${FLAVOR}-acc_gpu_bind"
140141
)
141142
endif()

tools/Python/mcrun/mccode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def runMPI(self, args, pipe=False, override_mpi=None):
306306
if self.options.machines:
307307
mpi_flags = mpi_flags + ['-machinefile', self.options.machines]
308308
if self.options.openacc and not os.name == 'nt':
309-
mpi_flags = mpi_flags + [mccode_config.configuration['MCCODE_LIB_DIR'] + '/bin/acc_gpu_bind']
309+
mpi_flags = mpi_flags + [mccode_config.directories['bindir'] + '/' + mccode_config.configuration['MCCODE'] + '-acc_gpu_bind']
310310
args = mpi_flags + [self.binpath] + args
311311

312312
return Process(binpath).run(args, pipe=pipe)

0 commit comments

Comments
 (0)