Skip to content
Snippets Groups Projects
Unverified Commit dded06a3 authored by fireice-uk's avatar fireice-uk Committed by GitHub
Browse files

Merge pull request #950 from psychocrypt/topic-reduceMemoryForSlowNvidiaGPUs

reduce memory usage for low end gpus
parents baba941e ea6c147a
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