Skip to content

Commit

Permalink
Chore: Rust CUDA 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RDambrosio016 committed Dec 5, 2021
1 parent c0059c3 commit 63c9f56
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions crates/cuda_builder/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cuda_builder"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
authors = ["Riccardo D'Ambrosio <[email protected]>", "The rust-gpu Authors"]
license = "MIT OR Apache-2.0"
Expand All @@ -9,7 +9,7 @@ repository = "https://github.com/Rust-GPU/Rust-CUDA"
readme = "../../README.md"

[dependencies]
rustc_codegen_nvvm = { version = "0.1", path = "../rustc_codegen_nvvm" }
rustc_codegen_nvvm = { version = "0.2", path = "../rustc_codegen_nvvm" }
nvvm = { path = "../nvvm", version = "0.1" }
serde = { version = "1.0.130", features = ["derive"] }
serde_json = "1.0.68"
Expand Down
2 changes: 2 additions & 0 deletions crates/cuda_std/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Notable changes to this project will be documented in this file.

## Unreleased

## 0.2.0 - 12/5/21

- Added `#[externally_visible]` in conjunction with cg_nvvm dead code elimination changes to mark that
a function is externally visible.
- Added `#[address_space(...)]` in conjunction with cg_nvvm address space changes. Only meant for internal use
Expand Down
2 changes: 1 addition & 1 deletion crates/cuda_std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "../../README.md"

[dependencies]
vek = { version = "0.15.1", default-features = false, features = ["libm"] }
cuda_std_macros = { version = "0.1", path = "../cuda_std_macros" }
cuda_std_macros = { version = "0.2", path = "../cuda_std_macros" }
half = "1.7.1"
bitflags = "1.3.2"
paste = "1.0.5"
2 changes: 1 addition & 1 deletion crates/cuda_std_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cuda_std_macros"
version = "0.1.0"
version = "0.2.0"
edition = "2018"
license = "MIT OR Apache-2.0"
description = "Macros for cuda_std"
Expand Down
3 changes: 3 additions & 0 deletions crates/cust/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ Notable changes to this project will be documented in this file.

## [Unreleased]

## 0.2.1 - 12/5/21

- Added `Device::as_raw`.
- Added `MemoryAdvise` for unified memory advising.
- Added `MemoryAdvise::prefetch_host` and `MemoryAdvise::prefetch_device` for telling CUDA to explicitly fetch unified memory somewhere.
- Added `MemoryAdvise::advise_read_mostly`.
- Added `MemoryAdvise::preferred_location` and `MemoryAdvise::unset_preferred_location`.
Note that advising APIs are only present on high end GPUs such as V100s.
- `StreamFlags::NON_BLOCKING` has been temporarily disabled because of [soundness concerns](https://github.com/Rust-GPU/Rust-CUDA/issues/15).

## 0.2.0 - 11/26/21

Expand Down
2 changes: 1 addition & 1 deletion crates/cust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cust"
version = "0.2.0"
version = "0.2.1"
# Big thanks to the original author of rustacuda <3
authors = ["Riccardo D'Ambrosio <[email protected]>", "Brook Heisler <[email protected]>"]
edition = "2018"
Expand Down
3 changes: 3 additions & 0 deletions crates/rustc_codegen_nvvm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Notable changes to this project will be documented in this file.

## Unreleased

## 0.2.0 - 12/5/21

### Address Spaces

CUDA Address Spaces have been mostly implemented. Statics that are not mut statics and do not rely on
Expand Down Expand Up @@ -40,6 +42,7 @@ However, if you rely on libm for determinism, you must disable the overriding, s
This also makes PTX much smaller generally, in our example path tracer, it slimmed the PTX file from about `3800` LoC to `2300` LoC.

- Trace-level debug is compiled out for release now, decreasing the size of the codegen dll and improving compile times.
- Updated to nightly 12/5/21

## 0.1.1 - 11/26/21

Expand Down
2 changes: 1 addition & 1 deletion crates/rustc_codegen_nvvm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustc_codegen_nvvm"
version = "0.1.1"
version = "0.2.0"
authors = ["Riccardo D'Ambrosio <[email protected]>", "The Rust Project Developers"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/cuda/cpu/add/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ cust = { version = "0.2", path = "../../../../crates/cust" }
nanorand = "0.6.1"

[build-dependencies]
cuda_builder = { version = "0.1", path = "../../../../crates/cuda_builder" }
cuda_builder = { version = "0.2", path = "../../../../crates/cuda_builder" }
2 changes: 1 addition & 1 deletion examples/cuda/cpu/path_tracer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ rayon = "1.5.1"
sysinfo = "0.20.5"

[build-dependencies]
cuda_builder = { version = "0.1", path = "../../../../crates/cuda_builder" }
cuda_builder = { version = "0.2", path = "../../../../crates/cuda_builder" }

0 comments on commit 63c9f56

Please sign in to comment.