summaryrefslogtreecommitdiff
path: root/ot/lp/EMD_wrapper.cpp
AgeCommit message (Collapse)Author
2022-06-13[MRG] Correct pointer overflow in EMD (#381)Nathan Cassereau
* avoid overflow on openmp version of emd solver * monothread version updated * Fixed typo in readme * added PR in releases * typo in releases.md * added a precision to releases.md * added a precision to releases.md * correct readme * forgot to cast * lower error
2022-06-01[MRG] numItermax in 64 bits in EMD solver (#380)Nathan Cassereau
* Correct test_mm_convergence for cupy * Fix bug where number of iterations is limited to 2^31 * Update RELEASES.md * Replace size_t with long long * Use uint64_t instead of long long
2021-09-29[MRG] OpenMP support (#260)kguerda-idris
* Added : OpenMP support Restored : Epsilon and Debug mode Replaced : parmap => multiprocessing is now replace by multithreading * Commit clean up * Number of CPUs correctly calculated on SLURM clusters * Corrected number of processes for cluster slurm * Mistake corrected * parmap is now deprecated * Now a different solver is used depending on the requested number of threads * Tiny mistake corrected * Folders are now in the ot library instead of at the root * Helpers is now correctly placed * Attempt to make compilation work smoothly * OS compatible path * NumThreads now defaults to 1 * Better flags * Mistake corrected in case of OpenMP unavailability * Revert OpenMP flags modification, which do not compile on Windows * Test helper functions * Helpers comments * Documentation update * File title corrected * Warning no longer using print * Last attempt for macos compilation * pls work * atempt * solving a type error * TypeError OpenMP * Compilation finally working on Windows * Bug solve, number of threads now correctly selected * 64 bits solver to avoid overflows for bigger problems * 64 bits EMD corrected Co-authored-by: kguerda-idris <ssos023@jean-zay3.idris.fr> Co-authored-by: ncassereau-idris <84033440+ncassereau-idris@users.noreply.github.com> Co-authored-by: ncassereau <nathan.cassereau@idris.fr> Co-authored-by: Rémi Flamary <remi.flamary@gmail.com>
2020-04-23[WIP] Issue with sparse emd and adding tests on macos (#158)Nicolas Courty
* First commit-warning removal * remove dense feature * pep8 * pep8 * EMD.h * pep8 again * tic toc tolerance Co-authored-by: Rémi Flamary <remi.flamary@gmail.com>
2019-12-03first implemntation sparse lossRémi Flamary
2019-12-02proper documentation and parameterRémi Flamary
2019-12-02add awesome sparse solverRémi Flamary
2019-12-02nothing explodes and it compilesRémi Flamary
2019-11-29correct bad speedupRémi Flamary
2019-11-29cant beleive i forgot a semicolumnRémi Flamary
2019-11-29cleanup cpp code and annd emd with sparse Ot matrixRémi Flamary
2017-09-09Renamed variableAntoine Rolet
2017-09-07Added MAX_ITER_REACHED flag and warningAntoine Rolet
2017-09-05Removed declaration of unused variableAntoine Rolet
2017-09-05Merge remote-tracking branch 'upstream/master'Antoine Rolet
2017-08-30Changes:aje
- Rename numItermax to max_iter - Default value to 100000 instead of 10000 - Add max_iter to class SinkhornTransport(BaseTransport) - Add norm to all BaseTransport
2017-08-29Changes to LP solver:aje
- Allow to modify the maximal number of iterations - Display an error message in the python console if the solver encountered an issue
2017-07-21Added and passed tests for dual variablesarolet
2017-07-21Compute cost with primalarolet
2017-07-21Added dual variables computationsarolet
2017-07-21Cleaned optimal plan and optimal cost computationarolet
2017-07-14Removed some references to node_id_typearolet
node_id_type is really always int, it makes code hard to read though. In lemon they needed the typedef because they have more complicated graphs.
2017-07-14Removed unused variable maxarolet
Probably a legacy normalization variable
2017-07-13Added optional maximal number of iterationAntoine Rolet
2017-07-10correction on Win64 bugNicolas Courty
2017-04-07avoid filename conclict in windowsRémi Flamary