Skip to content

benjaminhottell/nix-rocm-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-rocm-pytorch

This repository stores how I got pytorch to compile on NixOS, running on an AMD GPU using ROCm.

Setup

In the file derivations/pytorch-rocm-2_7_1.nix, change rocm-archs to the architectures available on your system.

# Architectures to compile for
# Try:
#   nix-shell -p rocmPackages.rocminfo
#   rocm_agent_enumerator
# Semicolon separated!
rocm-archs = "gfx1101;gfx1036";

Usage

Running nix-shell in the root directory of this repository will build pytorch and all of its dependencies.

This process will probably take a while.

Afterward, run test.py to verify that it is working.

About

Compiles pytorch with rocm on nixos

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors