Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

the conda virtual environment has been created in /storage/gpfs_data/juno/test_conda/ for the 3.8 version of Python.
After this, the screen will show

"Continue creating environment (y / [n])?"

so that a confirm is requested.
In this case, the submit description file and the executable file have to be in the folder /storage/gpfs_data/juno/test_conda/.
The content of the executable submit description file is:

Code Block
$ cat test.sub
executable = test.sh
output = /storage/gpfs_data/juno/test_conda/job.out
error = /storage/gpfs_data/juno/test_conda/job.err
log = /storage/gpfs_data/juno/test_conda/job.log
WhenToTransferOutput = ON_EXIT
ShouldTransferFiles = YES
queue 1

and for the submit description filescript:

Code Block
$ cat test.sh
#!/bin/bash
/storage/gpfs_data/juno/test_conda/bin/python --version
/storage/gpfs_data/juno/test_conda/bin/python -c 'import h5py'
/storage/gpfs_data/juno/test_conda/bin/python -c 'import matplotlib'

In this instance, the h5py and the matplotlib packages have been are imported.

To send the job to the submit-node sn-02

...

and to check that all is going well so far:

Code Block
$ condor_q -name sn-02.cr.cnaf.infn.it 14243269
[...]
Total for query: 1 jobs; 1 completed, 0 removed, 0 idle, 0 running, 0
held, 0 suspended

Finally, when the job completes, the errors and the output of the submission can be retrieved via the condor_transfer_data 14243269 command and found at:

  • /storage/gpfs_data/juno/test_conda/job.err
  • /storage/gpfs_data/juno/test_conda/job.out

...