Skip to content

Sink intrinsic results to ensure they survive. #500

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

Merged
merged 1 commit into from
May 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions test/device/intrinsics.jl
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
@testset "work items" begin
@on_device get_work_dim()
@on_device get_work_dim() |> sink

@on_device get_global_size()
@on_device get_global_id()
@on_device get_global_size() |> sink
@on_device get_global_id() |> sink

@on_device get_local_size()
@on_device get_enqueued_local_size()
@on_device get_local_id()
@on_device get_local_size() |> sink
@on_device get_enqueued_local_size() |> sink
@on_device get_local_id() |> sink

@on_device get_num_groups()
@on_device get_group_id()
@on_device get_num_groups() |> sink
@on_device get_group_id() |> sink

@on_device get_global_offset()
@on_device get_global_offset() |> sink

@on_device get_global_linear_id()
@on_device get_local_linear_id()
@on_device get_global_linear_id() |> sink
@on_device get_local_linear_id() |> sink
end


Expand Down