Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
software:singularity:caviness [2018-08-09 12:49] – [Execute your Singularity container through SLURM] anita | software:singularity:caviness [2024-08-27 17:51] (current) – anita | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======= Singularity on Caviness ====== | + | ======= |
===== Build a Singularity container ===== | ===== Build a Singularity container ===== | ||
Line 47: | Line 47: | ||
< | < | ||
+ | [traine@login01 ~]$ workgroup -g it_css | ||
+ | [(it_css: | ||
+ | salloc: Granted job allocation 844 | ||
+ | salloc: Waiting for resource configuration | ||
+ | salloc: Nodes r00n45 are ready for job | ||
+ | [traine@r00n45 ~]$ vpkg_require singularity | ||
+ | Adding package `singularity/ | ||
+ | [traine@r00n45 ~]$ singularity shell tensorflow.simg | ||
+ | Singularity: | ||
- | [(it_css:traine)@login01 | + | Singularity tensorflow.simg:~> tensorboard --help |
- | | + | usage: tensorboard [-h] [--logdir PATH] [--host ADDR] [--port PORT] |
- | | + | [--purge_orphaned_data BOOL] [--reload_interval SECONDS] |
- | | + | [--db URI] [--inspect] [--tag TAG] [--event_file PATH] |
- | [traine@r00n45 ~]$ vpkg_require singularity | + | [--path_prefix PATH] [--window_title TEXT] |
- | | + | |
- | [traine@r00n45 ~]$ singularity shell tensorflow.simg | + | [--samples_per_plugin SAMPLES_PER_PLUGIN] |
- | | + | |
+ | [--debugger_data_server_grpc_port PORT] | ||
+ | | ||
- | Singularity tensorflow.simg:~> tensorboard | + | TensorBoard is a suite of web applications for inspectinng and understanding |
+ | your TensorFlow runs and graphs. https:// | ||
- | USAGE: / | + | Singularity tensorflow.simg:~> grep Cpus_allowed_list / |
+ | Cpus_allowed_list: | ||
+ | Singularity tensorflow.simg: | ||
+ | exit | ||
+ | [traine@r00n45 ~]$ | ||
+ | </ | ||
+ | |||
+ | ==== Troubleshooting ==== | ||
+ | |||
+ | === Locale error === | ||
+ | |||
+ | If you experience the error below after starting a particular shell container, then it is likely due to your current locale not being supported in this particular container' | ||
+ | |||
+ | <code bash> | ||
+ | [traine@r00n45 ~]$ vpkg_require singularity | ||
+ | Adding package `singularity/ | ||
+ | [traine@r00n45 ~]$ singularity shell tensorflow.simg | ||
+ | Singularity: | ||
+ | |||
+ | Singularity tensorflow.simg: | ||
+ | Traceback (most recent call last): | ||
+ | File "/ | ||
+ | sys.exit(run_main()) | ||
+ | File "/ | ||
+ | program.setup_environment() | ||
+ | File "/ | ||
+ | util.setup_logging() | ||
+ | File "/ | ||
+ | locale.setlocale(locale.LC_ALL, | ||
+ | File "/ | ||
+ | return _setlocale(category, | ||
+ | locale.Error: | ||
+ | </ | ||
+ | |||
+ | Once you start the container shell, check which locale' | ||
+ | |||
+ | <code bash> | ||
+ | Singularity tensorflow.simg: | ||
+ | locale: Cannot set LC_CTYPE to default locale: No such file or directory | ||
+ | locale: Cannot set LC_MESSAGES to default locale: No such file or directory | ||
+ | locale: Cannot set LC_COLLATE to default locale: No such file or directory | ||
+ | C | ||
+ | C.UTF-8 | ||
+ | POSIX | ||
+ | </ | ||
+ | |||
+ | Of course in this particular case, the locale setting for account '' | ||
+ | |||
+ | <code bash> | ||
+ | [traine@r00n45 ~]$ vpkg_require singularity | ||
+ | Adding package `singularity/ | ||
+ | [tainne@r00n45 ~]$ LANG=C.UTF-8 singularity shell tensorflow.simg | ||
+ | Singularity: | ||
+ | |||
+ | Singularity tensorflow.simg: | ||
+ | usage: tensorboard [-h] [--logdir PATH] [--host ADDR] [--port PORT] | ||
+ | | ||
+ | [--db URI] [--inspect] [--tag TAG] [--event_file PATH] | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | TensorBoard is a suite of web applications for inspectinng and understanding | ||
+ | your TensorFlow runs and graphs. https:// | ||
- | Try --helpfull to get a list of all flags. | + | [[ lots of additional information displayed for optional arguments |
- | | + | Singularity tensorflow.simg: |
- | | + | exit |
- | | + | [traine@r00n45 |
</ | </ | ||