Commit b26ecb5
fix: Expose CUDA primitives (#2179)
When building autoprecompile chips in GPU in `powdr-labs/powdr`, we need
access to `histogram.cuh` in `openvm/circuit-primitives` to modify
counts of periphery chips. This requires exporting include dir in
`openvm/circuit-primitives` for downstream crates (`powdr-openvm`). We
believe this (and potentially other crates) to be general client
extension usage.
The way we export `openvm/circuit-primitives` to
`powdr-labs/powdr-openvm` is EXACTLY the same as how
`stark-backend/cuda-common` is exported to `openvm`:
-
https://github.com/openvm-org/stark-backend/blob/main/crates/cuda-common/build.rs#L18-L19
-
https://github.com/openvm-org/stark-backend/blob/main/crates/cuda-common/Cargo.toml#L7
---------
Co-authored-by: Schaeff <[email protected]>1 parent a76a9d0 commit b26ecb5
2 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
20 | 29 | | |
21 | 30 | | |
0 commit comments