-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enabled selecting between serial and OpenMP distance functions
- all functions in lib.distances acquired the backend=<backend> keyword; - "serial" selects the standard serial C/Cython code from lib._distances; - "OpenMP" selects the OpenMP parallelized C/Cython code from lib._distances_openmp - on systems without an OpenMP capable compiler, this will likely just mean that the OpenMP versions are actually serial (the OpenMP pragma should get ignored) --- need to be confirmed/tested - tests in test_distances were refactored so that both serial and OpenMP versions are tested - the current implementation is not very pretty (see lib.distances._run()) but will make it very easy to add additional acceleration schemes such as CUDA or numba as long as the call signatures of the calc_* functions remain the same.
- Loading branch information
Showing
2 changed files
with
319 additions
and
125 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
Oops, something went wrong.