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

fix intention

- fix indention
parent a317606a
No related branches found
No related tags found
No related merge requests found
...@@ -418,7 +418,8 @@ extern "C" int cuda_get_deviceinfo(nvid_ctx* ctx) ...@@ -418,7 +418,8 @@ extern "C" int cuda_get_deviceinfo(nvid_ctx* ctx)
// no limit by default 1TiB // no limit by default 1TiB
size_t maxMemUsage = byteToMiB * byteToMiB; size_t maxMemUsage = byteToMiB * byteToMiB;
if(props.major == 6) if(props.major == 6)
{
if(props.multiProcessorCount < 15) if(props.multiProcessorCount < 15)
{ {
// limit memory usage for GPUs for pascal < GTX1070 // limit memory usage for GPUs for pascal < GTX1070
...@@ -429,6 +430,7 @@ extern "C" int cuda_get_deviceinfo(nvid_ctx* ctx) ...@@ -429,6 +430,7 @@ extern "C" int cuda_get_deviceinfo(nvid_ctx* ctx)
// limit memory usage for GPUs for pascal GTX1070, GTX1080 // limit memory usage for GPUs for pascal GTX1070, GTX1080
maxMemUsage = size_t(4096u) * byteToMiB; maxMemUsage = size_t(4096u) * byteToMiB;
} }
}
if(props.major < 6) if(props.major < 6)
{ {
// limit memory usage for GPUs before pascal // limit memory usage for GPUs before pascal
......
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