Skip to content

Cached workspace prototype for custatevec - #2279

Merged
maleadt merged 6 commits into
masterfrom
ksh/cached_sv
Mar 11, 2024
Merged

maleadt merged 6 commits into
masterfrom
ksh/cached_sv

Conversation

@kshyatt

@kshyatt kshyatt commented Mar 3, 2024

Copy link
Copy Markdown
Member

Attempt to attach a buffer to each library handle so we can re-use the buffers for many small calls to the same handle and avoid thrashing GC.

@kshyatt
kshyatt requested a review from maleadt March 3, 2024 17:44
@codecov

codecov Bot commented Mar 3, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 89.92248% with 13 lines in your changes are missing coverage. Please review.

Project coverage is 72.02%. Comparing base (2783c88) to head (aefb38d).

Files Patch % Lines
lib/cusparse/generic.jl 84.74% 9 Missing ⚠️
lib/utils/call.jl 90.90% 2 Missing ⚠️
lib/custatevec/src/cuStateVec.jl 85.71% 1 Missing ⚠️
lib/custatevec/src/statevec.jl 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2279      +/-   ##
==========================================
+ Coverage   72.00%   72.02%   +0.02%     
==========================================
  Files         155      155              
  Lines       14862    14881      +19     
==========================================
+ Hits        10701    10718      +17     
- Misses       4161     4163       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maleadt maleadt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably something useful we could apply to other libraries too.

Comment thread lib/custatevec/src/statevec.jl Outdated
Comment thread lib/custatevec/src/cuStateVec.jl Outdated
Comment thread lib/custatevec/src/cuStateVec.jl Outdated
Comment thread lib/custatevec/src/statevec.jl Outdated
@kshyatt

kshyatt commented Mar 9, 2024

Copy link
Copy Markdown
Member Author

Fixed all except adding to with_workspace -- are we all on board with introducing this there as well?

Comment thread lib/custatevec/Project.toml
@maleadt maleadt added enhancement New feature or request cuda libraries Stuff about CUDA library wrappers. labels Mar 11, 2024
@maleadt

maleadt commented Mar 11, 2024

Copy link
Copy Markdown
Member

Alright, this looks nice. We could probably apply this pattern to more libraries, but let's merge this already.

@maleadt
maleadt merged commit bb49887 into master Mar 11, 2024
@maleadt
maleadt deleted the ksh/cached_sv branch March 11, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda libraries Stuff about CUDA library wrappers. enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants