Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tbgl
tools
arbd
Commits
176bbfab
Commit
176bbfab
authored
4 years ago
by
cmaffeo2
Browse files
Options
Downloads
Patches
Plain Diff
Fixed -g argument so more than two GPUs can be provided
parent
7aba75b5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/GPUManager.h
+1
-0
1 addition, 0 deletions
src/GPUManager.h
src/arbd.cpp
+1
-1
1 addition, 1 deletion
src/arbd.cpp
with
2 additions
and
1 deletion
src/GPUManager.h
+
1
−
0
View file @
176bbfab
...
@@ -83,6 +83,7 @@ private:
...
@@ -83,6 +83,7 @@ private:
static
void
init_comms
();
static
void
init_comms
();
public:
public:
static
size_t
allGpuSize
()
{
return
allGpus
.
size
();
}
static
ncclComm_t
*
comms
;
static
ncclComm_t
*
comms
;
static
std
::
vector
<
GPU
>
gpus
;
static
std
::
vector
<
GPU
>
gpus
;
...
...
This diff is collapsed.
Click to expand it.
src/arbd.cpp
+
1
−
1
View file @
176bbfab
...
@@ -59,7 +59,7 @@ int main(int argc, char* argv[]) {
...
@@ -59,7 +59,7 @@ int main(int argc, char* argv[]) {
printf
(
" –––––––––––––––––––––––––––––––––––––––––––––
\n
"
);
printf
(
" –––––––––––––––––––––––––––––––––––––––––––––
\n
"
);
GPUManager
::
init
();
GPUManager
::
init
();
size_t
n_gpus
=
max
(
GPUManager
::
gpus
.
size
(),
1lu
);
size_t
n_gpus
=
GPUManager
::
allGpuSize
(
);
std
::
vector
<
unsigned
int
>
gpuIDs
;
std
::
vector
<
unsigned
int
>
gpuIDs
;
bool
debug
=
false
,
safe
=
false
;
bool
debug
=
false
,
safe
=
false
;
...
...
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