18#ifndef __BIN_MPIPRIME_MPIPRIME_H
19#define __BIN_MPIPRIME_MPIPRIME_H
Calculate prime numbers in parallel.
Size m_cores
Total number of cores.
Result searchParallel(int k, int n, u8 *rootMap, u8 *map)
Calculate prime numbers in parallel.
Size m_numberEnd
Prime numbers array range end for this core.
int m_id
MPI core identifier (rank) of the current process.
virtual Result exec()
Execute the application.
int m_mpiInitResult
Result of MPI initialization.
virtual Result initialize()
Initialize the application.
virtual ~MpiPrime()
Destructor.
Size m_numberStart
Prime numbers array range start for this core.
Result collect(int n, u8 *rootMap, u8 *map)
Collect prime number results.
Size m_numbersPerCore
Prime numbers calculated per core.
Compute prime numbers using the Sieve of Eratosthenes algorithm.
unsigned int Size
Any sane size indicator cannot go negative.
unsigned char u8
Unsigned 8-bit number.