-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to the subpar library for parallelization.
Users now have a central place to understand the parallelization scheme, rather than the logic being present in both tatami::parallelize() and our internal OpenMP calls. Now, overriding just requires SINGLEPP_CUSTOM_PARALLEL. This change allows us to remove all the OpenMP macros, as subpar::parallelize handles all of that under the hood. We also get rid of all the special parallelization test executables as there's nothing to test anymore. The expectations for SINGLEPP_CUSTOM_PARALLEL have been changed to follow the subpar::parallelize() signature. This adds an extra argument to pass along a thread-specific workspace, which provides some opportunities for optimization when re-using a thread. Some code reorganization is required as a result.
- Loading branch information
Showing
15 changed files
with
367 additions
and
354 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
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 |
---|---|---|
@@ -1,16 +1,24 @@ | ||
include(FetchContent) | ||
|
||
FetchContent_Declare( | ||
subpar | ||
GIT_REPOSITORY https://github.com/LTLA/subpar | ||
GIT_TAG master | ||
) | ||
|
||
|
||
FetchContent_Declare( | ||
knncolle | ||
GIT_REPOSITORY https://github.com/LTLA/knncolle | ||
GIT_REPOSITORY https://github.com/knncolle/knncolle | ||
GIT_TAG master | ||
) | ||
|
||
FetchContent_Declare( | ||
tatami | ||
GIT_REPOSITORY https://github.com/LTLA/tatami | ||
GIT_REPOSITORY https://github.com/tatami-inc/tatami | ||
GIT_TAG master | ||
) | ||
|
||
FetchContent_MakeAvailable(subpar) | ||
FetchContent_MakeAvailable(knncolle) | ||
FetchContent_MakeAvailable(tatami) |
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.