Commit 280300d
committed
opencl: bugfix increment ref_count in ggml_backend_opencl_init()
Incrementing `ref_count` at the beginning is important later
in the `free()` method of the `ggml_backend_opencl_context` at program end.
If we do not increment the `ref_count`, the result would be -1 here,
and consequently, the profiling data would not be flushed and written.
( #ifdef GGML_OPENCL_PROFILING )1 parent 88b47a7 commit 280300d
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7495 | 7495 | | |
7496 | 7496 | | |
7497 | 7497 | | |
| 7498 | + | |
7498 | 7499 | | |
7499 | 7500 | | |
7500 | 7501 | | |
| |||
0 commit comments