u/brucehoult

GitHub - brucehoult/k3_ai: Utility to start a program on the A100 "AI" cores on SpacemiT K3 machines.
▲ 36 r/spacemit_riscv+1 crossposts

GitHub - brucehoult/k3_ai: Utility to start a program on the A100 "AI" cores on SpacemiT K3 machines.

Now that people are starting to receive boards, I should make this available.

It lets you conveniently launch any Linux program, and all its children, on the A100 "AI" cores.

Examples:

# just run a single program on the A100 cores
ai as hello.s -o hello.o

# same thing but maybe 1ms faster
aix /usr/bin/as hello.s -o hello.o

# run a whole build. All processes started by `make` will run on the A100 cores.
ai make -j8 test

# start a shell on the A100 cores. All programs run from it will be run only on the A100 cores
ai bash

Tested on the preinstalled Bianbu. I have no idea yet whether the SpacemiT/Canonical cooperation will make this ability available on Ubuntu.

github.com
u/brucehoult — 2 days ago
▲ 72 r/RISCV

Another K3 arrived

Don’t live in a remote rural part of the most remote country on Earth if you want to be the first to receive things!

I haven’t received any tracking number so the arrival was a total surprise.

u/brucehoult — 2 days ago

I cut down the December 2019 RISC-V ISA manual to just the things needed to get started with RV32I, to be even less intimidating.

I left out the end of the RV32I chapter with fence, ecall/ebreak, and hints. But included the later page (which many people miss) with the exact binary encodings, and also the chapter with the register API names and standard pseudo-instructions.

It's 18 pages in total.

I hope it's useful to someone else.

hoult.org
u/brucehoult — 1 month ago