xenon-middleware / xenon-cli

Perform files and jobs operations with Xenon library from command line
http://nlesc.github.io/Xenon/
Apache License 2.0
2 stars 3 forks source link

Add --startSingleProcess flag to submit and exec sub-commands #56

Closed sverhoeven closed 6 years ago

sverhoeven commented 6 years ago

The Xenon JobDescription has a setStartSingleProcess() method which is not exposed to xenon-cli at the moment. This flag should be added so threaded jobs can be submitted.

sverhoeven commented 6 years ago

Tested against slurm with

docker run --detach --publish 10022:22 nlesc/xenon-slurm
./gradlew installDist

./build/install/xenon/bin/xenon scheduler slurm \
 --prop xenon.adaptors.schedulers.ssh.strictHostKeyChecking=false \
--location ssh://localhost:10022 --username xenon --password javagat \
submit --stdout test-%j.out --procs-per-node 2 hostname
# Has the hostname twice in test-*.out

./build/install/xenon/bin/xenon scheduler slurm \
--prop xenon.adaptors.schedulers.ssh.strictHostKeyChecking=false \
--location ssh://localhost:10022 --username xenon --password javagat \
submit --stdout test-%j.out --procs-per-node 2 --start-single-process hostname
# Has the hostname once in test-*.out