diff options
author | Andrew Stubbs <ams@codesourcery.com> | 2019-11-13 12:38:09 +0000 |
---|---|---|
committer | Andrew Stubbs <ams@gcc.gnu.org> | 2019-11-13 12:38:09 +0000 |
commit | cee1645106465bc593b4cf31716b0a8ddd59af61 (patch) | |
tree | 7509f5cbce6597d2c912531eb3324118262c88b0 /gcc | |
parent | fa4999953db61cf94c0e57a9ab8b006d950e54ca (diff) | |
download | gcc-cee1645106465bc593b4cf31716b0a8ddd59af61.zip gcc-cee1645106465bc593b4cf31716b0a8ddd59af61.tar.gz gcc-cee1645106465bc593b4cf31716b0a8ddd59af61.tar.bz2 |
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
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions