-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use MY_MPI_UWORD to gether sizes
It is unsigned long when ARMA_32BIT_WORD is defined; otherwise, unsigned long long.
- Loading branch information
Showing
3 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
#include "armadillo_config.h" | ||
#include "mpi.h" | ||
|
||
#ifdef ARMA_32BIT_WORD | ||
#define MY_MPI_UWORD MPI_UNSIGNED_LONG | ||
#else // ARMA_32BIT_WORD | ||
#define MY_MPI_UWORD MPI_UNSIGNED_LONG_LONG | ||
#endif // ARMA_32BIT_WORD | ||
|
||
void mat_mul_mpi(arma::mat& a, arma::mat& b, arma::mat& c, const int ip, const int np, const size_t range); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters