Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunked GPU calculation #38

Merged
merged 12 commits into from
Sep 20, 2023
Merged

Chunked GPU calculation #38

merged 12 commits into from
Sep 20, 2023

Conversation

Tomko10
Copy link
Contributor

@Tomko10 Tomko10 commented Sep 5, 2023

No description provided.

@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Merging #38 (80f834f) into master (7d967fe) will decrease coverage by 1.49%.
Report is 84 commits behind head on master.
The diff coverage is 33.06%.

❗ Current head 80f834f differs from pull request most recent head 8c8fe57. Consider uploading reports for the commit 8c8fe57 to get more accurate results

@@            Coverage Diff             @@
##           master      #38      +/-   ##
==========================================
- Coverage   89.87%   88.37%   -1.49%     
==========================================
  Files          56       66      +10     
  Lines        4073     5070     +997     
  Branches      719      920     +201     
==========================================
+ Hits         3660     4480     +820     
- Misses        268      400     +132     
- Partials      145      190      +45     
Files Changed Coverage Δ
pyecsca/sca/stacked_traces/combine.py 35.79% <33.06%> (-10.01%) ⬇️

... and 34 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@J08nY J08nY self-requested a review September 18, 2023 19:47
Copy link
Owner

@J08nY J08nY left a comment

Choose a reason for hiding this comment

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

Just add a docstring for the GPUTracemanager class init. Everything else looks great!

pyecsca/sca/stacked_traces/combine.py Show resolved Hide resolved
def _setup1D(self, output_count: int) -> CudaCTX:
"""
Creates context for 1D GPU CUDA functions
mem_size = cuda.current_context().get_memory_info().total
Copy link
Owner

Choose a reason for hiding this comment

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

Wondering whether this should use available memory instead of total?

_chunk_size: Optional[int]
_stream_count: Optional[int]

def __init__(self,
Copy link
Owner

Choose a reason for hiding this comment

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

Please add docstring to this method and explain the arguments a bit.

@J08nY J08nY linked an issue Sep 20, 2023 that may be closed by this pull request
@J08nY J08nY merged commit 9567893 into J08nY:master Sep 20, 2023
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate trace data streaming on CPU/GPU
2 participants