In this post we will look at how the Rust programming language and its built-in correctness features can be applied to the message passing parallelization method. We will see how Rust’s memory safety features can be leveraged to design a message passing library which we call heimdallr. It is able to detect parallelization errors at compile time that would go unnoticed by the compiler when using the prevalent message passing interface MPI.
Today, we will take a look at potential performance problems when using the conditional operator
Specifically, we will use it to calculate a variable’s absolute value and compare its performance with that of the function