Skip to content

CI: enable nvcc + clang host compiler - #660

Draft
SimeonEhrig wants to merge 1 commit into
alpaka-group:devfrom
SimeonEhrig:ciNvccClang
Draft

CI: enable nvcc + clang host compiler#660
SimeonEhrig wants to merge 1 commit into
alpaka-group:devfrom
SimeonEhrig:ciNvccClang

Conversation

@SimeonEhrig

@SimeonEhrig SimeonEhrig commented Jul 28, 2026

Copy link
Copy Markdown
Member

No description provided.

@SimeonEhrig SimeonEhrig added this to the release-3.0 milestone Jul 28, 2026
@SimeonEhrig SimeonEhrig added feature New feature or request CI changing CI jobs labels Jul 28, 2026
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 4b78e244-1e12-4e3e-a8ce-3c3f0482e877

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

CI_FILTER: ^linux_nvcc.*clang
@psychocoderHPC

Copy link
Copy Markdown
Member

Adding the follwoing patch is changing the error for the deprecated copy to a warning

diff --git a/cmake/alpakaCompilePedantic.cmake b/cmake/alpakaCompilePedantic.cmake
index 6501e0e5..eaf7f519 100644
--- a/cmake/alpakaCompilePedantic.cmake
+++ b/cmake/alpakaCompilePedantic.cmake
@@ -27,6 +27,14 @@ if(TARGET alpaka_target_cuda)
             # avoid `declared with greater visibility than the type of its field` with nvcc 12.8+
             alpaka_set_compiler_options(DEVICE target alpaka_target_cuda "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Wno-attributes>")
         endif()
+        if(${_alpaka_CUDA_HOST_COMPILER} STREQUAL "Clang")
+            alpaka_set_compiler_options(
+                    DEVICE
+                    target
+                    alpaka_target_cuda
+                    "$<$<CXX_COMPILER_ID:Clang>:SHELL:-Xcompiler=-Wno-error=deprecated-copy>"
+            )
+        endif()
     endif()
 endif()

This will not solve the fact that most runtime tests will fail. nvcc+clang is generating empty kernels if all kernel parameters are defined auto, a workaround is to have at least one template<typename T_Acc>.
Another workaround is defining the kernel functor constexpr operator()(auto const &acc) and not using ALPAKA_FN_ACC. This is only works for kernels without printf() in the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI changing CI jobs feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants