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
7da71f9a
Commit
7da71f9a
authored
Jun 09, 2022
by
Ahmad Siavashi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Override isSuitable in GpuHost
parent
23c761c7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
GpuHost.java
...dsim/src/main/java/org/cloudbus/cloudsim/gpu/GpuHost.java
+10
-0
No files found.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/GpuHost.java
View file @
7da71f9a
...
@@ -5,6 +5,7 @@ import java.util.Set;
...
@@ -5,6 +5,7 @@ import java.util.Set;
import
org.cloudbus.cloudsim.Host
;
import
org.cloudbus.cloudsim.Host
;
import
org.cloudbus.cloudsim.Pe
;
import
org.cloudbus.cloudsim.Pe
;
import
org.cloudbus.cloudsim.Vm
;
import
org.cloudbus.cloudsim.VmScheduler
;
import
org.cloudbus.cloudsim.VmScheduler
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.provisioners.BwProvisioner
;
import
org.cloudbus.cloudsim.provisioners.BwProvisioner
;
...
@@ -72,6 +73,15 @@ public class GpuHost extends Host {
...
@@ -72,6 +73,15 @@ public class GpuHost extends Host {
return
smallerTime
;
return
smallerTime
;
}
}
@Override
public
boolean
isSuitableForVm
(
Vm
vm
)
{
boolean
result
=
vmCreate
(
vm
);
if
(
result
)
{
vmDestroy
(
vm
);
}
return
result
;
}
/**
/**
* @return the videoCardAllocationPolicy
* @return the videoCardAllocationPolicy
*/
*/
...
...
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