[BACKEND] add triton-translate to translate mlir to llvmir or PTX code (#37)
This commit is contained in:
13
test/Target/tritongpu_to_llvmir.mlir
Normal file
13
test/Target/tritongpu_to_llvmir.mlir
Normal file
@@ -0,0 +1,13 @@
|
||||
// RUN: triton-translate %s --target=llvmir | FileCheck %s
|
||||
|
||||
// == LLVM IR check begin ==
|
||||
// CHECK-LABEL: ; ModuleID = 'LLVMDialectModule'
|
||||
// CHECK: define void @test_empty_kernel
|
||||
// CHECK: !nvvm.annotations
|
||||
// CHECK: !{void (i64, half addrspace(1)*)* @test_empty_kernel, !"maxntidx", i32 128}
|
||||
|
||||
func @test_empty_kernel(%lb : index, %A : !tt.ptr<f16>) {
|
||||
|
||||
return
|
||||
}
|
||||
|
11
test/Target/tritongpu_to_ptx.mlir
Normal file
11
test/Target/tritongpu_to_ptx.mlir
Normal file
@@ -0,0 +1,11 @@
|
||||
// RUN: triton-translate %s --target=ptx --sm=80 --ptx-version=10000 | FileCheck %s
|
||||
|
||||
// CHECK-LABEL: // Generated by LLVM NVPTX Back-End
|
||||
// CHECK: .version 6.3
|
||||
// CHECK: .target sm_80
|
||||
// CHECK: .address_size 64
|
||||
|
||||
func @test_empty_kernel(%lb : index, %A : !tt.ptr<f16>) {
|
||||
|
||||
return
|
||||
}
|
Reference in New Issue
Block a user