Skip to content
Snippets Groups Projects
Commit ea6c147a authored by psychocrypt's avatar psychocrypt
Browse files

reduce memory usage for low end gpus

reduce memory usage to 1GiB for NVIDIA devices with <=6 SMX
parent 87317174
No related branches found
No related tags found
No related merge requests found
......@@ -441,6 +441,12 @@ extern "C" int cuda_get_deviceinfo(nvid_ctx* ctx)
maxMemUsage = size_t(1024u) * byteToMiB;
}
if(props.multiProcessorCount <= 6)
{
// limit memory usage for low end devices to reduce the number of threads
maxMemUsage = size_t(1024u) * byteToMiB;
}
int* tmp;
cudaError_t err;
// a device must be selected to get the right memory usage later on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment