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
68322299
Commit
68322299
authored
Nov 09, 2018
by
Ahmad Siavashi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples fixed
parent
98b0b446
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
CloudSimGpuExample3.java
...g/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample3.java
+2
-2
CloudSimGpuExample4.java
...g/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample4.java
+2
-2
CloudSimGpuExample5.java
...g/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample5.java
+2
-2
No files found.
modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample3.java
View file @
68322299
...
@@ -41,7 +41,7 @@ import org.cloudbus.cloudsim.gpu.interference.InterferenceGpuTaskSchedulerLeftov
...
@@ -41,7 +41,7 @@ import org.cloudbus.cloudsim.gpu.interference.InterferenceGpuTaskSchedulerLeftov
import
org.cloudbus.cloudsim.gpu.interference.models.InterferenceModel
;
import
org.cloudbus.cloudsim.gpu.interference.models.InterferenceModel
;
import
org.cloudbus.cloudsim.gpu.interference.models.InterferenceModelGpuMemory
;
import
org.cloudbus.cloudsim.gpu.interference.models.InterferenceModelGpuMemory
;
import
org.cloudbus.cloudsim.gpu.performance.PerformanceGpuHost
;
import
org.cloudbus.cloudsim.gpu.performance.PerformanceGpuHost
;
import
org.cloudbus.cloudsim.gpu.performance.PerformanceVgpuScheduler
Leftover
;
import
org.cloudbus.cloudsim.gpu.performance.PerformanceVgpuScheduler
FairShare
;
import
org.cloudbus.cloudsim.gpu.performance.models.PerformanceModel
;
import
org.cloudbus.cloudsim.gpu.performance.models.PerformanceModel
;
import
org.cloudbus.cloudsim.gpu.performance.models.PerformanceModelGpuConstant
;
import
org.cloudbus.cloudsim.gpu.performance.models.PerformanceModelGpuConstant
;
import
org.cloudbus.cloudsim.gpu.provisioners.BwProvisionerRelaxed
;
import
org.cloudbus.cloudsim.gpu.provisioners.BwProvisionerRelaxed
;
...
@@ -242,7 +242,7 @@ public class CloudSimGpuExample3 {
...
@@ -242,7 +242,7 @@ public class CloudSimGpuExample3 {
// Performance Model
// Performance Model
PerformanceModel
<
VgpuScheduler
,
Vgpu
>
performanceModel
=
new
PerformanceModelGpuConstant
(
0.1
);
PerformanceModel
<
VgpuScheduler
,
Vgpu
>
performanceModel
=
new
PerformanceModelGpuConstant
(
0.1
);
// Scheduler
// Scheduler
VgpuScheduler
vgpuScheduler
=
new
PerformanceVgpuScheduler
Leftover
(
VgpuScheduler
vgpuScheduler
=
new
PerformanceVgpuScheduler
FairShare
(
VideoCardTags
.
NVIDIA_K2_CARD
,
pgpus
,
pgpuSelectionPolicy
,
performanceModel
);
VideoCardTags
.
NVIDIA_K2_CARD
,
pgpus
,
pgpuSelectionPolicy
,
performanceModel
);
// PCI Express Bus Bw Provisioner
// PCI Express Bus Bw Provisioner
VideoCardBwProvisioner
videoCardBwProvisioner
=
new
VideoCardBwProvisionerShared
(
VideoCardBwProvisioner
videoCardBwProvisioner
=
new
VideoCardBwProvisionerShared
(
...
...
modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample4.java
View file @
68322299
...
@@ -35,7 +35,7 @@ import org.cloudbus.cloudsim.gpu.VideoCard;
...
@@ -35,7 +35,7 @@ import org.cloudbus.cloudsim.gpu.VideoCard;
import
org.cloudbus.cloudsim.gpu.VideoCardTags
;
import
org.cloudbus.cloudsim.gpu.VideoCardTags
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyBreadthFirst
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyBreadthFirst
;
import
org.cloudbus.cloudsim.gpu.performance.PerformanceVgpuScheduler
Leftover
;
import
org.cloudbus.cloudsim.gpu.performance.PerformanceVgpuScheduler
FairShare
;
import
org.cloudbus.cloudsim.gpu.performance.models.PerformanceModel
;
import
org.cloudbus.cloudsim.gpu.performance.models.PerformanceModel
;
import
org.cloudbus.cloudsim.gpu.performance.models.PerformanceModelGpuConstant
;
import
org.cloudbus.cloudsim.gpu.performance.models.PerformanceModelGpuConstant
;
import
org.cloudbus.cloudsim.gpu.power.PowerGpuDatacenter
;
import
org.cloudbus.cloudsim.gpu.power.PowerGpuDatacenter
;
...
@@ -265,7 +265,7 @@ public class CloudSimGpuExample4 {
...
@@ -265,7 +265,7 @@ public class CloudSimGpuExample4 {
double
performanceLoss
=
0.1
;
double
performanceLoss
=
0.1
;
PerformanceModel
<
VgpuScheduler
,
Vgpu
>
performanceModel
=
new
PerformanceModelGpuConstant
(
performanceLoss
);
PerformanceModel
<
VgpuScheduler
,
Vgpu
>
performanceModel
=
new
PerformanceModelGpuConstant
(
performanceLoss
);
// Scheduler
// Scheduler
PerformanceVgpuScheduler
Leftover
vgpuScheduler
=
new
PerformanceVgpuSchedulerLeftover
(
PerformanceVgpuScheduler
FairShare
vgpuScheduler
=
new
PerformanceVgpuSchedulerFairShare
(
VideoCardTags
.
NVIDIA_K1_CARD
,
pgpus
,
pgpuSelectionPolicy
,
performanceModel
);
VideoCardTags
.
NVIDIA_K1_CARD
,
pgpus
,
pgpuSelectionPolicy
,
performanceModel
);
// PCI Express Bus Bw Provisioner
// PCI Express Bus Bw Provisioner
VideoCardBwProvisioner
videoCardBwProvisioner
=
new
VideoCardBwProvisionerShared
(
VideoCardBwProvisioner
videoCardBwProvisioner
=
new
VideoCardBwProvisionerShared
(
...
...
modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample5.java
View file @
68322299
...
@@ -35,7 +35,7 @@ import org.cloudbus.cloudsim.gpu.VideoCard;
...
@@ -35,7 +35,7 @@ import org.cloudbus.cloudsim.gpu.VideoCard;
import
org.cloudbus.cloudsim.gpu.VideoCardTags
;
import
org.cloudbus.cloudsim.gpu.VideoCardTags
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyBreadthFirst
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyBreadthFirst
;
import
org.cloudbus.cloudsim.gpu.performance.PerformanceVgpuScheduler
Leftover
;
import
org.cloudbus.cloudsim.gpu.performance.PerformanceVgpuScheduler
FairShare
;
import
org.cloudbus.cloudsim.gpu.performance.models.PerformanceModel
;
import
org.cloudbus.cloudsim.gpu.performance.models.PerformanceModel
;
import
org.cloudbus.cloudsim.gpu.performance.models.PerformanceModelGpuConstant
;
import
org.cloudbus.cloudsim.gpu.performance.models.PerformanceModelGpuConstant
;
import
org.cloudbus.cloudsim.gpu.power.PowerGpuDatacenter
;
import
org.cloudbus.cloudsim.gpu.power.PowerGpuDatacenter
;
...
@@ -268,7 +268,7 @@ public class CloudSimGpuExample5 {
...
@@ -268,7 +268,7 @@ public class CloudSimGpuExample5 {
double
performanceLoss
=
0.1
;
double
performanceLoss
=
0.1
;
PerformanceModel
<
VgpuScheduler
,
Vgpu
>
performanceModel
=
new
PerformanceModelGpuConstant
(
performanceLoss
);
PerformanceModel
<
VgpuScheduler
,
Vgpu
>
performanceModel
=
new
PerformanceModelGpuConstant
(
performanceLoss
);
// Scheduler
// Scheduler
PerformanceVgpuScheduler
Leftover
vgpuScheduler
=
new
PerformanceVgpuSchedulerLeftover
(
PerformanceVgpuScheduler
FairShare
vgpuScheduler
=
new
PerformanceVgpuSchedulerFairShare
(
VideoCardTags
.
NVIDIA_K1_CARD
,
pgpus
,
pgpuSelectionPolicy
,
performanceModel
);
VideoCardTags
.
NVIDIA_K1_CARD
,
pgpus
,
pgpuSelectionPolicy
,
performanceModel
);
// PCI Express Bus Bw Provisioner
// PCI Express Bus Bw Provisioner
VideoCardBwProvisioner
videoCardBwProvisioner
=
new
VideoCardBwProvisionerShared
(
VideoCardBwProvisioner
videoCardBwProvisioner
=
new
VideoCardBwProvisionerShared
(
...
...
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