2025-01-02 22:42:10 +01:00
|
|
|
// Checks that the gpu-kernel calling convention correctly translates to LLVM calling conventions.
|
|
|
|
|
2025-02-24 09:26:54 +00:00
|
|
|
//@ add-core-stubs
|
2025-01-02 22:42:10 +01:00
|
|
|
//@ revisions: nvptx
|
|
|
|
//@ [nvptx] compile-flags: --crate-type=rlib --target=nvptx64-nvidia-cuda
|
|
|
|
//@ [nvptx] needs-llvm-components: nvptx
|
|
|
|
#![feature(no_core, lang_items, abi_gpu_kernel)]
|
|
|
|
#![no_core]
|
|
|
|
|
2025-02-24 09:26:54 +00:00
|
|
|
extern crate minicore;
|
|
|
|
use minicore::*;
|
2025-01-02 22:42:10 +01:00
|
|
|
|
|
|
|
// nvptx: define ptx_kernel void @fun(i32
|
|
|
|
#[no_mangle]
|
|
|
|
pub extern "gpu-kernel" fn fun(_: i32) {}
|