1
0
Fork 0

spack toolchain

main
Jeff Moe 2024-02-03 08:33:08 -07:00
parent 4edd6eda29
commit f90b1733f9
6 changed files with 78 additions and 1 deletions

View File

@ -0,0 +1,8 @@
#!/bin/bash
despacktivate
spack env remove --yes-to-all torch
spack env create torch
spack env activate -p torch
spack add py-torch amdgpu_target=gfx1100
spack concretize -f
spack install -j128

View File

@ -0,0 +1,8 @@
#!/bin/bash
mkdir -p ~/devel/spack
cd ~/devel/spack
git clone https://github.com/spack/spack
. ~/spack/spack/share/spack/setup-env.sh
echo '. ~/devel/spack/spack/share/spack/setup-env.sh' >> ~/.bashrc
echo 'export SPACK_COLOR=always' >> ~/.bashrc
echo 'export SPACK_ENABLE_CCACHE=yes' >> ~/.bashrc

View File

@ -19,6 +19,7 @@ tinyrocs is currently working with AMD 7900 XTX GPUs and ``tinygrad``!
os
toolchain
toolchain-6.0.2
toolchain-spack
apps
source
wetrocs

View File

@ -0,0 +1,40 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2023, 2024 Jeff Moe
# This file is distributed under the same license as the tinyrocs package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: tinyrocs 0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-03 07:28-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
"Language-Team: en <LL@li.org>\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.14.0\n"
#: ../../../_source/toolchain-spack.rst:3
msgid "Toolchain Spack"
msgstr ""
#: ../../../_source/toolchain-spack.rst:4
msgid "Or just use ``spack``."
msgstr ""
#: ../../../_source/toolchain-spack.rst:8
msgid "Setup"
msgstr ""
#: ../../../_source/toolchain-spack.rst:15
msgid "Torch"
msgstr ""
#: ../../../_source/toolchain-spack.rst:16
msgid "Install torch with spack, perhaps."
msgstr ""

View File

@ -44,7 +44,7 @@ Install dependencies from Debian repositories.
python3-venv python3-virtualenv python3-yaml quilt rsync rsyslog sshfs \
sudo swig traceroute vim xxd python3-sphinx git-lfs \
lua5.3 liblua5.3-dev libmpfr-dev libmsgpack-dev libfmt-dev \
environment-modules python3-numpy pybind11-dev libopengl-dev
environment-modules python3-numpy pybind11-dev libopengl-dev zip
# Packages like this aren't used from Debian's repository.
# Make sure they are gone.

View File

@ -0,0 +1,20 @@
===============
Toolchain Spack
===============
Or just use ``spack``.
Setup
-----
.. literalinclude:: _static/scripts/spack/setup-spack.sh
:language: bash
Torch
-----
Install torch with spack, perhaps.
.. literalinclude:: _static/scripts/spack/install-torch.sh
:language: bash