Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| software:tensorflow:caviness [2019-09-03 17:08] – anita | software:tensorflow:caviness [2021-04-27 16:21] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Tensorflow on Caviness ====== | ||
| + | |||
| + | TensorFlow must be used as a container, so the versions of TensorFlow installed on Caviness are provided as containers and dependent on Singularity. | ||
| + | |||
| + | <code bash> | ||
| + | $ vpkg_versions tensorflow | ||
| + | |||
| + | Available versions in package (* = default version): | ||
| + | |||
| + | [/ | ||
| + | tensorflow | ||
| + | 1.12.0 | ||
| + | 1.12.0: | ||
| + | 1.12.0: | ||
| + | 1.12.0: | ||
| + | * 1.13.1 | ||
| + | 1.13.1: | ||
| + | 1.13.1: | ||
| + | 1.13.1: | ||
| + | </ | ||
| + | |||
| + | You write your Python code either somewhere in your home directory ($HOME) or in the workgroup directory ($WORKDIR). | ||
| + | |||
| + | Remember you must specify your **[[abstract: | ||
| + | |||
| + | <WRAP box>$ workgroup -g <<// | ||
| + | |||
| + | Assuming you created your personal workgroup storage area as '' | ||
| + | |||
| + | <code bash> | ||
| + | $ mkdir -p ${WORKDIR}/ | ||
| + | $ cd ${WORKDIR}/ | ||
| + | </ | ||
| + | |||
| + | For example, say your TensorFlow Python script is called '' | ||
| + | |||
| + | <code bash> | ||
| + | $ cp / | ||
| + | </ | ||
| + | |||
| + | You will need to modify the copy of '' | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | ... | ||
| + | |||
| + | # | ||
| + | # Add a TensorFlow container to the environment: | ||
| + | # | ||
| + | vpkg_require tensorflow/ | ||
| + | |||
| + | # | ||
| + | # Execute our TensorFlow Python script: | ||
| + | # | ||
| + | python3 tf-script.py | ||
| + | </ | ||
| + | |||
| + | Finally, submit the job using the '' | ||
| + | |||
| + | <code bash> | ||
| + | $ sbatch tensorflow.qs | ||
| + | </ | ||