Implement circular print buffer

Programming / Compilers / GCC - ams [138bc75d-0d04-0410-961f-82ee72b054a4] - 18 March 2019 13:13 EDT

2019-03-18 Andrew Stubbs

gcc/
- config/gcn/gcn-run.c (struct output): Make next_output unsigned. Extend queue to 1024 entries. Add "consumed" field. (gomp_print_output): Remove print_index parameter. Add final parameter. Change limit to unsigned. Use consumed field to implement circular buffer. Detect interrupted print in final pass. Flush output at the end. (run): Update gomp_print_output usage. (main): Initialize kernargs->output_data.consumed.

9b3046bc544 Implement circular print buffer.
gcc/ChangeLog | 14 ++++++++++++
gcc/config/gcn/gcn-run.c | 56 ++++++++++++++++++++++++++++++------------------
2 files changed, 49 insertions(+), 21 deletions(-)

Upstream: gcc.gnu.org


  • Share