<aside> 💡 This setup is for emulating a local development feel in PyCharm while using a remote machine allocated by SLURM. PyCharm has a built in Remote Development plugin, but its buggy at the moment and the backend doesn’t run on SkyNet. When this feature comes out of beta in the future, it might make more sense to use that.

</aside>

What this setup does

  1. Allocate GPU resources via srun
  2. Set up a local port forward to the allocated gpu instance
  3. Set the PyCharm interpreter to the remote one on the GPU instance. PyCharm also keeps your local and remote project files in sync via rsync.

Usage

  1. Run remote-dev a40 1 with your specified parameters. This will launch a GPU shell and local portforward tunnel to the allocated machine.
  2. Open PyCharm

Instructions

1. Prerequisites

2. Local Machine Script [copy into local .bashrc/.zshrc]

3. Remote Machine Script [copy into skynet .bashrc]

4. PyCharm Setup