We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 485bdaf commit 15c6585Copy full SHA for 15c6585
tests/codegen-llvm/gpu-kernel-abi.rs
@@ -1,7 +1,9 @@
1
// Checks that the gpu-kernel calling convention correctly translates to LLVM calling conventions.
2
3
//@ add-core-stubs
4
-//@ revisions: nvptx
+//@ revisions: amdgpu nvptx
5
+//@ [amdgpu] compile-flags: --crate-type=rlib --target=amdgcn-amd-amdhsa -Ctarget-cpu=gfx900
6
+//@ [amdgpu] needs-llvm-components: amdgpu
7
//@ [nvptx] compile-flags: --crate-type=rlib --target=nvptx64-nvidia-cuda
8
//@ [nvptx] needs-llvm-components: nvptx
9
#![feature(no_core, lang_items, abi_gpu_kernel)]
@@ -10,6 +12,7 @@
10
12
extern crate minicore;
11
13
use minicore::*;
14
15
+// amdgpu: define amdgpu_kernel void @fun(i32
16
// nvptx: define ptx_kernel void @fun(i32
17
#[no_mangle]
18
pub extern "gpu-kernel" fn fun(_: i32) {}
0 commit comments