Skip to content

bjpeterdelacruz/hpc-benchmarks

Repository files navigation

HPC Benchmarks Suite

Type make to update the executables before running each script.

How to run each script

block.run.sh

Runs the fileio_block program.

Usage:

./fileio_block A B C D
ASmallest block size
BLargest block size
CNumber of blocks to read from and write to file
DNumber of times that the program will run

cpu.run.sh

Runs the CPU test in the cpumem program.

Usage:

./cpumem A B C D E F
ANumber of POSIX threads to use for CPU test
BNumber of times to repeat CPU test
CMinimize size of array for memory test
DMaximum size of array for memory test
ENumber of seconds to sleep during memory test
FNumber of times to repeat memory test

Notes:

  • Change only A and B for the CPU test.

io.run.sh

Runs the fileio program.

Usage:

./fileio A
ASize of array that will contain characters read in from file

Notes:

  • It is recommended that no more than 2 processes per node be used if using very large array sizes.

mem.run.sh

Runs the memory test in the cpumem program.

Usage:

./cpumem A B C D E F
ANumber of pthreads to use for CPU test
BNumber of times to repeat CPU test
CMinimize size of array for memory test
DMaximum size of array for memory test
ENumber of seconds to sleep during memory test
FNumber of times to repeat memory test

Notes:

  • Change only C, D, E, and F for the memory test.
  • D must be greater than C.
  • For memory test, it is recommended that no more than 2 processes per node be used if using very large array sizes.

mm.run.sh

Runs the mm program.

Usage:

./mm A B C D
ANumber of rows in matrix A
BNumber of columns in matrix A
CNumber of rows in matrix B
DNumber of columns in matrix B

Notes:

  • It is recommended that no more than 2 processes per node be used if using very large matrix sizes.

oe.run.sh

Runs the oesort program.

Usage:

./oetsort A
ADimension of square matrix, i.e. number of rows = number of columns

Notes:

  • This program runs slow because it uses bubble sort to sort rows and columns of matrix.

pi.run.sh

Runs the pi program.

Usage:

./pi A B
ANumber of calculations
B1 for Bailey-Borwein-Plouffe algorithm or 2 for Gregory-Leibniz series

prime.run.sh

Runs the prime program.

Usage:

./prime A
AHighest number to test for primality

Notes:

  • Program is not load-balanced. For example, if A = 500,000,000, process 0 finds 348,513 primes in 7 seconds while process 99 finds 249,760 primes in 67 seconds.

snd.run.sh

Runs the sndrcv program.

Usage:

./sndrcv A B
ASize of array that will contain characters
BNumber of times that the program will run

ss.run.sh

Runs the shearsort program.

Usage:

./shearsort A
ADimension of square matrix, i.e. number of rows = number of columns

Notes:

  • A must be equal to the number of processes used.

About

A collection of C applications that can be used to benchmark high performance computing systems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published