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

Extend Trace mapping and allow GPU usage #503

Merged
merged 6 commits into from
May 24, 2022

Conversation

bernhardmgruber
Copy link
Member

@bernhardmgruber bernhardmgruber commented May 19, 2022

The Trace mapping has been restructured to allow usage on GPUs. For this to work, the access count arrays are no longer kept inside the mapping instance but placed into an additional blob. The report now needs to be requested explicitely, instead of an implicit report upon mapping instance destruction.

The Trace mapping now has two modes: the default counts reads and writes separately, but requires proxy references to work. The simplified mode avoids proxy references but can only count the number of memory location computations.

Fixes: #487

@bernhardmgruber bernhardmgruber force-pushed the trace_gpu branch 6 times, most recently from ae468c1 to 89c9f83 Compare May 23, 2022 19:17
@codecov
Copy link

codecov bot commented May 23, 2022

Codecov Report

Merging #503 (89c9f83) into develop (f29f27d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 89c9f83 differs from pull request most recent head 7e88d22. Consider uploading reports for the commit 7e88d22 to get more accurate results

@@           Coverage Diff            @@
##           develop     #503   +/-   ##
========================================
  Coverage    99.24%   99.25%           
========================================
  Files           63       63           
  Lines         5439     5475   +36     
========================================
+ Hits          5398     5434   +36     
  Misses          41       41           

* Move Trace mapping field hit storage into blob. This makes the Trace mapping a computed mapping, since it needs access to the blobs.
* Printing of the summary is now explicit and no longer automatic in the dtor.
* Make Trace mapping separately count reads/writes
* Trace mapping works on GPU now

Fixes: alpaka-group#487
@bernhardmgruber bernhardmgruber merged commit c14cd1d into alpaka-group:develop May 24, 2022
@bernhardmgruber bernhardmgruber deleted the trace_gpu branch May 24, 2022 06:54
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.

Make Trace mapping work on GPUs
1 participant