This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gomp-nvptx 2/5] Revert "nvptx plugin: bump heap size to 1GB"
- From: Alexander Monakov <amonakov at ispras dot ru>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 Feb 2016 21:44:09 +0300
- Subject: [gomp-nvptx 2/5] Revert "nvptx plugin: bump heap size to 1GB"
- Authentication-results: sourceware.org; auth=none
- References: <1455561852-9237-1-git-send-email-amonakov at ispras dot ru>
This reverts commit 7d36b841341cde96f6cf89c5232916062da3fe4c.
The change was not well motivated: soft stacks would not fit in the default
8 MB heap only with multiple teams. With the transition to host-allocated
soft stacks, libgomp uses the device heap only for relatively small
allocations.
Revert
2015-12-09 Alexander Monakov <amonakov@ispras.ru>
* plugin/plugin-nvptx.c (nvptx_open_device): Adjust heap size.
diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c
index 79fd253..cb6a3ac 100644
--- a/libgomp/plugin/plugin-nvptx.c
+++ b/libgomp/plugin/plugin-nvptx.c
@@ -694,10 +694,6 @@ nvptx_open_device (int n)
init_streams_for_device (ptx_dev, async_engines);
- r = cuCtxSetLimit (CU_LIMIT_MALLOC_HEAP_SIZE, 1<<30);
- if (r != CUDA_SUCCESS)
- GOMP_PLUGIN_fatal ("cuCtxSetLimit error: %s", cuda_error (r));
-
return ptx_dev;
}