Using CPU/GPU resources

Situation

Someone has advanced computing resource needs because their workstation or laptop resources are insufficient. The Digital Research Alliance of Canada (DRAC), or the Alliance, offers a very generous resource for its members.

The Alliance

The Digital Research Alliance of Canada (formerly Compute Canada) provides Canadian researchers (and their students) with free access to high-performance computing infrastructure. All job submissions go through SLURM, a scheduler that determines when and where your job will run.

→ Access

→ Types of resources

The first step is to determine your needs:

  • CPU: Your code is sequential or slightly parallel, uses data processing tools (pandas, R, etc.), runs bioinformatics tools, or lacks GPU-optimized libraries.
  • GPU: You train deep learning models (PyTorch, TensorFlow, JAX), run CUDA-accelerated simulations, or perform large-scale matrix operations.

→ Launch the computing job

→ Specifics

  • You must request exactly the resources you need. Requesting too many lowers your priority (the chance of getting resources in the future).
  • Never use the login node (front-end node) to run your jobs. Also, do not use VS Code on the front-end node. Use a compute node instead.
  • Some compute nodes do not have internet access.

Summary

  1. Identify a lack of computational resources
  2. Register with the Alliance
  3. Identify the necessary resources
  4. Launch the computation