]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenACC reference count consistency checking
authorJulian Brown <julian@codesourcery.com>
Fri, 30 Nov 2018 10:40:49 +0000 (02:40 -0800)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 20 Apr 2021 18:49:29 +0000 (11:49 -0700)
commit88122b84af068fe1db5ba014527cb6f9d5693293
treebbb7ae3a47a5ff889d0c1552fbd3534d66e267f7
parent32562ccb6f7ebda63e0773ecfe6aa00867d3128d
OpenACC reference count consistency checking

2018-11-28  Julian Brown  <julian@codesourcery.com>
    Tobias Burnus  <tobias@codesourcery.com>

libgomp/
* libgomp.h (RC_CHECKING): New macro, disabled by default, guarding all
hunks in this patch.
(target_mem_desc): Add forward declaration.
(async_tgt_use): New struct.
(target_mem_desc): Add refcount_chk, mark fields.
(acc_dispatch_t): Add tgt_uses, au_lock fields.
(dump_tgt, gomp_rc_check): Add prototypes.
* oacc-async (goacc_async_unmap_tgt): Add refcount self-check code.
(goacc_async_copyout_unmap_vars): Likewise.
(goacc_remove_var_async): Likewise.
* oacc-parallel.c (GOACC_parallel_keyed_internal): Add refcount
self-check code.
(GOACC_data_start, GOACC_data_end, GOACC_enter_exit_data): Likewise.
* target.c (stdio.h): Include.
(dump_tgt, rc_check_clear, rc_check_count, rc_check_verify)
(gomp_rc_check): New functions to consistency-check reference counts.
(gomp_target_init): Initialise self-check-related device fields.
libgomp/ChangeLog.omp [new file with mode: 0644]
libgomp/libgomp.h
libgomp/oacc-parallel.c
libgomp/target.c