Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions docs/hpc/06_tools_and_software/09_vscode_remote_ssh_torch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ Once connected, open a terminal in the VSCode remote session. The prompt should
:::tip[Troubleshooting]
If you get an error message stating that the device is out of space, but you still have space in your personal directory, it could be that `/tmp` on the remote host does not have enough space for the install.

You can have the VSCode installer use a temporary directory of your choosing (`/scratch/NetID/.vscode-tmp`) instead of `/tmp` by adding the following line to the block for the Torch login node in your `.ssh/config` file:
You can have the VSCode installer use a temporary directory of your choosing instead of `/tmp` by adding the environment variable TMPDIR.

Please add the following line to `~/.bash_profile` on Torch:
```
export TMPDIR="${TMPDIR:-${SLURM_TMPDIR:-/scratch/${USER}/TMPDIR}}"
```

Please also create the directory:
```
SetEnv TMPDIR=/scratch/NetID/.vscode-tmp
mkdir -p /scratch/${USER}/TMPDIR
```
You'll need to replace `NetID` above with your NetID
Please make sure the directory exists and is accessible before running your jobs.
:::
Loading