Skip to content

Commit

Permalink
chore/cargo: nested workspace workarounds
Browse files Browse the repository at this point in the history
See rust-lang/cargo#5042 for details.
  • Loading branch information
drahnr committed Jan 30, 2020
1 parent 310d23b commit b3f5a3e
Show file tree
Hide file tree
Showing 8 changed files with 665 additions and 2,004 deletions.
1,125 changes: 648 additions & 477 deletions Cargo.lock

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[workspace]
members = ["greenglas", "coaster", "coaster-nn", "coaster-blas", "juice", "juice-examples", "rust-blas", "rcudnn", "rcublas"]
members = ["greenglas", "coaster", "coaster-nn", "coaster-blas", "juice", "juice-examples", "rust-blas", "rcudnn/cudnn", "rcudnn/cudnn-sys", "rcublas/cublas", "rcublas/cublas-sys"]

exclude = [ "./rcudnn", "./rcudart", "./rcublas" ]

[patch.crates-io]
coaster-nn = { path = "./coaster-nn" }
Expand All @@ -8,7 +10,8 @@ coaster = { path = "./coaster" }
greenglas = { path = "./greenglas" }
juice = { path = "./juice" }
rust-blas = { path = "./rust-blas" }
rust-blas = { path = "./rcublas" }
rcublas = { path = "./rcublas/cublas" }
rcublas-sys = { path = "./rcublas/cublas-sys" }
rcudnn = { path = "./rcudnn/cudnn" }
rcudnn-sys = { path = "./rcudnn/cudnn-sys" }

Expand Down
4 changes: 2 additions & 2 deletions coaster-blas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ coaster = { version = "0.1", default-features = false }
lazy_static = "1"

# native
rust-blas = { version = "0.1", optional = true }
rust-blas = { version = "^0.1", optional = true }

# cuda
rcublas = { version = "0.2", optional = true }
rcublas = { version = "^0.3", optional = true }

clippy = { version = "0.0.302", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion coaster-nn/src/frameworks/cuda/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ impl<T> ConvolutionConfig<T> for crate::cudnn::utils::ConvolutionConfig
where T: Float + DataTypeInfo
{
fn workspace_size(&self) -> usize {
*self.largest_workspace_size()
self.largest_workspace_size()
}
}

Expand Down
Loading

0 comments on commit b3f5a3e

Please sign in to comment.