Skip to content

Instantly share code, notes, and snippets.

@haydnv
Created February 9, 2023 11:52
Show Gist options
  • Save haydnv/f7b2d5847a8dbcc1cf5e68a3aee6a841 to your computer and use it in GitHub Desktop.
Save haydnv/f7b2d5847a8dbcc1cf5e68a3aee6a841 to your computer and use it in GitHub Desktop.
custos-math compile errors
~/Documents/custos-math$ cargo check --no-default-features
Checking custos-math v0.5.0 (/home/haydn/Documents/custos-math)
error[E0432]: unresolved imports `custos::get_device`, `custos::CUdeviceptr`
--> src/matrix.rs:10:5
|
10 | get_device, Alloc, BufFlag, Buffer, CDatatype, CUdeviceptr, Device, GenericBlas, GraphReturn,
| ^^^^^^^^^^ no `get_device` in the root ^^^^^^^^^^^ no `CUdeviceptr` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/nn/activations.rs:6:33
|
6 | use custos::{devices::cpu::CPU, get_device, number::Float, CDatatype};
| ^^^^^^^^^^ no `get_device` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/nn/loss/cce.rs:2:14
|
2 | use custos::{get_device, number::Float, CDatatype, CPU};
| ^^^^^^^^^^ no `get_device` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/nn/softmax.rs:7:14
|
7 | use custos::{get_device, number::Float, range, GenericBlas, CPU};
| ^^^^^^^^^^ no `get_device` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/clip.rs:1:28
|
1 | use custos::{cache::Cache, get_device, number::Number, CDatatype, CPU};
| ^^^^^^^^^^ no `get_device` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/diagflat.rs:6:38
|
6 | use custos::{cache::Cache, cpu::CPU, get_device, CDatatype};
| ^^^^^^^^^^ no `get_device` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/fns.rs:1:24
|
1 | use custos::{cpu::CPU, get_device, number::Float, CDatatype};
| ^^^^^^^^^^ no `get_device` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/max.rs:2:28
|
2 | use custos::{cache::Cache, get_device, number::Number, CDatatype, CPU};
| ^^^^^^^^^^ no `get_device` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/random.rs:4:14
|
4 | use custos::{get_device, number::Float, Alloc, Buffer, CPU};
| ^^^^^^^^^^ no `get_device` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/row_op.rs:2:24
|
2 | use custos::{cpu::CPU, get_device, number::Number, CDatatype};
| ^^^^^^^^^^ no `get_device` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/scalar.rs:2:24
|
2 | use custos::{cpu::CPU, get_device, number::Number, CDatatype};
| ^^^^^^^^^^ no `get_device` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/scalar_assign.rs:2:14
|
2 | use custos::{get_device, CPU, CDatatype};
| ^^^^^^^^^^ no `get_device` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/sum.rs:2:14
|
2 | use custos::{get_device, number::Number, CDatatype, Cache, CPU};
| ^^^^^^^^^^ no `get_device` in the root
error[E0432]: unresolved import `custos::get_device`
--> src/ops/transpose.rs:5:24
|
5 | use custos::{cpu::CPU, get_device, CDatatype, Cache};
| ^^^^^^^^^^ no `get_device` in the root
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:190:22
|
190 | let device = get_device!(self.device(), Gemm<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:230:22
|
230 | let device = get_device!(self.device(), VecRead<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:529:22
|
529 | let device = get_device!(self.device(), BaseOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:538:22
|
538 | let device = get_device!(self.device(), BaseOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:547:22
|
547 | let device = get_device!(self.device(), BaseOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:556:22
|
556 | let device = get_device!(self.device(), BaseOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:583:22
|
583 | let device = get_device!(self.device(), BaseOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:592:22
|
592 | let device = get_device!(self.device(), BaseOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:601:22
|
601 | let device = get_device!(self.device(), BaseOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:610:22
|
610 | let device = get_device!(self.device(), BaseOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:639:22
|
639 | let device = get_device!(self.device(), BaseOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:648:22
|
648 | let device = get_device!(self.device(), BaseOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:657:22
|
657 | let device = get_device!(self.device(), BaseOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:706:22
|
706 | let device = get_device!(self.device(), AssignOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:713:22
|
713 | let device = get_device!(self.device(), AssignOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:720:22
|
720 | let device = get_device!(self.device(), AssignOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:727:22
|
727 | let device = get_device!(self.device(), AssignOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:734:22
|
734 | let device = get_device!(self.device(), AssignOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/matrix.rs:741:22
|
741 | let device = get_device!(self.device(), AssignOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/nn/activations.rs:16:22
|
16 | let device = get_device!(self.device(), ActivationOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/nn/activations.rs:22:22
|
22 | let device = get_device!(self.device(), ActivationOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/nn/activations.rs:28:22
|
28 | let device = get_device!(self.device(), ActivationOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/nn/activations.rs:34:22
|
34 | let device = get_device!(self.device(), ActivationOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/nn/activations.rs:40:9
|
40 | get_device!(self.device(), ActivationOps<T>).sigmoid(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/nn/activations.rs:46:9
|
46 | get_device!(self.device(), ActivationOps<T>).sigmoid_grad(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/nn/loss/cce.rs:16:22
|
16 | let device = get_device!(self.device(), CCEOp<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/nn/softmax.rs:18:22
|
18 | let device = get_device!(self.device(), SoftmaxOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/nn/softmax.rs:22:22
|
22 | let device = get_device!(self.device(), SoftmaxOps<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/clip.rs:12:9
|
12 | get_device!(self.device(), ClipOp<T>).clip(self, min, max)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/diagflat.rs:15:9
|
15 | get_device!(self.device(), DiagflatOp<T>).diagflat(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/fns.rs:17:9
|
17 | get_device!(self.device(), FnsOps<T>).exp(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/fns.rs:21:9
|
21 | get_device!(self.device(), FnsOps<T>).ln(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/fns.rs:25:9
|
25 | get_device!(self.device(), FnsOps<T>).neg(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/fns.rs:29:9
|
29 | get_device!(self.device(), FnsOps<T>).powf(self, rhs)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/fns.rs:33:9
|
33 | get_device!(self.device(), FnsOps<T>).powi(self, rhs)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/max.rs:16:9
|
16 | get_device!(self.device(), MaxOps<T>).max(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/max.rs:20:9
|
20 | get_device!(self.device(), MaxOps<T>).max_rows(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/max.rs:24:9
|
24 | get_device!(self.device(), MaxOps<T>).max_cols(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/random.rs:15:22
|
15 | let device = get_device!(self.device, RandOp<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/row_op.rs:16:22
|
16 | let device = get_device!(self.device(), RowOp<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/row_op.rs:21:22
|
21 | let device = get_device!(self.device(), RowOp<T>);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/scalar.rs:16:9
|
16 | get_device!(self.device(), AdditionalOps<T>).adds(self, rhs)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/scalar.rs:20:9
|
20 | get_device!(self.device(), AdditionalOps<T>).muls(self, rhs)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/scalar.rs:24:9
|
24 | get_device!(self.device(), AdditionalOps<T>).divs(self, rhs)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/scalar_assign.rs:83:9
|
83 | get_device!(self.device(), ScalarAssign<T>).adds_assign(self, rhs);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/scalar_assign.rs:89:9
|
89 | get_device!(self.device(), ScalarAssign<T>).muls_assign(self, rhs);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/scalar_assign.rs:95:9
|
95 | get_device!(self.device(), ScalarAssign<T>).divs_assign(self, rhs);
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/sum.rs:16:9
|
16 | get_device!(self.device(), SumOps<T>).sum(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/sum.rs:20:9
|
20 | get_device!(self.device(), SumOps<T>).mean(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/sum.rs:24:9
|
24 | get_device!(self.device(), SumOps<T>).sum_rows(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/sum.rs:28:9
|
28 | get_device!(self.device(), SumOps<T>).sum_cols(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `get_device`
--> src/ops/transpose.rs:31:9
|
31 | get_device!(self.device(), TransposeOp<T>).transpose(self)
| ^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error[E0782]: trait objects must include the `dyn` keyword
--> src/matrix.rs:66:29
|
66 | pub fn device(&self) -> Device {
| ^^^^^^
|
help: add `dyn` keyword before this trait
|
66 | pub fn device(&self) -> dyn Device {
| +++
error[E0191]: the value of the associated types `Cache` (from trait `Device`), `Ptr` (from trait `Device`) must be specified
--> src/matrix.rs:66:29
|
66 | pub fn device(&self) -> Device {
| ^^^^^^ help: specify the associated types: `Device<Ptr = Type, Cache = Type>`
Some errors have detailed explanations: E0191, E0432, E0782.
For more information about an error, try `rustc --explain E0191`.
error: could not compile `custos-math` due to 68 previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment