archx 2.1.0

High-performance CPU/GPU adaptive optimization library with SIMD and Multithreading
Documentation
��cargo : warning: unused import: `std::thread`

At line:1 char:1

+ cargo run --example v2_3_adaptive_demo 2> 

panic.txt

+ 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (warni 

   ng: unused import: `std::thread`:String) [], R  

  emoteException

    + FullyQualifiedErrorId : NativeCommandError

 

 --> examples\v2_3_adaptive_demo.rs:2:5

  |

2 | use std::thread;

  |     ^^^^^^^^^^^

  |

  = note: `#[warn(unused_imports)]` (part of 

`#[warn(unused)]`) on by default



warning: unused import: `std::time::Duration`

 --> examples\v2_3_adaptive_demo.rs:3:5

  |

3 | use std::time::Duration;

  |     ^^^^^^^^^^^^^^^^^^^



warning: variable `sum` is assigned to, but never 

used

  --> examples\v2_3_adaptive_demo.rs:19:17

   |

19 |             let mut sum = 0;

   |                 ^^^^^^^

   |

   = note: consider using `_sum` instead

   = note: `#[warn(unused_variables)]` (part of 

`#[warn(unused)]`) on by default



warning: value assigned to `sum` is never read

  --> examples\v2_3_adaptive_demo.rs:20:37

   |

20 | ...   for i in 0..1_000_000 { sum += i; }

   |                               ^^^^^^^^

   |

   = help: maybe it is overwritten before being 

read?

   = note: `#[warn(unused_assignments)]` (part of 

`#[warn(unused)]`) on by default



warning: variable `sum` is assigned to, but never 

used

  --> examples\v2_3_adaptive_demo.rs:10:13

   |

10 |         let mut sum = 0;

   |             ^^^^^^^

   |

   = note: consider using `_sum` instead



warning: value assigned to `sum` is never read

  --> examples\v2_3_adaptive_demo.rs:11:33

   |

11 |         for i in 0..1_000_000 { sum += i; }

   |                                 ^^^^^^^^

   |

   = help: maybe it is overwritten before being 

read?



warning: `archx` (example "v2_3_adaptive_demo") 

generated 6 warnings (run `cargo fix --example 

"v2_3_adaptive_demo" -p archx` to apply 2 

suggestions)

    Finished `dev` profile [unoptimized + 

debuginfo] target(s) in 0.10s

     Running 

`target\debug\examples\v2_3_adaptive_demo.exe`



thread 'main' (16600) panicked at 

examples\v2_3_adaptive_demo.rs:11:33:

attempt to add with overflow

stack backtrace:

   0: std::panicking::panic_handler

             at /rustc/ded5c06cf21d2b93bffd5d884aa6

e96934ee4234/library\std\src\panicking.rs:698

   1: core::panicking::panic_fmt

             at /rustc/ded5c06cf21d2b93bffd5d884aa6

e96934ee4234/library\core\src\panicking.rs:80

   2: core::panicking::panic_const::panic_const_add

_overflow

             at /rustc/ded5c06cf21d2b93bffd5d884aa6

e96934ee4234/library\core\src\panicking.rs:180

   3: v2_3_adaptive_demo::main::closure$0

             at .\examples\v2_3_adaptive_demo.rs:11

   4: archx::public_api::archx::ArchX::run<v2_3_ada

ptive_demo::main::closure_env$0,tuple$<> >

             at .\src\public_api\archx.rs:21

   5: v2_3_adaptive_demo::main

             at .\examples\v2_3_adaptive_demo.rs:9

   6: core::ops::function::FnOnce::call_once<void 

(*)(),tuple$<> >

             at C:\Users\PC\.rustup\toolchains\stab

le-x86_64-pc-windows-msvc\lib\rustlib\src\rust\libr

ary\core\src\ops\function.rs:250

   7: core::hint::black_box

             at C:\Users\PC\.rustup\toolchains\stab

le-x86_64-pc-windows-msvc\lib\rustlib\src\rust\libr

ary\core\src\hint.rs:472

note: Some details are omitted, run with 

`RUST_BACKTRACE=full` for a verbose backtrace.

error: process didn't exit successfully: 

`target\debug\examples\v2_3_adaptive_demo.exe` 

(exit code: 101)