[INFO] cloning repository https://github.com/IndTechSpprt/Split_inference_microcontrollers_fork [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/IndTechSpprt/Split_inference_microcontrollers_fork" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIndTechSpprt%2FSplit_inference_microcontrollers_fork", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIndTechSpprt%2FSplit_inference_microcontrollers_fork'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a87238bd1904183142a967fd89763e8d8b6ea276 [INFO] checking IndTechSpprt/Split_inference_microcontrollers_fork against try#1383df06117fd218068d1f39fd5326256dd4a348 for pr-145181 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIndTechSpprt%2FSplit_inference_microcontrollers_fork" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/IndTechSpprt/Split_inference_microcontrollers_fork [INFO] finished tweaking git repo https://github.com/IndTechSpprt/Split_inference_microcontrollers_fork [INFO] tweaked toml for git repo https://github.com/IndTechSpprt/Split_inference_microcontrollers_fork written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/IndTechSpprt/Split_inference_microcontrollers_fork on toolchain 1383df06117fd218068d1f39fd5326256dd4a348 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/IndTechSpprt/Split_inference_microcontrollers_fork already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking IndTechSpprt/Split_inference_microcontrollers_fork against try#1383df06117fd218068d1f39fd5326256dd4a348 for pr-145181 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIndTechSpprt%2FSplit_inference_microcontrollers_fork" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/IndTechSpprt/Split_inference_microcontrollers_fork [INFO] finished tweaking git repo https://github.com/IndTechSpprt/Split_inference_microcontrollers_fork [INFO] tweaked toml for git repo https://github.com/IndTechSpprt/Split_inference_microcontrollers_fork written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/IndTechSpprt/Split_inference_microcontrollers_fork on toolchain 1383df06117fd218068d1f39fd5326256dd4a348 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/IndTechSpprt/Split_inference_microcontrollers_fork already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bytemuck v1.17.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3903ee13d93088e5ece93cbca748b30746034f0850987afaaf1c3a1309e22eb8 [INFO] running `Command { std: "docker" "start" "-a" "3903ee13d93088e5ece93cbca748b30746034f0850987afaaf1c3a1309e22eb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3903ee13d93088e5ece93cbca748b30746034f0850987afaaf1c3a1309e22eb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3903ee13d93088e5ece93cbca748b30746034f0850987afaaf1c3a1309e22eb8", kill_on_drop: false }` [INFO] [stdout] 3903ee13d93088e5ece93cbca748b30746034f0850987afaaf1c3a1309e22eb8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5e13ebebf45805e271d1f8a82d0ba549af37232551a9033cd68395d712d4802 [INFO] running `Command { std: "docker" "start" "-a" "a5e13ebebf45805e271d1f8a82d0ba549af37232551a9033cd68395d712d4802", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking bytemuck v1.17.1 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking gif v0.13.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking flate2 v1.0.33 [INFO] [stderr] Checking flume v0.11.0 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking exr v1.72.0 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking algo v0.1.0 (/opt/rustwide/workdir/pc_code/Algorithms) [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DynamicImage`, `GenericImageView`, and `Rgba` [INFO] [stdout] --> pc_code/Algorithms/src/lib/util.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | use image::{DynamicImage, GenericImageView, Rgba}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DynamicImage`, `GenericImageView`, and `Rgba` [INFO] [stdout] --> pc_code/Algorithms/src/lib/util.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | use image::{DynamicImage, GenericImageView, Rgba}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_kernel_flag` is never read [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut new_kernel_flag = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_per_cpu` [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | let num_per_cpu: i32 = (output_count as f32 / total_cpu_count as f32).ceil() as i32; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_per_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col_per_cpu` [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | let col_per_cpu = (weight_shape[1] as f32 / total_cpu_count as f32).ceil() as i32; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_col_per_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_per_cpu` [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let num_per_cpu: i32 = (output_count as f32 / total_cpu_count as f32).ceil() as i32; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_per_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `kernel_size` is never read [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let mut kernel_size: (u16, u16) = (0, 0); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_kernel_flag` is never read [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut new_kernel_flag = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_per_cpu` [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | let num_per_cpu: i32 = (output_count as f32 / total_cpu_count as f32).ceil() as i32; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_per_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col_per_cpu` [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | let col_per_cpu = (weight_shape[1] as f32 / total_cpu_count as f32).ceil() as i32; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_col_per_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_side_rows` is never read [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:222:21 [INFO] [stdout] | [INFO] [stdout] 222 | let mut in_side_rows = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_side_rows` is never read [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:297:21 [INFO] [stdout] | [INFO] [stdout] 297 | in_side_rows = convMapping.k.1 - out_side_rows; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_per_cpu` [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let num_per_cpu: i32 = (output_count as f32 / total_cpu_count as f32).ceil() as i32; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_per_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `kernel_size` is never read [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let mut kernel_size: (u16, u16) = (0, 0); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_side_rows` is never read [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:222:21 [INFO] [stdout] | [INFO] [stdout] 222 | let mut in_side_rows = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_side_rows` is never read [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:297:21 [INFO] [stdout] | [INFO] [stdout] 297 | in_side_rows = convMapping.k.1 - out_side_rows; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_side_rows` is never read [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:490:21 [INFO] [stdout] | [INFO] [stdout] 490 | let mut in_side_rows = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_side_rows` is never read [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:566:21 [INFO] [stdout] | [INFO] [stdout] 566 | in_side_rows = convMapping.k.1 - out_side_rows; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_side_rows` is never read [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:490:21 [INFO] [stdout] | [INFO] [stdout] 490 | let mut in_side_rows = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_side_rows` is never read [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:566:21 [INFO] [stdout] | [INFO] [stdout] 566 | in_side_rows = convMapping.k.1 - out_side_rows; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_per_mcu` [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:760:9 [INFO] [stdout] | [INFO] [stdout] 760 | let num_per_mcu = (core_number as f32 / num_cpus_previous as f32).ceil() as u32; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_per_mcu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_per_mcu` [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:760:9 [INFO] [stdout] | [INFO] [stdout] 760 | let num_per_mcu = (core_number as f32 / num_cpus_previous as f32).ceil() as u32; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_per_mcu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `convMapping` should have a snake case name [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | InfoWrapper::Convolution(convMapping) => { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `conv_mapping` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `convMapping` should have a snake case name [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:483:34 [INFO] [stdout] | [INFO] [stdout] 483 | InfoWrapper::Convolution(convMapping) => { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `conv_mapping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `convMapping` should have a snake case name [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:216:34 [INFO] [stdout] | [INFO] [stdout] 216 | InfoWrapper::Convolution(convMapping) => { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `conv_mapping` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `convMapping` should have a snake case name [INFO] [stdout] --> pc_code/Algorithms/src/lib/operations.rs:483:34 [INFO] [stdout] | [INFO] [stdout] 483 | InfoWrapper::Convolution(convMapping) => { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `conv_mapping` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking quant v0.1.0 (/opt/rustwide/workdir/pc_code/Quantization) [INFO] [stdout] warning: unused import: `algo::LayerWrapper::Linear` [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use algo::LayerWrapper::Linear; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConvMapping` and `LinearMapping` [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use algo::{Conv, ConvMapping, InfoWrapper, Layer, LayerWrapper, LinearMapping, Relu6}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::ready` [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::task::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:57:52 [INFO] [stdout] | [INFO] [stdout] 57 | weights_fused[dim][y][x] = (w_bn * conv_weights[i * kernel_size + j]); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 57 - weights_fused[dim][y][x] = (w_bn * conv_weights[i * kernel_size + j]); [INFO] [stdout] 57 + weights_fused[dim][y][x] = w_bn * conv_weights[i * kernel_size + j]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:115:38 [INFO] [stdout] | [INFO] [stdout] 115 | linear.w[i][j] = (weights[i * shape[0] as usize + j]); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - linear.w[i][j] = (weights[i * shape[0] as usize + j]); [INFO] [stdout] 115 + linear.w[i][j] = weights[i * shape[0] as usize + j]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:117:34 [INFO] [stdout] | [INFO] [stdout] 117 | linear.bias[i] = (layer.get_bias(i as i32)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - linear.bias[i] = (layer.get_bias(i as i32)); [INFO] [stdout] 117 + linear.bias[i] = layer.get_bias(i as i32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LayerWrapper` [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | calculations, util, InfoWrapper, Layer, LayerWrapper, Mapping, QuantizedMapping, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `BufReader` [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{BufRead, BufReader}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algo::LayerWrapper::Linear` [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use algo::LayerWrapper::Linear; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConvMapping` and `LinearMapping` [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use algo::{Conv, ConvMapping, InfoWrapper, Layer, LayerWrapper, LinearMapping, Relu6}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::ready` [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::task::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:57:52 [INFO] [stdout] | [INFO] [stdout] 57 | weights_fused[dim][y][x] = (w_bn * conv_weights[i * kernel_size + j]); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 57 - weights_fused[dim][y][x] = (w_bn * conv_weights[i * kernel_size + j]); [INFO] [stdout] 57 + weights_fused[dim][y][x] = w_bn * conv_weights[i * kernel_size + j]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:115:38 [INFO] [stdout] | [INFO] [stdout] 115 | linear.w[i][j] = (weights[i * shape[0] as usize + j]); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - linear.w[i][j] = (weights[i * shape[0] as usize + j]); [INFO] [stdout] 115 + linear.w[i][j] = weights[i * shape[0] as usize + j]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:117:34 [INFO] [stdout] | [INFO] [stdout] 117 | linear.bias[i] = (layer.get_bias(i as i32)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - linear.bias[i] = (layer.get_bias(i as i32)); [INFO] [stdout] 117 + linear.bias[i] = layer.get_bias(i as i32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LayerWrapper` [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | calculations, util, InfoWrapper, Layer, LayerWrapper, Mapping, QuantizedMapping, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `BufReader` [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{BufRead, BufReader}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InfoWrapper` [INFO] [stdout] --> pc_code/Algorithms/src/main.rs:26:48 [INFO] [stdout] | [INFO] [stdout] 26 | use algo::{calculations, operations, util, InfoWrapper}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> pc_code/Algorithms/src/main.rs:608:27 [INFO] [stdout] | [INFO] [stdout] 608 | if(i == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 608 - if(i == 0){ [INFO] [stdout] 608 + if i == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layers_len` [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut layers_len = layers.len(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layers_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut layers_len = layers.len(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | let mut conv_weights = layer.get_weights(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layers_len` [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut layers_len = layers.len(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layers_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let mut weights_quantized = layer [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `test_result` is assigned to, but never used [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut test_result = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_test_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `test_result` is never read [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:134:29 [INFO] [stdout] | [INFO] [stdout] 134 | ... test_result = input; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `flag` is never read [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:148:41 [INFO] [stdout] | [INFO] [stdout] 148 | ... let mut flag = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut layers_len = layers.len(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/merge.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | let mut conv_weights = layer.get_weights(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let mut m_scale: Vec = vec![0; 100]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:152:41 [INFO] [stdout] | [INFO] [stdout] 152 | ... let mut bias = layer.get_bias(j as i32); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `m` is never read [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:487:13 [INFO] [stdout] | [INFO] [stdout] 487 | let mut m = 0.; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let mut weights_quantized = layer [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:488:9 [INFO] [stdout] | [INFO] [stdout] 488 | let mut s1 = scales[layer_id]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:500:9 [INFO] [stdout] | [INFO] [stdout] 500 | let mut zero1 = zero_points[layer_id].round() as u8; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `test_result` is assigned to, but never used [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut test_result = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_test_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `test_result` is never read [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:134:29 [INFO] [stdout] | [INFO] [stdout] 134 | ... test_result = input; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `flag` is never read [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:148:41 [INFO] [stdout] | [INFO] [stdout] 148 | ... let mut flag = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let mut m_scale: Vec = vec![0; 100]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:152:41 [INFO] [stdout] | [INFO] [stdout] 152 | ... let mut bias = layer.get_bias(j as i32); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `m` is never read [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:487:13 [INFO] [stdout] | [INFO] [stdout] 487 | let mut m = 0.; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:488:9 [INFO] [stdout] | [INFO] [stdout] 488 | let mut s1 = scales[layer_id]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Quantization/src/lib/quant.rs:500:9 [INFO] [stdout] | [INFO] [stdout] 500 | let mut zero1 = zero_points[layer_id].round() as u8; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `flag` is never read [INFO] [stdout] --> pc_code/Algorithms/src/main.rs:174:29 [INFO] [stdout] | [INFO] [stdout] 174 | let mut flag = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `flag` is never read [INFO] [stdout] --> pc_code/Algorithms/src/main.rs:290:29 [INFO] [stdout] | [INFO] [stdout] 290 | let mut flag = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `map_size` is assigned to, but never used [INFO] [stdout] --> pc_code/Algorithms/src/main.rs:549:29 [INFO] [stdout] | [INFO] [stdout] 549 | let mut map_size = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_map_size` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `padding_size` is assigned to, but never used [INFO] [stdout] --> pc_code/Algorithms/src/main.rs:550:29 [INFO] [stdout] | [INFO] [stdout] 550 | let mut padding_size = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_padding_size` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking Simulation v0.1.0 (/opt/rustwide/workdir/pc_code/Simulation) [INFO] [stdout] warning: unused variable: `input_shape` [INFO] [stdout] --> pc_code/Algorithms/src/main.rs:729:17 [INFO] [stdout] | [INFO] [stdout] 729 | let mut input_shape = vec![3, height, width]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `flag` is never read [INFO] [stdout] --> pc_code/Algorithms/src/main.rs:760:29 [INFO] [stdout] | [INFO] [stdout] 760 | let mut flag = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Algorithms/src/main.rs:729:13 [INFO] [stdout] | [INFO] [stdout] 729 | let mut input_shape = vec![3, height, width]; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel` [INFO] [stdout] --> pc_code/Algorithms/src/main.rs:831:21 [INFO] [stdout] | [INFO] [stdout] 831 | for (x, pixel) in row.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pixel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `processed_image` [INFO] [stdout] --> pc_code/Algorithms/src/main.rs:846:13 [INFO] [stdout] | [INFO] [stdout] 846 | let processed_image = pre_processing(image_data); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_processed_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quant::merge::merge_batchnorm` [INFO] [stdout] --> pc_code/Quantization/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use quant::merge::merge_batchnorm; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quant::merge::merge_batchnorm` [INFO] [stdout] --> pc_code/Quantization/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use quant::merge::merge_batchnorm; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> pc_code/Quantization/src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | let (res, scale, zero) = quantize_layers_weights(&original_layers); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scale` [INFO] [stdout] --> pc_code/Quantization/src/main.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | let (res, scale, zero) = quantize_layers_weights(&original_layers); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zero` [INFO] [stdout] --> pc_code/Quantization/src/main.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | let (res, scale, zero) = quantize_layers_weights(&original_layers); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_zero` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> pc_code/Quantization/src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | let (res, scale, zero) = quantize_layers_weights(&original_layers); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scale` [INFO] [stdout] --> pc_code/Quantization/src/main.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | let (res, scale, zero) = quantize_layers_weights(&original_layers); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zero` [INFO] [stdout] --> pc_code/Quantization/src/main.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | let (res, scale, zero) = quantize_layers_weights(&original_layers); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_zero` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read` [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs::{read, File, OpenOptions}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read` [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs::{read, File, OpenOptions}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algo::calculations::batchnorm` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use algo::calculations::batchnorm; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algo::calculations::batchnorm` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use algo::calculations::batchnorm; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Add` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::{Add, AddAssign}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Add` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::{Add, AddAssign}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::RecvError` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::mpsc::RecvError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::RecvError` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::mpsc::RecvError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use chrono::{Duration, TimeDelta}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use chrono::{Duration, TimeDelta}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `generate_test_input` and `test_equal` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:3:58 [INFO] [stdout] | [INFO] [stdout] 3 | decode_coordinator, decode_worker, flatten_3d_array, generate_test_input, test_equal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `generate_test_input` and `test_equal` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:3:58 [INFO] [stdout] | [INFO] [stdout] 3 | decode_coordinator, decode_worker, flatten_3d_array, generate_test_input, test_equal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `BufReader` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{BufRead, BufReader}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `BufReader` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{BufRead, BufReader}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::{mpsc, Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::{mpsc, Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::{Duration, TimeDelta}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::{Duration, TimeDelta}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algo::operations::find_which_cpu` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use algo::operations::find_which_cpu; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algo::operations::find_which_cpu` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use algo::operations::find_which_cpu; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algo::WeightUnit` [INFO] [stdout] --> pc_code/Simulation/src/util.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use algo::WeightUnit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algo::WeightUnit` [INFO] [stdout] --> pc_code/Simulation/src/util.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use algo::WeightUnit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> pc_code/Simulation/src/util.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> pc_code/Simulation/src/util.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `distribute_mapping_weight` [INFO] [stdout] --> pc_code/Simulation/src/main.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::distribution::{distribute_mapping_weight, distribute_mapping_weight_quant}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `distribute_mapping_weight` [INFO] [stdout] --> pc_code/Simulation/src/main.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::distribution::{distribute_mapping_weight, distribute_mapping_weight_quant}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Message`, `Result`, and `Work` [INFO] [stdout] --> pc_code/Simulation/src/main.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::nodes::{Message, Result, Work}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Message`, `Result`, and `Work` [INFO] [stdout] --> pc_code/Simulation/src/main.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::nodes::{Message, Result, Work}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `c_1_simulation` [INFO] [stdout] --> pc_code/Simulation/src/main.rs:10:34 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::simulation_settings::{c_1_simulation, c_1_simulation_quant}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `c_1_simulation` [INFO] [stdout] --> pc_code/Simulation/src/main.rs:10:34 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::simulation_settings::{c_1_simulation, c_1_simulation_quant}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, and `mpsc` [INFO] [stdout] --> pc_code/Simulation/src/main.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | use std::sync::{mpsc, Arc, Mutex}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, and `mpsc` [INFO] [stdout] --> pc_code/Simulation/src/main.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | use std::sync::{mpsc, Arc, Mutex}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> pc_code/Simulation/src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> pc_code/Simulation/src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | let mut worker: Worker = Worker { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let mut coordinator = Coordinator { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | let (res, w_scales, w_zeros) = quantize_layers_weights(&layers); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:194:25 [INFO] [stdout] | [INFO] [stdout] 194 | let mut worker: Worker = Worker { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 210 | let mut coordinator = Coordinator { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | let mut worker: Worker = Worker { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let mut coordinator = Coordinator { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | let (res, w_scales, w_zeros) = quantize_layers_weights(&layers); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | let mut next_mcus = decode_u128(&self.mapping[i].map[cur_phase]); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | ... let mut next_mcus = decode_u128(&self.mapping[i].map[cur_phase]); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | let len = self.inputs.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:194:25 [INFO] [stdout] | [INFO] [stdout] 194 | let mut worker: Worker = Worker { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 210 | let mut coordinator = Coordinator { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 330 | let mut next_mcus = decode_u128(&self.mapping[i].map[cur_phase]); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:381:33 [INFO] [stdout] | [INFO] [stdout] 381 | ... let mut next_mcus = decode_u128(&self.mapping[i].map[cur_phase]); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:496:9 [INFO] [stdout] | [INFO] [stdout] 496 | mut calculation_duration: &mut TimeDelta, [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:533:13 [INFO] [stdout] | [INFO] [stdout] 533 | let len = self.inputs.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | Err(me) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:266:21 [INFO] [stdout] | [INFO] [stdout] 266 | Err(me) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | let mut next_mcus = decode_u128(&self.mapping[i].map[cur_phase]); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | ... let mut next_mcus = decode_u128(&self.mapping[i].map[cur_phase]); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distribute_mapping_weight` is never used [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn distribute_mapping_weight( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `receive_and_send` and `receive_and_terminate` are never used [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Coordinator { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] 38 | pub fn receive_and_send( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn receive_and_terminate( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `receive`, `work`, and `adaptive_pooling` are never used [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 215 | impl Worker { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] 216 | pub fn receive(&mut self, rec: &mpsc::Receiver>, id: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | pub fn work( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub fn adaptive_pooling(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `preparation_phase` is never used [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn preparation_phase() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `c_1_simulation` is never used [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn c_1_simulation(num_workers: u8, end: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_test_input` is never used [INFO] [stdout] --> pc_code/Simulation/src/util.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn generate_test_input(width: usize, height: usize, channel: usize) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_equal` is never used [INFO] [stdout] --> pc_code/Simulation/src/util.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn test_equal(result_vec: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | let len = self.inputs.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 330 | let mut next_mcus = decode_u128(&self.mapping[i].map[cur_phase]); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:381:33 [INFO] [stdout] | [INFO] [stdout] 381 | ... let mut next_mcus = decode_u128(&self.mapping[i].map[cur_phase]); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:496:9 [INFO] [stdout] | [INFO] [stdout] 496 | mut calculation_duration: &mut TimeDelta, [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:533:13 [INFO] [stdout] | [INFO] [stdout] 533 | let len = self.inputs.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | Err(me) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:266:21 [INFO] [stdout] | [INFO] [stdout] 266 | Err(me) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distribute_mapping_weight` is never used [INFO] [stdout] --> pc_code/Simulation/src/distribution.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn distribute_mapping_weight( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `receive_and_send` and `receive_and_terminate` are never used [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Coordinator { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] 38 | pub fn receive_and_send( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn receive_and_terminate( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `receive`, `work`, and `adaptive_pooling` are never used [INFO] [stdout] --> pc_code/Simulation/src/nodes.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 215 | impl Worker { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] 216 | pub fn receive(&mut self, rec: &mpsc::Receiver>, id: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | pub fn work( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub fn adaptive_pooling(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `preparation_phase` is never used [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn preparation_phase() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `c_1_simulation` is never used [INFO] [stdout] --> pc_code/Simulation/src/simulation_settings.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn c_1_simulation(num_workers: u8, end: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_test_input` is never used [INFO] [stdout] --> pc_code/Simulation/src/util.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn generate_test_input(width: usize, height: usize, channel: usize) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_equal` is never used [INFO] [stdout] --> pc_code/Simulation/src/util.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn test_equal(result_vec: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 13.36s [INFO] running `Command { std: "docker" "inspect" "a5e13ebebf45805e271d1f8a82d0ba549af37232551a9033cd68395d712d4802", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5e13ebebf45805e271d1f8a82d0ba549af37232551a9033cd68395d712d4802", kill_on_drop: false }` [INFO] [stdout] a5e13ebebf45805e271d1f8a82d0ba549af37232551a9033cd68395d712d4802