-
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.
Feature: multiprocess support based on MPI (#88)
* edit: MPI with indep var selection * fix: compile errors * edit: further rename functions * add: fit mpi * fix: runtime errors * fix: unused variables * add: bw sel mpi * fix: bugs caused in non mpi mode * fix: indep var sel mpi runtime error * fix: bw sel runtime errors * edit: activate all tests * add: compile condition around mpi code * edit: mpi with omp * add: mpi with cuda * fix: fitMpi S send error * edit: call GWRBasic in MGWR * fix: split fit core functions * add: fit core omp and cuda * edit: use min distance * add: cubase static methods to create and destory handle * edit: CRSDistance use cumat * fix: GWR cuda bug * edit: MGWR move global fit earlier * add: mpi mat mul * add: MGWR mpi fit * fix: mpi mat mul error * edit: test matrix size * edit: use scatter instead of cast * fix: mgwr mpi run error * add: bw criterion cv aic mpi mode * fix: mgwr mpi omp * edit: mpi with cuda * edit: MPI code conditional compile * edit: mgwr set golden bounds of gwr basic * edit: pre compute b_rows_i * fix: setGroupSize use std::size_t * fix: syntax error * fix(test): MGWR * fix: type mismatch on armadillo and RcppArmadillo * fix: use MY_MPI_UWORD to gether sizes It is unsigned long when ARMA_32BIT_WORD is defined; otherwise, unsigned long long. * edit: rename MY_MPI_UWORD * edit: use int to record process status * add(workflow): MPI tests * Revert "add(workflow): MPI tests" This reverts commit 5bbb210. --------- Co-authored-by: rd21411 <[email protected]>
- Loading branch information
Showing
24 changed files
with
2,067 additions
and
1,595 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "armadillo_config.h" | ||
#include "mpi.h" | ||
|
||
#ifdef ARMA_32BIT_WORD | ||
#define GWM_MPI_UWORD MPI_UNSIGNED_LONG | ||
#else // ARMA_32BIT_WORD | ||
#define GWM_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
Oops, something went wrong.