Skip to content

Commit 54bd55e

Browse files
authored
Update Add Example & Getting Started (#117)
* Figure out what works for the add example * Update guide's CUDA SDK versions See also #100
1 parent 5b9e9d9 commit 54bd55e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

examples/cuda/cpu/add/Cargo.toml

+13
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,18 @@ edition = "2021"
77
cust = { version = "0.3", path = "../../../../crates/cust" }
88
nanorand = "0.6.1"
99

10+
# We don't depend on these directly, but want to pin them to specific versions.
11+
# This is because we're bound to a specific rustc version but cargo will chose
12+
# the newest semver compatible versions anyway.
13+
log = "=0.4.17"
14+
regex-syntax = "=0.6.28"
15+
regex = "=1.7.1"
16+
thread_local = "=1.1.4"
17+
jobserver = "=0.1.25"
18+
cc = "=1.0.78"
19+
rayon = "=1.5.1"
20+
rayon-core = "=1.10.0"
21+
byteorder = "=1.4.0"
22+
1023
[build-dependencies]
1124
cuda_builder = { version = "0.3", path = "../../../../crates/cuda_builder" }

guide/src/guide/getting_started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This section covers how to get started writing GPU crates with `cuda_std` and `c
55
## Required Libraries
66

77
Before you can use the project to write GPU crates, you will need a couple of prerequisites:
8-
- [The CUDA SDK](https://developer.nvidia.com/cuda-downloads), version `11.2` or higher (and the appropriate driver - [see cuda release notes](https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html)) . This is only for building
8+
- [The CUDA SDK](https://developer.nvidia.com/cuda-downloads), version `11.2-11.8` (and the appropriate driver - [see cuda release notes](https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html)) . This is only for building
99
GPU crates, to execute built PTX you only need CUDA 9+.
1010

1111
- LLVM 7.x (7.0 to 7.4), The codegen searches multiple places for LLVM:

0 commit comments

Comments
 (0)