Install SCALE#
SCALE is currently available as either a .deb
package or a tarball for Linux operating systems.
Debian-like Linux (Debian, Ubuntu, Mint)#
First, set up the ROCm 6.0.2 package repository. This is explained by AMD, but briefly:
sudo mkdir --parents --mode=0755 /etc/apt/keyrings
wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \
gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/6.0.2 jammy main" \
| sudo tee --append /etc/apt/sources.list.d/rocm.list
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \
| sudo tee /etc/apt/preferences.d/rocm-pin-600
sudo apt update
SCALE can be installed as follows:
# Download the .deb package
# sha512sum: e411d7cbe9b75f80e18293d31b2870a05556c34f825584a055e6738a7e696c17d1bb71c6acf081aff109a2cd227fe9dbd9f11a5604de498598830c02014794e8
wget https://dist.scale-lang.com/scale-free-1.1.0-Ubuntu22.04.deb
# Install the package
sudo apt-get install ./scale-free-1.1.0-Ubuntu22.04.deb
The /dev/kfd
device is writable only to root and members of the render
group by default on Ubuntu. Add your user
(in this example: youruser
) to that group, then log out and log back in:
sudo usermod -a -G render youruser
If, as is the case on Ubuntu 22.04, your kernel is too old, then you'll need to install the kernel driver as well. On Ubuntu 22.04. this can be done as follows:
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/6.0.2/ubuntu jammy main" \
| sudo tee /etc/apt/sources.list.d/amdgpu.list
sudo apt update
sudo apt install amdgpu-dkms g++-12
sudo reboot
Other Linux distros#
There is also a tarball containing binaries for other distributions and that is not tied to a system-wide path.
# Download the tarball
# sha512sum: d87105f03804b482e2af9b219c1d282285e9e41440462cf3fb3ea76cddeac509e80f450078ecc65aeab3d8395d66bfc8f21df1b355252233bf97c67c41f8cbf3
wget https://dist.scale-lang.com/scale-free-1.1.0-Linux.tar.xz
# Extract the SCALE tarball.
tar xf scale-free-1.1.0-Linux.tar.xz
The tarball is significantly larger than the .deb
, since it includes many dependent libraries directly instead of asking the system package manager to install them.