Commit 20d2a32
committed
[OpenCL] Allow -fno-offload-uniform-block for 1.2
OpenCL 1.2 kernel assumes uniform workgroup size. By default
a function attr is added to allow backend to do optimizations.
These optimizations may cause UB if such kernels are launched
with non-uniform workgroup sizes.
Although OpenCL 1.2 itself does not support non-uniform workgroup
launching, OpenCL 1.2 kernels may be launched by OpenCL 2.0
or other offloading language runtime that supports non-uniform
workgroup size. Therefore it is useful to allow -fno-offload-uniform-block
to override the default uniform-block assumption for OpenCL 1.2.1 parent 0fe20aa commit 20d2a32
File tree
3 files changed
+15
-16
lines changed- clang
- include/clang/Driver
- lib/CodeGen
- test/CodeGenOpenCL
3 files changed
+15
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | | - | |
| 1010 | + | |
| 1011 | + | |
1011 | 1012 | | |
1012 | 1013 | | |
1013 | 1014 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2431 | 2431 | | |
2432 | 2432 | | |
2433 | 2433 | | |
2434 | | - | |
2435 | | - | |
2436 | | - | |
2437 | | - | |
2438 | | - | |
2439 | | - | |
2440 | | - | |
2441 | | - | |
2442 | | - | |
2443 | | - | |
2444 | | - | |
2445 | | - | |
2446 | | - | |
2447 | | - | |
2448 | | - | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
2449 | 2446 | | |
2450 | 2447 | | |
2451 | 2448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
0 commit comments