This project includes files of four algorithms. Each file contains the following components:
- Cargo.toml: Configuration file for the Rust project.
- main.rs: The Rust source code file.
- <algorithm_name>.c: A C source code file that uses OpenMP for parallel computation.
Rust:
- Run the command to create a new Cargo: cargo new <algorithm_name>
- Replace Cargo.toml with the provided configuration file.
- Replace main.rs under src/ directory with the provided Rust source code.
- Run the command to comiple the Cargo: cargo build --release
OpenMP:
- You compile it as: gcc -fopenmp -o <algorithm_name> <algorithm_name>.c
Notes
- Replace <algorithm_name> with the name of the algorithm.
- Avoid using the same names for Rust and OpenMP compiled executables.
- Mind if programs require to pass in problem size as parameter.