Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
V
vidai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
vidai
Commits
df7dfa12
Commit
df7dfa12
authored
Oct 08, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GPU detection in cluster master to use correct keys from gpu_info
parent
f065a2ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cluster_master.py
vidai/cluster_master.py
+4
-4
No files found.
vidai/cluster_master.py
View file @
df7dfa12
...
...
@@ -373,7 +373,7 @@ class ClusterMaster:
# Check if client has GPU
gpu_info
=
client_info
.
get
(
'gpu_info'
,
{})
has_gpu
=
gpu_info
.
get
(
'cuda
_available'
,
False
)
or
gpu_info
.
get
(
'rocm_available
'
,
False
)
has_gpu
=
gpu_info
.
get
(
'cuda
'
,
False
)
or
gpu_info
.
get
(
'rocm
'
,
False
)
if
not
has_gpu
:
continue
# Skip CPU-only clients for now (could be extended later)
...
...
@@ -765,7 +765,7 @@ class ClusterMaster:
for
proc_key
,
proc_weight
in
queue
:
client_id
=
self
.
processes
[
proc_key
][
'client_id'
]
client_gpu_info
=
self
.
clients
[
client_id
][
'gpu_info'
]
has_gpu
=
client_gpu_info
.
get
(
'cuda
_available'
,
False
)
or
client_gpu_info
.
get
(
'rocm_available
'
,
False
)
has_gpu
=
client_gpu_info
.
get
(
'cuda
'
,
False
)
or
client_gpu_info
.
get
(
'rocm
'
,
False
)
client_weight
=
self
.
clients
[
client_id
][
'weight'
]
combined_weight
=
client_weight
*
proc_weight
...
...
@@ -816,7 +816,7 @@ class ClusterMaster:
has_gpu
=
False
# Check for CUDA
if
gpu_info
.
get
(
'cuda
_available'
)
or
gpu_info
.
get
(
'cuda_devices'
,
0
)
>
0
:
if
gpu_info
.
get
(
'cuda
'
,
False
)
or
gpu_info
.
get
(
'cuda_devices'
,
0
)
>
0
:
has_gpu
=
True
cuda_devices
=
gpu_info
.
get
(
'cuda_device_info'
,
[])
if
cuda_devices
:
...
...
@@ -828,7 +828,7 @@ class ClusterMaster:
print
(
f
"DEBUG: CUDA detected, total VRAM: {total_vram}GB"
)
# Check for ROCm
if
gpu_info
.
get
(
'rocm
_available'
)
or
gpu_info
.
get
(
'rocm_devices'
,
0
)
>
0
:
if
gpu_info
.
get
(
'rocm
'
,
False
)
or
gpu_info
.
get
(
'rocm_devices'
,
0
)
>
0
:
has_gpu
=
True
rocm_devices
=
gpu_info
.
get
(
'rocm_device_info'
,
[])
if
rocm_devices
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment