hipsparse: support caching downloaded test matrices#7890
Open
scottt wants to merge 1 commit into
Open
Conversation
This patch allows test matrix archive files to be supplied from an optional `HIPSPARSE_TEST_DATA_CACHE_DIR`. If `HIPSPARSE_TEST_DATA_CACHE_DIR` is passed, test matrix archives from the directory is used if their MD5 are as expected and a copy of the downloaded file is saved there. The motivation is to speed up building hipSPARSE for external contributors who might not know to set up an HTTP mirror via `HIPSPARSE_TEST_MIRROR` but still build hipSPARSE repeatedly.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch allows test matrix archive files to be supplied from an optional
HIPSPARSE_TEST_DATA_CACHE_DIR.If
HIPSPARSE_TEST_DATA_CACHE_DIRis passed,test matrix archives from the directory is used if their MD5 are as expected and a copy of the downloaded file is saved there.
The motivation is to speed up building hipSPARSE for external contributors who might not know to set up an HTTP mirror via
HIPSPARSE_TEST_MIRRORbut still build hipSPARSE repeatedly.The current code duplicates the test matrices and MD5 sums in two files that only differs by the path of the
mtx2csr. This patch also fixes that.