Skip to content

Instantly share code, notes, and snippets.

@haydnv
Created February 27, 2023 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haydnv/7a67ce723cdb2865b43dd6c9cea4370f to your computer and use it in GitHub Desktop.
Save haydnv/7a67ce723cdb2865b43dd6c9cea4370f to your computer and use it in GitHub Desktop.
error[E0277]: the trait bound `cuda_device::CUDA: shape::Shape` is not satisfied
--> src/devices/cuda/cuda_device.rs:168:20
|
168 | impl<T: CDatatype> ClearBuf<T, CUDA> for CUDA {
| ^^^^^^^^^^^^^^^^^ the trait `shape::Shape` is not implemented for `cuda_device::CUDA`
|
= help: the following other types implement trait `shape::Shape`:
()
Dim3<C, B, A>
shape::Dim1<N>
shape::Dim2<B, A>
note: required by a bound in `op_traits::ClearBuf`
--> src/op_traits.rs:8:26
|
8 | pub trait ClearBuf<T, S: Shape = (), D: Device = Self>: Device {
| ^^^^^ required by this bound in `op_traits::ClearBuf`
error[E0277]: the trait bound `cuda_device::CUDA: shape::Shape` is not satisfied
--> src/devices/cuda/cuda_device.rs:204:9
|
204 | impl<T> WriteBuf<T, CUDA> for CUDA {
| ^^^^^^^^^^^^^^^^^ the trait `shape::Shape` is not implemented for `cuda_device::CUDA`
|
= help: the following other types implement trait `shape::Shape`:
()
Dim3<C, B, A>
shape::Dim1<N>
shape::Dim2<B, A>
note: required by a bound in `op_traits::WriteBuf`
--> src/op_traits.rs:81:26
|
81 | pub trait WriteBuf<T, S: Shape = (), D: Device = Self>: Device {
| ^^^^^ required by this bound in `op_traits::WriteBuf`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment