Skip to content

add backend to COMPILER_KWARGS #358

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simeonschaub
Copy link
Contributor

No description provided.

Copy link
Contributor

Your PR requires formatting changes to meet the project's style guidelines.
Please consider running Runic (git runic master) to apply these changes.

Click here to view the suggested changes.
diff --git a/test/execution.jl b/test/execution.jl
index b0d4eb9..91cbb6e 100644
--- a/test/execution.jl
+++ b/test/execution.jl
@@ -135,22 +135,22 @@ end
     end
 end
 
-@testset "backends" begin
-    llvm_backend_llvm = sprint() do io
-        OpenCL.code_llvm(io, () -> nothing, (); dump_module = true, backend = :llvm)
-    end
-    if Int === Int64
-        @test occursin("target triple = \"spirv64-unknown-unknown-unknown\"", llvm_backend_llvm)
-    end
-
-    if isavailable(SPIRV_LLVM_Translator_jll)
-        llvm_backend_khronos = sprint() do io
-            OpenCL.code_llvm(io, () -> nothing, (); dump_module = true, backend = :khronos)
+    @testset "backends" begin
+        llvm_backend_llvm = sprint() do io
+            OpenCL.code_llvm(io, () -> nothing, (); dump_module = true, backend = :llvm)
         end
         if Int === Int64
-            @test occursin("target triple = \"spir64-unknown-unknown\"", llvm_backend_khronos)
+            @test occursin("target triple = \"spirv64-unknown-unknown-unknown\"", llvm_backend_llvm)
+        end
+
+        if isavailable(SPIRV_LLVM_Translator_jll)
+            llvm_backend_khronos = sprint() do io
+                OpenCL.code_llvm(io, () -> nothing, (); dump_module = true, backend = :khronos)
+            end
+            if Int === Int64
+                @test occursin("target triple = \"spir64-unknown-unknown\"", llvm_backend_khronos)
+            end
         end
     end
-end
 
 end

Copy link

codecov bot commented Aug 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.01%. Comparing base (7a7b8e9) to head (e39dd95).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #358   +/-   ##
=======================================
  Coverage   79.01%   79.01%           
=======================================
  Files          12       12           
  Lines         672      672           
=======================================
  Hits          531      531           
  Misses        141      141           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant