blob: 578aa956ecb5304ea3eac2196566b9fdfb0bfb0f [file]
//@ compile-flags: -Zunstable-options -Zoffload=Device -Clto=fat
//@ needs-offload
#![feature(gpu_offload)]
fn main() {
// `args` is not a tuple literal.
core::offload::offload! { kernel = kernel_0, args = 42 }
//~^ ERROR `args` must be a tuple literal
// FIXME(offload): Binding a tuple to a variable would currently bypass the
// per-argument launch checks, so the macro rejects it for now.
let args = ();
core::offload::offload! { kernel = kernel_0, args = args }
//~^ ERROR `args` must be a tuple literal
}
fn kernel_0() {}