-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdcl_thread_group_invalid.mlir
More file actions
35 lines (22 loc) · 1.46 KB
/
dcl_thread_group_invalid.mlir
File metadata and controls
35 lines (22 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// RUN: mlir-opt %s -split-input-file -verify-diagnostics
// expected-error@+1 {{attribute 'x' failed to satisfy constraint: 32-bit signless integer attribute whose value is positive whose maximum value is 1024}}
dxsa.dcl_thread_group <x = 0, y = 1, z = 1>
// -----
// expected-error@+1 {{attribute 'x' failed to satisfy constraint: 32-bit signless integer attribute whose value is positive whose maximum value is 1024}}
dxsa.dcl_thread_group <x = 1025, y = 1, z = 1>
// -----
// expected-error@+1 {{attribute 'y' failed to satisfy constraint: 32-bit signless integer attribute whose value is positive whose maximum value is 1024}}
dxsa.dcl_thread_group <x = 1, y = 0, z = 1>
// -----
// expected-error@+1 {{attribute 'y' failed to satisfy constraint: 32-bit signless integer attribute whose value is positive whose maximum value is 1024}}
dxsa.dcl_thread_group <x = 1, y = 1025, z = 1>
// -----
// expected-error@+1 {{attribute 'z' failed to satisfy constraint: 32-bit signless integer attribute whose value is positive whose maximum value is 64}}
dxsa.dcl_thread_group <x = 1, y = 1, z = 0>
// -----
// expected-error@+1 {{attribute 'z' failed to satisfy constraint: 32-bit signless integer attribute whose value is positive whose maximum value is 64}}
dxsa.dcl_thread_group <x = 1, y = 1, z = 65>
// -----
// 64 * 8 * 4 == 2048
// expected-error@+1 {{'dxsa.dcl_thread_group' op thread group size x*y*z must be <= 1024, got 2048}}
dxsa.dcl_thread_group <x = 64, y = 8, z = 4>