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