This program performs matrix multiplication based on a randomly generated bitstring using MPI for parallelization.
To compile the program, use the following command:
make
To execute the program, run:
mpirun -np <num_processes> ./matrix_multiply <n>
Paras:
m
: Matrix size (default: 128)n
: Bitstring lengthsize
: Max element size (default: 1024)output_file
: Output file name (default: output.txt)num_processes
: Number of processes
If you want to change the values of m, size, and output_file, you can do so in the source code.
You can find more information on my personal website.
This script is released under the MIT License 2.0. See the LICENSE file for details.