Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
azure-cloud-mining-script
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
azure-cloud-mining-script
Commits
6b739ece
There was an error fetching the commit references. Please try again later.
Commit
6b739ece
authored
7 years ago
by
psychocrypt
Browse files
Options
Downloads
Patches
Plain Diff
fix intention
- fix indention
parent
a317606a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu
+3
-1
3 additions, 1 deletion
xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu
with
3 additions
and
1 deletion
xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu
+
3
−
1
View file @
6b739ece
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment