Skip to content

Commit

Permalink
fixes to run PTF container
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Ejarque committed Aug 4, 2023
1 parent 65130fc commit 7e8167f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ private Object runInvocation() throws InvokeExecutionException {
this.context.getThreadErrStream(), null, this.mpiDef.isFailByEV());
}

private static boolean isOnContainer() {
private boolean isOnContainer() {
String masterContImage = System.getenv(COMPSsConstants.MASTER_CONTAINER_IMAGE);
return masterContImage != null && !masterContImage.isEmpty();
return masterContImage != null && !masterContImage.isEmpty() && this.numWorkers > 1;
}

@Override
Expand Down
6 changes: 5 additions & 1 deletion compss/runtime/scripts/user/launch_compss
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,11 @@ get_args() {
container_compss_path=${OPTARG//container_compss_path=/}
;;
container_opts=*)
container_opts=${OPTARG//container_opts=/}
if [ -z "${container_opts}" ]; then
container_opts=${OPTARG//container_opts=/}
else
container_opts="${container_opts} ${OPTARG//container_opts=/}"
fi
;;
elasticity=*)
elasticity=${OPTARG//elasticity=/}
Expand Down

0 comments on commit 7e8167f

Please sign in to comment.