On 1/10/2024 7:52 PM, Richard Earnshaw wrote:
On 05/01/2024 01:43, Lipeng Zhu wrote:
This patch try to fix the bug when HAVE_ATOMIC_FETCH_ADD is
not defined in dec_waiting_unlocked function. As io.h does
not include async.h, the WRLOCK and RWUNLOCK macros are
undefined.
libgfortran
On 1/3/2024 5:14 PM, Lipeng Zhu wrote:
On 2023/12/21 19:42, Thomas Schwinge wrote:
Hi!
On 2023-12-13T21:52:29+0100, I wrote:
On 2023-12-12T02:05:26+, "Zhu, Lipeng" wrote:
On 2023/12/12 1:45, H.J. Lu wrote:
On Sat, Dec 9, 2023 at 7:25 PM Zhu, Lipeng
wrote:
On 2023/
On 2023/12/14 23:50, Richard Earnshaw (lists) wrote:
On 09/12/2023 15:39, Lipeng Zhu wrote:
This patch try to introduce the rwlock and split the read/write to
unit_root tree and unit_cache with rwlock instead of the mutex to
increase CPU efficiency. In the get_gfc_unit function, the
to replace WRLOCK and RWUNLOCK macros.
Signed-off-by: Lipeng Zhu
---
libgfortran/io/io.h | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/libgfortran/io/io.h b/libgfortran/io/io.h
index 15daa0995b1..c7f0f7d7d9e 100644
--- a/libgfortran/io/io.h
+++ b
at, Dec 09, 2023 at 10:39:45AM -0500, Lipeng Zhu wrote:
This patch try to introduce the rwlock and split the read/write to
unit_root tree and unit_cache with rwlock instead of the mutex to
increase CPU efficiency. In the get_gfc_unit function, the
percentage to step into the insert_unit function is
?
Kind regards,
Vasee
Hi Vasee,
Actually I already sent a patch
https://inbox.sourceware.org/gcc-patches/20231222023605.3894839-1-lipeng@intel.com/
to fix the build failure issue, now it is waiting for community to review.
Lipeng Zhu
From: Richard
9, 2023 at 10:39:45AM -0500, Lipeng Zhu wrote:
This patch try to introduce the rwlock and split the read/write to
unit_root tree and unit_cache with rwlock instead of the mutex to
increase CPU efficiency. In the get_gfc_unit function, the
percentage to step into the insert_unit function is arou
On 2024/1/3 19:12, Tobias Burnus wrote:
On 22.12.23 03:36, Lipeng Zhu wrote:
This patch try to fix the bug when HAVE_ATOMIC_FETCH_ADD is
not defined in dec_waiting_unlocked function.
libgfortran/ChangeLog:
* io/io.h (dec_waiting_unlocked): Use
__gthread_rwlock_wrlock
/__gthread_rwlock_unlock or
__gthread_mutex_lock/__gthread_mutex_unlock functions
to replace WRLOCK and RWUNLOCK macros.
Signed-off-by: Lipeng Zhu
---
libgfortran/io/io.h | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/libgfortran/io/io.h b/libgfortran/io/io.h
Update the comments.
v4 -> v5:
Fix typos and code formatter.
v5 -> v6:
Add unit tests.
v6 -> v7:
Update ChangeLog and code formatter.
Reviewed-by: Hongjiu Lu
Reviewed-by: Bernhard Reutner-Fischer
Reviewed-by: Thomas Koenig
Reviewed-by: Jakub Jelinek
Signed-off-by: Lip
This patch try to introduce the rwlock and split the read/write to
unit_root tree and unit_cache with rwlock instead of the mutex to
increase CPU efficiency. In the get_gfc_unit function, the percentage
to step into the insert_unit function is around 30%, in most instances,
we can get the unit in t
This patch try to introduce the rwlock and split the read/write to
unit_root tree and unit_cache with rwlock instead of the mutex to
increase CPU efficiency. In the get_gfc_unit function, the percentage
to step into the insert_unit function is around 30%, in most instances,
we can get the unit in t
unit_rwlock
* io/unix.c (flush_all_units): Relace unit_lock with unit_rwlock
---
v1 -> v2:
Limit the pthread_rwlock usage in libgcc only when __cplusplus isn't defined.
Signed-off-by: Lipeng Zhu
---
libgcc/gthr-posix.h | 60 +++
libgfortran/io/async.c
unit_rwlock
* io/unix.c (flush_all_units): Relace unit_lock with unit_rwlock
---
v1 -> v2:
Limit the pthread_rwlock usage in libgcc only when __cplusplus isn't defined.
v2 -> v3:
Rebase the patch with trunk branch.
Signed-off-by: Lipeng Zhu
---
libgcc/gthr-posix.h
unit_rwlock
* io/unix.c (flush_all_units): Relace unit_lock with unit_rwlock
---
v1 -> v2:
Limit the pthread_rwlock usage in libgcc only when __cplusplus isn't defined.
v2 -> v3:
Rebase the patch with trunk branch.
v3 -> v4:
Update the comments.
Reviewed-by: Hongjiu Lu
Signed-
nd code formatter.
Reviewed-by: Hongjiu Lu
Signed-off-by: Lipeng Zhu
---
libgcc/gthr-posix.h | 60 +++
libgfortran/io/async.c| 4 +
libgfortran/io/async.h| 154 +-
libgfortran/io/io.h | 15 ++--
libgfortran/io/transfer.c | 8 +
16 matches
Mail list logo