Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gpucloudsim
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
LPDS
gpucloudsim
Commits
79ffca08
Commit
79ffca08
authored
Nov 09, 2018
by
Ahmad Siavashi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GpuHost revised
parent
68322299
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
GpuHost.java
...dsim/src/main/java/org/cloudbus/cloudsim/gpu/GpuHost.java
+9
-0
No files found.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/GpuHost.java
View file @
79ffca08
...
@@ -76,6 +76,15 @@ public class GpuHost extends Host {
...
@@ -76,6 +76,15 @@ public class GpuHost extends Host {
}
}
// Checking GPU resources of the host
// Checking GPU resources of the host
Vgpu
vgpu
=
((
GpuVm
)
vm
).
getVgpu
();
Vgpu
vgpu
=
((
GpuVm
)
vm
).
getVgpu
();
// if the VM has no vGPU -> return true.
if
(
vgpu
==
null
)
{
return
true
;
}
// if the VM has a vGPU and the host has no local video card -> return false.
else
if
(
getVideoCardAllocationPolicy
()
==
null
)
{
return
false
;
}
// if the VM has a vGPU and the host has video card(s) -> check compatibility.
return
getVideoCardAllocationPolicy
().
isSuitable
(
vgpu
);
return
getVideoCardAllocationPolicy
().
isSuitable
(
vgpu
);
}
}
...
...
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