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

Re-define access_mode explicitly, remove access_modes.h header #315

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

fknorr
Copy link
Contributor

@fknorr fknorr commented Nov 27, 2024

The celerity::access_mode = sycl::access_mode alias was a leftover from pre-USM backed Celerity. Re-defining the enum explicitly allows us to simplify the include tree somewhat. This also updates tests that were previously using the SYCL type.

This has one "breaking change" that I'm not sure if we need to communicate: Users can't just pass SYCL access modes anymore (was undocumented), and access_mode::atomic has been removed (wasn't supported on accessors anyway, but could be enumerated).

Removing access_modes.h (which contained functionality that was in parts only used by tests) and struct mode_traits resolves the ambiguity between namespaces celerity::access and celerity::detail::access (now removed).

The alias was a leftover from pre-USM backed Celerity.

This also resolves the ambiguity between namespaces celerity::access
and celerity::detail::access (now removed).
@fknorr fknorr added this to the 0.7.0 milestone Nov 27, 2024
@fknorr fknorr requested review from psalz and PeterTh November 27, 2024 16:24
@fknorr fknorr self-assigned this Nov 27, 2024
Copy link

Check-perf-impact results: (32e33781a20e2a3976ece8f7dc81ae2b)

❓ No new benchmark data submitted. ❓
Please re-run the microbenchmarks and include the results if your commit could potentially affect performance.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12054400606

Details

  • 27 of 28 (96.43%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 94.947%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/print_graph.cc 9 10 90.0%
Totals Coverage Status
Change from base Build 12052723954: 0.02%
Covered Lines: 7112
Relevant Lines: 7227

💛 - Coveralls

Copy link
Contributor

@GagaLP GagaLP left a comment

Choose a reason for hiding this comment

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

Nicely done.
This was one thing, which always confused me.
LGTM!

Copy link
Member

@psalz psalz left a comment

Choose a reason for hiding this comment

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

LGTM!

@fknorr fknorr merged commit 52910f0 into master Dec 17, 2024
17 checks passed
@fknorr fknorr deleted the access-mode branch December 17, 2024 15:21
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.

4 participants