README: update toolchain docs to match what we actually use
This commit is contained in:
parent
bcefd46105
commit
c06aa7ff36
|
@ -75,16 +75,15 @@ which can easily be 30-100x faster:
|
|||
|
||||
## GPU Acceleration
|
||||
|
||||
we use rust-gpu for gpu acceleration. presently, this requires *specific* versions of rust-nightly to work.
|
||||
we use [rust-gpu]((https://github.com/EmbarkStudios/rust-gpu/)) for gpu acceleration.
|
||||
presently, this requires *specific* versions of rust-nightly to work.
|
||||
the feature is toggled at runtime, but compiled unconditionally. set up the toolchain according to [rust-toolchain.toml](rust-toolchain.toml):
|
||||
|
||||
```
|
||||
$ rustup default nightly-2022-04-11
|
||||
$ rustup default nightly-2022-08-29
|
||||
$ rustup component add rust-src rustc-dev llvm-tools-preview
|
||||
```
|
||||
|
||||
(it's possible to work with older nightlies like `nightly-2022-01-13` or `nightly-2021-06-08` if you enable the 2020 feature and downgrade whichever packages rustc complains about.)
|
||||
|
||||
now you can swap out the `CpuDriver` with a `SpirvDriver` and you're set:
|
||||
```diff
|
||||
- let mut driver = Driver::new(SpirvSim::<f32, Mat, spirv::CpuBackend>::new(size, feature_size));
|
||||
|
|
Loading…
Reference in New Issue