Commit 5b2c1ac
authored
Add clFinish to compiler multiple_build_program test before building again (#2574)
[clBuildProgram](https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_API.html#clBuildProgram)
has the next error condition:
>
[CL_INVALID_OPERATION](https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_API.html#CL_INVALID_OPERATION)
if there are kernel objects attached to program.
The test needs to wait for the NDRangeKernel to finish in order to build
the program again. If not, kernel0 might still have references and
therefore still be attached to program.1 parent 65fd490 commit 5b2c1ac
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3983 | 3983 | | |
3984 | 3984 | | |
3985 | 3985 | | |
| 3986 | + | |
| 3987 | + | |
| 3988 | + | |
3986 | 3989 | | |
3987 | 3990 | | |
3988 | 3991 | | |
| |||
4001 | 4004 | | |
4002 | 4005 | | |
4003 | 4006 | | |
4004 | | - | |
4005 | 4007 | | |
4006 | | - | |
4007 | | - | |
| 4008 | + | |
| 4009 | + | |
| 4010 | + | |
4008 | 4011 | | |
4009 | 4012 | | |
4010 | 4013 | | |
| |||
0 commit comments