aboutsummaryrefslogtreecommitdiff
path: root/libgomp/plugin/plugin-nvptx.c
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@codesourcery.com>2021-02-23 21:35:08 +0000
committerAndrew Stubbs <ams@codesourcery.com>2021-03-02 14:16:14 +0000
commit9319b68ccb43bdb371e78983b74c76dcb49a6e1f (patch)
treec9ffa92c046914171d1f37ffeff0010a271a0515 /libgomp/plugin/plugin-nvptx.c
parent0271aca6402a77f62061880362a56cf57f3ea6b1 (diff)
nvptx: remove erroneous stack deletion
The stacks are not supposed to be deleted every time memory is allocated, only when there is insufficient memory. The unconditional call here seems to be in error, and is causing a costly reallocation of the stacks before every launch. libgomp/ * plugin/plugin-nvptx.c (GOMP_OFFLOAD_alloc): Remove early call to nvptx_stacks_free.
Diffstat (limited to 'libgomp/plugin/plugin-nvptx.c')
-rw-r--r--libgomp/plugin/plugin-nvptx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c
index 942fb989bac..21db2bd29c8 100644
--- a/libgomp/plugin/plugin-nvptx.c
+++ b/libgomp/plugin/plugin-nvptx.c
@@ -1411,8 +1411,6 @@ GOMP_OFFLOAD_alloc (int ord, size_t size)
ptx_dev->free_blocks = NULL;
pthread_mutex_unlock (&ptx_dev->free_blocks_lock);
- nvptx_stacks_free (ptx_dev, false);
-
while (blocks)
{
tmp = blocks->next;