Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve hybrid cra #226

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
48ada9f
Added hybrid method and fixed the bug for checking result but with hy…
Jul 2, 2019
c315e0d
Added hybrid methwith openmp ad afixed the bug for 2 processes
Jul 3, 2019
bacc3b5
Tested hybrid after having merged with master branch
Jul 3, 2019
547aae9
Instant clean up
Jul 4, 2019
398f3aa
cleanup unused param
ClementPernet Jul 4, 2019
4dccfc3
Taken off critical section once compiled with commentator disabled an…
Jul 4, 2019
031ed8e
Merged with git pull
Jul 4, 2019
fd6ddfc
Taken off critical section once compiled with commentator disabled an…
Jul 4, 2019
012bb28
Cleaned up for validation/benchmark on server
Jul 5, 2019
ca43f97
Merge branch 'master' into solve-hybrid-cra
Jul 9, 2019
794f93c
Use MPI_Wtime for multiprocessing timing
Jul 10, 2019
a849b2c
Fall back to previous timing method as no big differece
Jul 12, 2019
c752932
Merge branch 'master' into solve-hybrid-cra
Jul 18, 2019
124f947
cleaned up before PR
Jul 18, 2019
85949a3
Merge branch 'master' into solve-hybrid-cra
Jul 24, 2019
651fcf2
Added more explicit comments
Jul 29, 2019
35529be
Cleaned up for code review
Jul 29, 2019
888c037
Fast fix for the benchmark-solve-cra compling time error as the wrapp…
Aug 5, 2019
f79947c
Fast fix for the benchmark-solve-cra compling time error as the wrapp…
Aug 5, 2019
af0c443
Quick fix for the benchmark-solve-cra compling time error as the wrap…
Aug 5, 2019
d0c279b
Quick fix for the compiling time error with minpoly example program a…
Aug 5, 2019
5fb3a6b
Merge branch 'solve-hybrid-cra' of https://github.com/linbox-team/lin…
Aug 5, 2019
b4ad8ba
As Hadamard Bound is now expressed in log2, reduced hybrid iterations.
Breush Aug 20, 2019
cae625b
Fall back to previous implementation as the estimation for stop using…
Aug 21, 2019
b09a5a6
Adopted the FOR1D with MODE
Aug 28, 2019
95d1775
Taken off the factor of 1.40 for the Niter and cleaned up again
Aug 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions benchmarks/benchmark-dense-solve.C
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ void benchmark(std::array<double, 3>& timebits, Arguments& args, MethodBase& met
Timer chrono;

if (method.master()) {

chrono.start();
PAR_BLOCK { FFLAS::pfrand(F, randIter, args.n, args.n, A.getPointer(), args.n); }
chrono.stop();
Expand Down Expand Up @@ -144,7 +145,7 @@ int main(int argc, char** argv)
{'n', "-n", "Set the matrix dimension.", TYPE_INT, &args.n},
{'b', "-b", "bit size", TYPE_INT, &args.bits},
{'s', "-s", "Seed for randomness.", TYPE_INT, &args.seed},
{'d', "-d", "Dispatch mode (any of: Auto, Sequential, SMP, Distributed).", TYPE_STR, &args.dispatchString},
{'d', "-d", "Dispatch mode (any of: Auto, Sequential, Combined or Distributed).", TYPE_STR, &args.dispatchString},
{'t', "-t", "Number of threads.", TYPE_INT, &numThreads },
{'M', "-M",
"Choose the solve method (any of: Auto, Elimination, DenseElimination, SparseElimination, "
Expand Down Expand Up @@ -172,8 +173,8 @@ int main(int argc, char** argv)
MethodBase method;
method.pCommunicator = &communicator;
if (args.dispatchString == "Sequential") method.dispatch = Dispatch::Sequential;
else if (args.dispatchString == "SMP") method.dispatch = Dispatch::SMP;
else if (args.dispatchString == "Distributed") method.dispatch = Dispatch::Distributed;
else if (args.dispatchString == "Combined") method.dispatch = Dispatch::Combined;
else method.dispatch = Dispatch::Auto;

// Real benchmark
Expand Down Expand Up @@ -208,4 +209,4 @@ int main(int argc, char** argv)
}

return 0;
}
}
2 changes: 1 addition & 1 deletion examples/minpoly.C
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ int main (int argc, char **argv)
#ifdef __LINBOX_HAVE_MPI
Communicator C(&argc, &argv);
process = C.rank();
M.communicatorp(&C);
//M.communicatorp(&C);
#endif

Givaro::ZRing<Integer> ZZ;
Expand Down
Loading