I want to go into a container with singularity and then run slurm commands. For example:
singularity shell docker://tensorflow/tensorflow:1.0.0-gpu-py3
then within it run the script that I do want to run my script:
python tf_test.py
the contents of tf_test is:
import tensorflow as tf
print(tf.random_uniform((3,2)))
the issue I have is that the container doesn't know I am in a HPC or that slurm exists. Is it possible to only run slurm commands after we are in the container? I am particularly interested in using sbatch
. Using srun and then going in the container is cheating and not what I want.