Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ThePerfectComputer/b5392dbdeeb477e417b3f67d5618b63b to your computer and use it in GitHub Desktop.
Save ThePerfectComputer/b5392dbdeeb477e417b3f67d5618b63b to your computer and use it in GitHub Desktop.
Tenstorrent riscv32-unknown-elf-gcc in docker
Last login: Tue Oct 1 09:04:40 on ttys003
yehowshua@Yehowshuas-iMac:~$cd sandbox/
yehowshua@Yehowshuas-iMac:sandbox$mkdir test-tt-gcc
yehowshua@Yehowshuas-iMac:sandbox$cd test-tt-gcc/
yehowshua@Yehowshuas-iMac:test-tt-gcc$wget https://raw.githubusercontent.com/ThePerfectComputer/tt-gcc/refs/heads/gcc_10.2.0/test.c
--2024-10-01 09:05:38-- https://raw.githubusercontent.com/ThePerfectComputer/tt-gcc/refs/heads/gcc_10.2.0/test.c
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8003::154, 2606:50c0:8000::154, 2606:50c0:8001::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8003::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 928 [text/plain]
Saving to: ‘test.c’
test.c 100%[===================>] 928 --.-KB/s in 0s
2024-10-01 09:05:39 (68.1 MB/s) - ‘test.c’ saved [928/928]
yehowshua@Yehowshuas-iMac:test-tt-gcc$ls
test.c
yehowshua@Yehowshuas-iMac:test-tt-gcc$docker run -v `pwd`:/mnt/work -it ghcr.io/tenstorrent/tt-metal/tt-metalium/ubuntu-20.04-amd64/grayskull:dev-dimitri-tenstorrent.grayskull.8d6c90a9fc7850c25cfc6b51f974d6a5ef6912bf /bin/bash
python@b8f374a285d7:/usr/app$ cd /home/python/.local/lib/python3.8/site-packages/tt_metal/third_party/sfpi/compiler/bin
python@b8f374a285d7:~/.local/lib/python3.8/site-packages/tt_metal/third_party/sf
pi/compiler/bin$ cd /mnt/work/
python@b8f374a285d7:/mnt/work$ /home/python/.local/lib/python3.8/site-packages/tt_metal/third_party/sfpi/compiler/bin/riscv32-unknown-elf-gcc test.c
python@b8f374a285d7:/mnt/work$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment