Mandel-rust v0.4


#1

Hi everyone,

I’ve updated mandel-rust to version v0.4.
New in this release:

  • refactor the code
  • add new command line option: num_of_runs to run calculation multiple times and take the min, max and average
  • unfortunately no new crate, I even had to remove two crates: simple_parallel and kirk since they do not compile with newer versions of crossbeam

Any feedback is welcome :wink:


#2

I’m trying to compile it, but it failed (x86_64-pc-windows-gnu, rustc 1.17.0-nightly, 691eba135 2017-03-01):

   Compiling mandel_util v0.4.0 (file:///.../mandel-rust-master/mandel_util)
Instruction does not dominate all uses!
  %27 = load i32, i32* %26, !range !2
  %71 = icmp eq i32 %27, 60
LLVM ERROR: Broken function found, compilation aborted!
error: Could not compile `clap`.
Build failed, waiting for other jobs to finish...
error: build failed

How/where I report this?


#3

Hi leonardo,

thanks for trying it out!

This looks like either a bug in the Rust compiler or a bug in LLVM. I’ll try to recompile it with stable, beta and nightly and post the results here.

Maybe report this to the internal forum or file an issue on github/rust-lang.


#4

I can confirm this on MacOS and Linux.
Stable and beta ran fine, but nightly has problems on both platforms:

rustc --version
rustc 1.17.0-nightly (691eba135 2017-03-01)

with the same error message:

Instruction does not dominate all uses!
  %27 = load i32, i32* %26, !range !2
  %71 = icmp eq i32 %27, 60
LLVM ERROR: Broken function found, compilation aborted!
error: Could not compile `clap`.

#5