]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgomp/config/gcn/team.c
Optimize GCN OpenMP malloc performance
authorAndrew Stubbs <ams@codesourcery.com>
Wed, 13 Nov 2019 12:38:09 +0000 (12:38 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Wed, 13 Nov 2019 12:38:09 +0000 (12:38 +0000)
commitcee1645106465bc593b4cf31716b0a8ddd59af61
tree7509f5cbce6597d2c912531eb3324118262c88b0
parentfa4999953db61cf94c0e57a9ab8b006d950e54ca
Optimize GCN OpenMP malloc performance

2019-11-13  Andrew Stubbs  <ams@codesourcery.com>

libgomp/
* config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
and use team_malloc variants.
(gomp_gcn_exit_kernel): Use team_free.
* libgomp.h (TEAM_ARENA_SIZE): Define.
(TEAM_ARENA_START): Define.
(TEAM_ARENA_FREE): Define.
(TEAM_ARENA_END): Define.
(team_malloc): New function.
(team_malloc_cleared): New function.
(team_free): New function.
* team.c (gomp_new_team): Initialize and use team_malloc.
(free_team): Use team_free.
(gomp_free_thread): Use team_free.
(gomp_pause_host): Use team_free.
* work.c (gomp_init_work_share): Use team_malloc.
(gomp_fini_work_share): Use team_free.

From-SVN: r278136
libgomp/ChangeLog
libgomp/config/gcn/team.c
libgomp/libgomp.h
libgomp/team.c
libgomp/work.c