Lines Matching refs:gpu
1 // RUN: mlir-opt -allow-unregistered-dialect -split-input-file -convert-gpu-to-spirv -verify-diagno…
3 module attributes {gpu.container_module} {
4 gpu.module @kernels {
10 gpu.func @basic_module_structure(%arg0 : f32, %arg1 : memref<12xf32>) kernel
13 gpu.return
21 gpu.launch_func @kernels::@basic_module_structure
30 module attributes {gpu.container_module} {
31 gpu.module @kernels {
39 gpu.func @basic_module_structure_preset_ABI(
47 gpu.return
54 module attributes {gpu.container_module} {
55 gpu.module @kernels {
56 // expected-error @below {{failed to legalize operation 'gpu.func'}}
58 gpu.func @missing_entry_point_abi(%arg0 : f32, %arg1 : memref<12xf32>) kernel {
59 gpu.return
67 gpu.launch_func @kernels::@missing_entry_point_abi
76 module attributes {gpu.container_module} {
77 gpu.module @kernels {
78 // expected-error @below {{failed to legalize operation 'gpu.func'}}
80 gpu.func @missing_entry_point_abi(
86 gpu.return
93 module attributes {gpu.container_module} {
94 gpu.module @kernels {
95 // expected-error @below {{failed to legalize operation 'gpu.func'}}
97 gpu.func @missing_entry_point_abi(
103 gpu.return
110 module attributes {gpu.container_module} {
111 gpu.module @kernels {
113 gpu.func @barrier(%arg0 : f32, %arg1 : memref<12xf32>) kernel
116 gpu.barrier
117 gpu.return
125 gpu.launch_func @kernels::@barrier