Terminal and the Jacket disk
What runs where: the Jacket disk, starting GPU programs from your Terminal, and the Linux shell.
The Jacket disk
While the GPU is running, the GPU machine's software appears on your Mac as a disk:
/Volumes/Jacket. It holds Python, the CUDA toolkits, nvidia-smi and anything else
installed on the GPU side. Finder shows its size like any drive.
Starting programs
Every program on the disk can be started from your Mac. It runs on the GPU, with:
- your current folder, and your Mac folders at the same paths;
- your Terminal: input, output, colours, window size and Ctrl-C;
- your Mac's network: servers it starts answer at your Mac's
localhost.
$ /Volumes/Jacket/usr/bin/nvidia-smi
$ /Volumes/Jacket/usr/local/cuda/bin/nvcc --version
$ /Volumes/Jacket/usr/bin/env ./my-cuda-program
A Linux program you built into a Mac folder starts through /Volumes/Jacket/usr/bin/env, as above.
Work in your home folder. GPU programs can use folders in your home folder (and on the
Jacket disk). Keep projects there, for example in ~/projects; started from elsewhere, such as
/tmp, a program says the folder isn't shared.
A Linux shell
Start the GPU machine's shell from your Terminal to work on the GPU side directly, in your current folder:
$ /Volumes/Jacket/usr/bin/bash
Type exit to return to your Mac's shell.
The jacket command
With Command line tools on (Jacket offers it when you set up the GPU; Settings turns it on or off):
$ jacket nvidia-smi # any command, on the GPU
$ jacket # a shell on the GPU, in this folder
$ jacket init # make this folder a project
In a project, its tools also work by name, without jacket in front: see
Projects on the GPU. Jacket adds one line to ~/.zshrc and
~/.bash_profile for it, and nothing else to your PATH: outside projects, every command is your Mac's.
What lives where
| On your Mac | On the Jacket disk |
|---|---|
| Your projects, data, outputs, environments, download caches, models | Linux programs: Python, CUDA toolkits, tools |
The disk is there while the GPU runs. When you unplug the eGPU, it goes away; your files stay on your Mac.