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

add different rules, which handles alpaka backends with different compilers #20

Merged
merged 8 commits into from
Mar 26, 2024

Conversation

SimeonEhrig
Copy link
Member

@SimeonEhrig SimeonEhrig commented Mar 14, 2024

Implement backend related rules for the following compilers

  • hipcc (HIP)
  • icpx (sycl)
  • nvcc (CUDA)
  • clang-cuda (CUDA)
  • fix example

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.91%. Comparing base (1d5c80b) to head (dd4b19e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #20      +/-   ##
==========================================
+ Coverage   95.69%   96.91%   +1.22%     
==========================================
  Files          10       10              
  Lines         395      422      +27     
  Branches       99      112      +13     
==========================================
+ Hits          378      409      +31     
+ Misses         10        6       -4     
  Partials        7        7              

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

- filter all compilers which are not hipcc, if the hip backend is enabled
- filter all combinations where hipcc is compiler and the hip backend is disabled
- sycl backend cannot be active if hipcc is the compiler
- sycl and hip backend cannot be active at the same time
- cuda backend cannot be active if hipcc is the compiler
- cuda and hip backend cannot be active at the same time
- filter all compilers which are not icpx, if the sycl backend is enabled
- filter all combinations where icpx is compiler and the sycl backend is disabled
- hip backend cannot be active if icpx is the compiler
- hip and sycl backend cannot be active at the same time
- cuda backend cannot be active if icpx is the compiler
 - cuda and sycl backend cannot be active at the same time
- add alternative short names for parameter
- add parameters in the order, which are passed as bashi-validate arguments
- extend print_nice(), that it prints a row in a shape, which can directly passed as parameters to bashi-validate
- disable all combinations where the nvcc and cuda sdk version are different
- disable the CUDA sdk for every compiler, except nvcc + gcc, nvcc + clang and clang-cuda
- disable the HIP and SYCL backend, if the CUDA backend is on
- disable unsupported CUDA sdk versions
- disable the HIP and SYCL backend, if Clang-CUDA is compiler
- The example is working again with the new backend related rules
@SimeonEhrig SimeonEhrig marked this pull request as ready for review March 26, 2024 08:38
@SimeonEhrig SimeonEhrig merged commit 33d0580 into alpaka-group:main Mar 26, 2024
8 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.

2 participants