Skip to content

hipsparse: support caching downloaded test matrices#7890

Open
scottt wants to merge 1 commit into
ROCm:developfrom
scottt:hipsparse-download-cache
Open

hipsparse: support caching downloaded test matrices#7890
scottt wants to merge 1 commit into
ROCm:developfrom
scottt:hipsparse-download-cache

Conversation

@scottt
Copy link
Copy Markdown
Contributor

@scottt scottt commented May 29, 2026

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.

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.

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.
@scottt scottt requested a review from a team as a code owner May 29, 2026 14:47
@assistant-librarian assistant-librarian Bot added the external contribution Code contribution from users community.. label May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external contribution Code contribution from users community.. project: hipsparse

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant