cubecl_core/frontend/validation.rs
1use crate as cubecl;
2use alloc::string::String;
3use cubecl::prelude::*;
4use cubecl_macros::intrinsic;
5
6#[cube]
7/// Push a validation error that will make the kernel compilation to fail.
8///
9/// # Notes
10///
11/// The error can be caught after the kernel is launched.
12pub fn push_validation_error(#[comptime] msg: String) {
13 intrinsic! {|scope| scope.push_error(msg)}
14}