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 <amona...@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; }