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 device-flexible @assert #86

Merged
merged 1 commit into from
Jul 31, 2024
Merged

Add device-flexible @assert #86

merged 1 commit into from
Jul 31, 2024

Conversation

dennisYatunin
Copy link
Member

@dennisYatunin dennisYatunin commented Jul 31, 2024

Purpose

This PR adds a device-flexible @assert macro, which can be used to throw errors from kernels without otherwise triggering allocations or inference failures. For a usage example, see the column_integral_indefinite! kernel in CliMA/ClimaCore.jl#1903.


  • I have read and checked the items on the review checklist.

@dennisYatunin dennisYatunin merged commit 72640cb into main Jul 31, 2024
6 checks passed
@dennisYatunin dennisYatunin deleted the dy/assert branch July 31, 2024 22:23
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