Commit 5d1c559
authored
Fix blur example usage of clGetDeviceInfo (#136)
`blur` example is retrieving `CL_DEVICE_OPENCL_C_VERSION` in a fixed
sized array of 64 bytes, CL spec does not specify a limit to the output
length. Therefore, the test may fail if the version is longer than 64
bytes.
This change fixes the issue by querying `clGetDeviceInfo` for the
expected output size.
Signed-off-by: Michael Rizkalla <michael.rizkalla@arm.com>1 parent c2b3b60 commit 5d1c559
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1062 | 1062 | | |
1063 | 1063 | | |
1064 | 1064 | | |
1065 | | - | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
1066 | 1072 | | |
1067 | | - | |
1068 | | - | |
| 1073 | + | |
| 1074 | + | |
1069 | 1075 | | |
1070 | 1076 | | |
1071 | 1077 | | |
| |||
1075 | 1081 | | |
1076 | 1082 | | |
1077 | 1083 | | |
| 1084 | + | |
| 1085 | + | |
1078 | 1086 | | |
1079 | 1087 | | |
1080 | 1088 | | |
| |||
1238 | 1246 | | |
1239 | 1247 | | |
1240 | 1248 | | |
| 1249 | + | |
| 1250 | + | |
1241 | 1251 | | |
1242 | 1252 | | |
1243 | 1253 | | |
| |||
0 commit comments