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
693bcad3
Commit
693bcad3
authored
Jun 09, 2022
by
Ahmad Siavashi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decopule RemoteGpuTask
parent
7da71f9a
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
87 additions
and
63 deletions
+87
-63
CloudSimGpuExample1.java
...g/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample1.java
+6
-6
CloudSimGpuExample2.java
...g/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample2.java
+6
-6
CloudSimGpuExample3.java
...g/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample3.java
+6
-6
CloudSimGpuExample4.java
...g/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample4.java
+7
-7
CloudSimGpuExample5.java
...g/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample5.java
+7
-7
CloudSimGpuExample6.java
...g/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample6.java
+5
-4
GpuHostTags.java
.../src/main/java/org/cloudbus/cloudsim/gpu/GpuHostTags.java
+1
-1
GpuTask.java
...dsim/src/main/java/org/cloudbus/cloudsim/gpu/GpuTask.java
+3
-13
VgpuScheduler.java
...rc/main/java/org/cloudbus/cloudsim/gpu/VgpuScheduler.java
+1
-1
GridGpuVmAllocationPolicyBestFit.java
...dware_assisted/grid/GridGpuVmAllocationPolicyBestFit.java
+1
-1
GridGpuVmAllocationPolicyBreadthFirst.java
..._assisted/grid/GridGpuVmAllocationPolicyBreadthFirst.java
+1
-1
GridGpuVmAllocationPolicyDepthFirst.java
...re_assisted/grid/GridGpuVmAllocationPolicyDepthFirst.java
+1
-1
GridGpuVmAllocationPolicyVird.java
...hardware_assisted/grid/GridGpuVmAllocationPolicyVird.java
+1
-1
GridGpuVmAllocationPolicyViri.java
...hardware_assisted/grid/GridGpuVmAllocationPolicyViri.java
+1
-1
GridPerformanceVgpuSchedulerFairShare.java
..._assisted/grid/GridPerformanceVgpuSchedulerFairShare.java
+1
-1
GridVgpuSchedulerFairShare.java
...pu/hardware_assisted/grid/GridVgpuSchedulerFairShare.java
+1
-1
GridVgpuTags.java
...bus/cloudsim/gpu/hardware_assisted/grid/GridVgpuTags.java
+1
-1
GridVideoCardPowerModelK1.java
...gpu/hardware_assisted/grid/GridVideoCardPowerModelK1.java
+1
-1
GridVideoCardPowerModelK2.java
...gpu/hardware_assisted/grid/GridVideoCardPowerModelK2.java
+1
-1
GridVideoCardTags.java
...loudsim/gpu/hardware_assisted/grid/GridVideoCardTags.java
+1
-1
RemoteGpuDatacenterEx.java
...g/cloudbus/cloudsim/gpu/remote/RemoteGpuDatacenterEx.java
+1
-1
RemoteGpuTask.java
.../java/org/cloudbus/cloudsim/gpu/remote/RemoteGpuTask.java
+33
-0
No files found.
modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample1.java
View file @
693bcad3
...
@@ -33,10 +33,10 @@ import org.cloudbus.cloudsim.gpu.VgpuScheduler;
...
@@ -33,10 +33,10 @@ import org.cloudbus.cloudsim.gpu.VgpuScheduler;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyNull
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyNull
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridGpuVmAllocationPolicyDepthFirst
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridGpuVmAllocationPolicyDepthFirst
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVgpuSchedulerFairShare
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVgpuSchedulerFairShare
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVgpuTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVgpuTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVideoCardTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVideoCardTags
;
import
org.cloudbus.cloudsim.gpu.provisioners.GpuBwProvisionerShared
;
import
org.cloudbus.cloudsim.gpu.provisioners.GpuBwProvisionerShared
;
import
org.cloudbus.cloudsim.gpu.provisioners.GpuGddramProvisionerSimple
;
import
org.cloudbus.cloudsim.gpu.provisioners.GpuGddramProvisionerSimple
;
import
org.cloudbus.cloudsim.gpu.provisioners.VideoCardBwProvisioner
;
import
org.cloudbus.cloudsim.gpu.provisioners.VideoCardBwProvisioner
;
...
@@ -52,7 +52,7 @@ import de.vandermeer.asciitable.AsciiTable;
...
@@ -52,7 +52,7 @@ import de.vandermeer.asciitable.AsciiTable;
/**
/**
* This example demonstrates the use of gpu package in simulations. <br>
* This example demonstrates the use of gpu package in simulations. <br>
* GPU virtualization mode:
hardware-assisted
<br>
* GPU virtualization mode:
GRID
<br>
* Performance Model: off <br>
* Performance Model: off <br>
* Interference Model: off <br>
* Interference Model: off <br>
* Power Model: off
* Power Model: off
...
@@ -185,7 +185,7 @@ public class CloudSimGpuExample1 {
...
@@ -185,7 +185,7 @@ public class CloudSimGpuExample1 {
UtilizationModel
gddramBwUtilizationModel
=
new
UtilizationModelFull
();
UtilizationModel
gddramBwUtilizationModel
=
new
UtilizationModelFull
();
GpuTask
gpuTask
=
new
GpuTask
(
gpuTaskId
,
taskLength
,
numberOfBlocks
,
taskInputSize
,
taskOutputSize
,
GpuTask
gpuTask
=
new
GpuTask
(
gpuTaskId
,
taskLength
,
numberOfBlocks
,
taskInputSize
,
taskOutputSize
,
requestedGddramSize
,
0
,
gpuUtilizationModel
,
gddramUtilizationModel
,
gddramBwUtilizationModel
);
requestedGddramSize
,
gpuUtilizationModel
,
gddramUtilizationModel
,
gddramBwUtilizationModel
);
GpuCloudlet
gpuCloudlet
=
new
GpuCloudlet
(
gpuCloudletId
,
length
,
pesNumber
,
fileSize
,
outputSize
,
GpuCloudlet
gpuCloudlet
=
new
GpuCloudlet
(
gpuCloudletId
,
length
,
pesNumber
,
fileSize
,
outputSize
,
cpuUtilizationModel
,
ramUtilizationModel
,
bwUtilizationModel
,
gpuTask
,
false
);
cpuUtilizationModel
,
ramUtilizationModel
,
bwUtilizationModel
,
gpuTask
,
false
);
...
...
modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample2.java
View file @
693bcad3
...
@@ -34,10 +34,10 @@ import org.cloudbus.cloudsim.gpu.VgpuScheduler;
...
@@ -34,10 +34,10 @@ import org.cloudbus.cloudsim.gpu.VgpuScheduler;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyNull
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyNull
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridGpuVmAllocationPolicyBreadthFirst
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridGpuVmAllocationPolicyBreadthFirst
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVgpuSchedulerFairShare
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVgpuSchedulerFairShare
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVgpuTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVgpuTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVideoCardTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVideoCardTags
;
import
org.cloudbus.cloudsim.gpu.interference.InterferenceGpuTaskSchedulerLeftover
;
import
org.cloudbus.cloudsim.gpu.interference.InterferenceGpuTaskSchedulerLeftover
;
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
;
...
@@ -56,7 +56,7 @@ import de.vandermeer.asciitable.AsciiTable;
...
@@ -56,7 +56,7 @@ import de.vandermeer.asciitable.AsciiTable;
/**
/**
* This example demonstrates the use of gpu package in simulations. <br>
* This example demonstrates the use of gpu package in simulations. <br>
* GPU virtualization mode:
hardware-assisted
<br>
* GPU virtualization mode:
GRID
<br>
* Performance Model: off <br>
* Performance Model: off <br>
* Interference Model: on <br>
* Interference Model: on <br>
* Power Model: off
* Power Model: off
...
@@ -189,7 +189,7 @@ public class CloudSimGpuExample2 {
...
@@ -189,7 +189,7 @@ public class CloudSimGpuExample2 {
UtilizationModel
gddramBwUtilizationModel
=
new
UtilizationModelFull
();
UtilizationModel
gddramBwUtilizationModel
=
new
UtilizationModelFull
();
GpuTask
gpuTask
=
new
GpuTask
(
gpuTaskId
,
taskLength
,
numberOfBlocks
,
taskInputSize
,
taskOutputSize
,
GpuTask
gpuTask
=
new
GpuTask
(
gpuTaskId
,
taskLength
,
numberOfBlocks
,
taskInputSize
,
taskOutputSize
,
requestedGddramSize
,
0
,
gpuUtilizationModel
,
gddramUtilizationModel
,
gddramBwUtilizationModel
);
requestedGddramSize
,
gpuUtilizationModel
,
gddramUtilizationModel
,
gddramBwUtilizationModel
);
GpuCloudlet
gpuCloudlet
=
new
GpuCloudlet
(
gpuCloudletId
,
length
,
pesNumber
,
fileSize
,
outputSize
,
GpuCloudlet
gpuCloudlet
=
new
GpuCloudlet
(
gpuCloudletId
,
length
,
pesNumber
,
fileSize
,
outputSize
,
cpuUtilizationModel
,
ramUtilizationModel
,
bwUtilizationModel
,
gpuTask
,
false
);
cpuUtilizationModel
,
ramUtilizationModel
,
bwUtilizationModel
,
gpuTask
,
false
);
...
...
modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample3.java
View file @
693bcad3
...
@@ -34,10 +34,10 @@ import org.cloudbus.cloudsim.gpu.VgpuScheduler;
...
@@ -34,10 +34,10 @@ import org.cloudbus.cloudsim.gpu.VgpuScheduler;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyNull
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyNull
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridGpuVmAllocationPolicyBreadthFirst
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridGpuVmAllocationPolicyBreadthFirst
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridPerformanceVgpuSchedulerFairShare
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridPerformanceVgpuSchedulerFairShare
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVgpuTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVgpuTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVideoCardTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVideoCardTags
;
import
org.cloudbus.cloudsim.gpu.interference.InterferenceGpuTaskSchedulerLeftover
;
import
org.cloudbus.cloudsim.gpu.interference.InterferenceGpuTaskSchedulerLeftover
;
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
;
...
@@ -59,7 +59,7 @@ import de.vandermeer.asciitable.AsciiTable;
...
@@ -59,7 +59,7 @@ import de.vandermeer.asciitable.AsciiTable;
/**
/**
* This example demonstrates the use of gpu package in simulations. <br>
* This example demonstrates the use of gpu package in simulations. <br>
* GPU virtualization mode:
hardware-assisted
<br>
* GPU virtualization mode:
GRID
<br>
* Performance Model: on <br>
* Performance Model: on <br>
* Interference Model: on <br>
* Interference Model: on <br>
* Power Model: off
* Power Model: off
...
@@ -134,7 +134,7 @@ public class CloudSimGpuExample3 {
...
@@ -134,7 +134,7 @@ public class CloudSimGpuExample3 {
UtilizationModel
gddramBwUtilizationModel
=
new
UtilizationModelFull
();
UtilizationModel
gddramBwUtilizationModel
=
new
UtilizationModelFull
();
GpuTask
gpuTask
=
new
GpuTask
(
gpuTaskId
,
taskLength
,
numberOfBlocks
,
taskInputSize
,
taskOutputSize
,
GpuTask
gpuTask
=
new
GpuTask
(
gpuTaskId
,
taskLength
,
numberOfBlocks
,
taskInputSize
,
taskOutputSize
,
requestedGddramSize
,
0
,
gpuUtilizationModel
,
gddramUtilizationModel
,
requestedGddramSize
,
gpuUtilizationModel
,
gddramUtilizationModel
,
gddramBwUtilizationModel
);
gddramBwUtilizationModel
);
GpuCloudlet
gpuCloudlet
=
new
GpuCloudlet
(
gpuCloudletId
,
length
,
pesNumber
,
fileSize
,
outputSize
,
GpuCloudlet
gpuCloudlet
=
new
GpuCloudlet
(
gpuCloudletId
,
length
,
pesNumber
,
fileSize
,
outputSize
,
...
...
modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample4.java
View file @
693bcad3
...
@@ -32,11 +32,11 @@ import org.cloudbus.cloudsim.gpu.VgpuScheduler;
...
@@ -32,11 +32,11 @@ import org.cloudbus.cloudsim.gpu.VgpuScheduler;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyNull
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyNull
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridGpuVmAllocationPolicyBreadthFirst
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridGpuVmAllocationPolicyBreadthFirst
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridPerformanceVgpuSchedulerFairShare
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridPerformanceVgpuSchedulerFairShare
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVgpuTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVgpuTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVideoCardPowerModelK1
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVideoCardPowerModelK1
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVideoCardTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVideoCardTags
;
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
;
...
@@ -61,7 +61,7 @@ import de.vandermeer.asciitable.AsciiTable;
...
@@ -61,7 +61,7 @@ import de.vandermeer.asciitable.AsciiTable;
/**
/**
* This example demonstrates the use of gpu package in simulations. <br>
* This example demonstrates the use of gpu package in simulations. <br>
* GPU virtualization mode:
hardware-assisted
<br>
* GPU virtualization mode:
GRID
<br>
* Performance Model: on <br>
* Performance Model: on <br>
* Interference Model: off <br>
* Interference Model: off <br>
* Power Model: on
* Power Model: on
...
@@ -194,7 +194,7 @@ public class CloudSimGpuExample4 {
...
@@ -194,7 +194,7 @@ public class CloudSimGpuExample4 {
UtilizationModel
gddramBwUtilizationModel
=
new
UtilizationModelFull
();
UtilizationModel
gddramBwUtilizationModel
=
new
UtilizationModelFull
();
GpuTask
gpuTask
=
new
GpuTask
(
gpuTaskId
,
taskLength
,
numberOfBlocks
,
taskInputSize
,
taskOutputSize
,
GpuTask
gpuTask
=
new
GpuTask
(
gpuTaskId
,
taskLength
,
numberOfBlocks
,
taskInputSize
,
taskOutputSize
,
requestedGddramSize
,
0
,
gpuUtilizationModel
,
gddramUtilizationModel
,
gddramBwUtilizationModel
);
requestedGddramSize
,
gpuUtilizationModel
,
gddramUtilizationModel
,
gddramBwUtilizationModel
);
GpuCloudlet
gpuCloudlet
=
new
GpuCloudlet
(
gpuCloudletId
,
length
,
pesNumber
,
fileSize
,
outputSize
,
GpuCloudlet
gpuCloudlet
=
new
GpuCloudlet
(
gpuCloudletId
,
length
,
pesNumber
,
fileSize
,
outputSize
,
cpuUtilizationModel
,
ramUtilizationModel
,
bwUtilizationModel
,
gpuTask
,
false
);
cpuUtilizationModel
,
ramUtilizationModel
,
bwUtilizationModel
,
gpuTask
,
false
);
...
...
modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample5.java
View file @
693bcad3
...
@@ -32,11 +32,11 @@ import org.cloudbus.cloudsim.gpu.VgpuScheduler;
...
@@ -32,11 +32,11 @@ import org.cloudbus.cloudsim.gpu.VgpuScheduler;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyNull
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyNull
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridGpuVmAllocationPolicyBreadthFirst
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridGpuVmAllocationPolicyBreadthFirst
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridPerformanceVgpuSchedulerFairShare
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridPerformanceVgpuSchedulerFairShare
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVgpuTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVgpuTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVideoCardPowerModelK1
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVideoCardPowerModelK1
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVideoCardTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVideoCardTags
;
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
;
...
@@ -62,7 +62,7 @@ import de.vandermeer.asciitable.AsciiTable;
...
@@ -62,7 +62,7 @@ import de.vandermeer.asciitable.AsciiTable;
/**
/**
* This example demonstrates the use of gpu package for the simulation of mixed
* This example demonstrates the use of gpu package for the simulation of mixed
* workloads. <br>
* workloads. <br>
* GPU virtualization mode:
hardware-assisted
<br>
* GPU virtualization mode:
GRID
<br>
* Performance Model: on <br>
* Performance Model: on <br>
* Interference Model: off <br>
* Interference Model: off <br>
* Power Model: on
* Power Model: on
...
@@ -195,7 +195,7 @@ public class CloudSimGpuExample5 {
...
@@ -195,7 +195,7 @@ public class CloudSimGpuExample5 {
UtilizationModel
gddramBwUtilizationModel
=
new
UtilizationModelFull
();
UtilizationModel
gddramBwUtilizationModel
=
new
UtilizationModelFull
();
GpuTask
gpuTask
=
new
GpuTask
(
gpuTaskId
,
taskLength
,
numberOfBlocks
,
taskInputSize
,
taskOutputSize
,
GpuTask
gpuTask
=
new
GpuTask
(
gpuTaskId
,
taskLength
,
numberOfBlocks
,
taskInputSize
,
taskOutputSize
,
requestedGddramSize
,
0
,
gpuUtilizationModel
,
gddramUtilizationModel
,
gddramBwUtilizationModel
);
requestedGddramSize
,
gpuUtilizationModel
,
gddramUtilizationModel
,
gddramBwUtilizationModel
);
GpuCloudlet
gpuCloudlet
=
new
GpuCloudlet
(
gpuCloudletId
,
length
,
pesNumber
,
fileSize
,
outputSize
,
GpuCloudlet
gpuCloudlet
=
new
GpuCloudlet
(
gpuCloudletId
,
length
,
pesNumber
,
fileSize
,
outputSize
,
cpuUtilizationModel
,
ramUtilizationModel
,
bwUtilizationModel
,
gpuTask
,
false
);
cpuUtilizationModel
,
ramUtilizationModel
,
bwUtilizationModel
,
gpuTask
,
false
);
...
...
modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/gpu/CloudSimGpuExample6.java
View file @
693bcad3
...
@@ -32,8 +32,8 @@ import org.cloudbus.cloudsim.gpu.VgpuScheduler;
...
@@ -32,8 +32,8 @@ import org.cloudbus.cloudsim.gpu.VgpuScheduler;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicySimple
;
import
org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicySimple
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
GridVideoCardTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.GridVideoCardPowerModelK1
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
GridVideoCardPowerModelK1
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.GridVideoCardTags
;
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.placement.GpuDatacenterBrokerEx
;
import
org.cloudbus.cloudsim.gpu.placement.GpuDatacenterBrokerEx
;
...
@@ -47,6 +47,7 @@ import org.cloudbus.cloudsim.gpu.provisioners.GpuGddramProvisionerSimple;
...
@@ -47,6 +47,7 @@ import org.cloudbus.cloudsim.gpu.provisioners.GpuGddramProvisionerSimple;
import
org.cloudbus.cloudsim.gpu.provisioners.VideoCardBwProvisioner
;
import
org.cloudbus.cloudsim.gpu.provisioners.VideoCardBwProvisioner
;
import
org.cloudbus.cloudsim.gpu.provisioners.VideoCardBwProvisionerShared
;
import
org.cloudbus.cloudsim.gpu.provisioners.VideoCardBwProvisionerShared
;
import
org.cloudbus.cloudsim.gpu.remote.RemoteGpuDatacenterEx
;
import
org.cloudbus.cloudsim.gpu.remote.RemoteGpuDatacenterEx
;
import
org.cloudbus.cloudsim.gpu.remote.RemoteGpuTask
;
import
org.cloudbus.cloudsim.gpu.remote.RemoteGpuVmAllocationPolicySimple
;
import
org.cloudbus.cloudsim.gpu.remote.RemoteGpuVmAllocationPolicySimple
;
import
org.cloudbus.cloudsim.gpu.remote.RemoteVgpuSchedulerFairShareEx
;
import
org.cloudbus.cloudsim.gpu.remote.RemoteVgpuSchedulerFairShareEx
;
import
org.cloudbus.cloudsim.gpu.remote.RemoteVgpuTags
;
import
org.cloudbus.cloudsim.gpu.remote.RemoteVgpuTags
;
...
@@ -195,8 +196,8 @@ public class CloudSimGpuExample6 {
...
@@ -195,8 +196,8 @@ public class CloudSimGpuExample6 {
UtilizationModel
gddramUtilizationModel
=
new
UtilizationModelFull
();
UtilizationModel
gddramUtilizationModel
=
new
UtilizationModelFull
();
UtilizationModel
gddramBwUtilizationModel
=
new
UtilizationModelFull
();
UtilizationModel
gddramBwUtilizationModel
=
new
UtilizationModelFull
();
GpuTask
gpuTask
=
new
GpuTask
(
gpuTaskId
,
taskLength
,
numberOfBlocks
,
taskInputSize
,
taskOutputSize
,
GpuTask
gpuTask
=
new
Remote
GpuTask
(
gpuTaskId
,
taskLength
,
numberOfBlocks
,
taskInputSize
,
taskOutputSize
,
requestedGddramSize
,
0
,
gpuUtilizationModel
,
gddramUtilizationModel
,
gddramBwUtilizationModel
);
requestedGddramSize
,
1.5f
,
gpuUtilizationModel
,
gddramUtilizationModel
,
gddramBwUtilizationModel
);
GpuCloudlet
gpuCloudlet
=
new
GpuCloudlet
(
gpuCloudletId
,
length
,
pesNumber
,
fileSize
,
outputSize
,
GpuCloudlet
gpuCloudlet
=
new
GpuCloudlet
(
gpuCloudletId
,
length
,
pesNumber
,
fileSize
,
outputSize
,
cpuUtilizationModel
,
ramUtilizationModel
,
bwUtilizationModel
,
gpuTask
,
false
);
cpuUtilizationModel
,
ramUtilizationModel
,
bwUtilizationModel
,
gpuTask
,
false
);
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/GpuHostTags.java
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
;
package
org
.
cloudbus
.
cloudsim
.
gpu
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVideoCardTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVideoCardTags
;
/**
/**
*
*
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/GpuTask.java
View file @
693bcad3
...
@@ -48,11 +48,6 @@ public class GpuTask {
...
@@ -48,11 +48,6 @@ public class GpuTask {
*/
*/
private
final
long
requestedGddramSize
;
private
final
long
requestedGddramSize
;
/**
* The communication overhead when executed on a remote GPU.
*/
private
float
communicationOverhead
;
/**
/**
* Total number of task block. The length of the task is
* Total number of task block. The length of the task is
* {@link #getBlockLength()} * {@link #numberOfBlocks}
* {@link #getBlockLength()} * {@link #numberOfBlocks}
...
@@ -216,10 +211,10 @@ public class GpuTask {
...
@@ -216,10 +211,10 @@ public class GpuTask {
* @post $none
* @post $none
*/
*/
public
GpuTask
(
final
int
taskId
,
final
long
blockLength
,
final
int
numberOfBlocks
,
final
long
inputSize
,
public
GpuTask
(
final
int
taskId
,
final
long
blockLength
,
final
int
numberOfBlocks
,
final
long
inputSize
,
final
long
outputSize
,
final
long
requestedGddramSize
,
final
float
communicationOverhead
,
final
long
outputSize
,
final
long
requestedGddramSize
,
final
UtilizationModel
utilizationModelGpu
,
final
UtilizationModel
utilizationModelGddram
,
final
UtilizationModel
utilizationModelGpu
,
final
UtilizationModel
utilizationModelGddram
,
final
UtilizationModel
utilizationModelBw
)
{
final
UtilizationModel
utilizationModelBw
)
{
this
(
taskId
,
blockLength
,
numberOfBlocks
,
inputSize
,
outputSize
,
requestedGddramSize
,
communicationOverhead
,
this
(
taskId
,
blockLength
,
numberOfBlocks
,
inputSize
,
outputSize
,
requestedGddramSize
,
utilizationModelGpu
,
utilizationModelGddram
,
utilizationModelBw
,
false
);
utilizationModelGpu
,
utilizationModelGddram
,
utilizationModelBw
,
false
);
}
}
...
@@ -245,7 +240,7 @@ public class GpuTask {
...
@@ -245,7 +240,7 @@ public class GpuTask {
* @post $none
* @post $none
*/
*/
public
GpuTask
(
final
int
taskId
,
final
long
blockLength
,
final
int
numberOfBlocks
,
final
long
inputSize
,
public
GpuTask
(
final
int
taskId
,
final
long
blockLength
,
final
int
numberOfBlocks
,
final
long
inputSize
,
final
long
outputSize
,
final
long
requestedGddramSize
,
final
float
communicationOverhead
,
final
long
outputSize
,
final
long
requestedGddramSize
,
final
UtilizationModel
utilizationModelGpu
,
final
UtilizationModel
utilizationModelGddram
,
final
UtilizationModel
utilizationModelGpu
,
final
UtilizationModel
utilizationModelGddram
,
final
UtilizationModel
utilizationModelBw
,
final
boolean
record
)
{
final
UtilizationModel
utilizationModelBw
,
final
boolean
record
)
{
status
=
CREATED
;
status
=
CREATED
;
...
@@ -261,7 +256,6 @@ public class GpuTask {
...
@@ -261,7 +256,6 @@ public class GpuTask {
this
.
taskInputSize
=
Math
.
max
(
1
,
inputSize
);
this
.
taskInputSize
=
Math
.
max
(
1
,
inputSize
);
this
.
taskOutputSize
=
Math
.
max
(
1
,
outputSize
);
this
.
taskOutputSize
=
Math
.
max
(
1
,
outputSize
);
this
.
requestedGddramSize
=
Math
.
max
(
1
,
requestedGddramSize
);
this
.
requestedGddramSize
=
Math
.
max
(
1
,
requestedGddramSize
);
this
.
communicationOverhead
=
communicationOverhead
;
// Normally, a task is only executed on a resource without being
// Normally, a task is only executed on a resource without being
// migrated to others. Hence, to reduce memory consumption, set the
// migrated to others. Hence, to reduce memory consumption, set the
...
@@ -561,10 +555,6 @@ public class GpuTask {
...
@@ -561,10 +555,6 @@ public class GpuTask {
return
taskOutputSize
;
return
taskOutputSize
;
}
}
public
float
getCommunicationOverhead
()
{
return
communicationOverhead
;
}
/**
/**
* Sets the resource parameters for which the task is going to be executed. From
* Sets the resource parameters for which the task is going to be executed. From
* the second time this method is called, every call make the task to be
* the second time this method is called, every call make the task to be
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/VgpuScheduler.java
View file @
693bcad3
...
@@ -11,7 +11,7 @@ import org.apache.commons.collections.CollectionUtils;
...
@@ -11,7 +11,7 @@ import org.apache.commons.collections.CollectionUtils;
import
org.apache.commons.collections.Predicate
;
import
org.apache.commons.collections.Predicate
;
import
org.cloudbus.cloudsim.Pe
;
import
org.cloudbus.cloudsim.Pe
;
import
org.cloudbus.cloudsim.Vm
;
import
org.cloudbus.cloudsim.Vm
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.GridVideoCardTags
;
import
org.cloudbus.cloudsim.gpu.hardware_assisted.
grid.
GridVideoCardTags
;
import
org.cloudbus.cloudsim.gpu.selection.PgpuSelectionPolicy
;
import
org.cloudbus.cloudsim.gpu.selection.PgpuSelectionPolicy
;
/**
/**
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/GridGpuVmAllocationPolicyBestFit.java
→
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/
grid/
GridGpuVmAllocationPolicyBestFit.java
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
;
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
.
grid
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Collections
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/GridGpuVmAllocationPolicyBreadthFirst.java
→
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/
grid/
GridGpuVmAllocationPolicyBreadthFirst.java
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
;
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
.
grid
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Collections
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/GridGpuVmAllocationPolicyDepthFirst.java
→
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/
grid/
GridGpuVmAllocationPolicyDepthFirst.java
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
;
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
.
grid
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.Comparator
;
import
java.util.Comparator
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/GridGpuVmAllocationPolicyVird.java
→
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/
grid/
GridGpuVmAllocationPolicyVird.java
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
;
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
.
grid
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/GridGpuVmAllocationPolicyViri.java
→
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/
grid/
GridGpuVmAllocationPolicyViri.java
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
;
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
.
grid
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.Comparator
;
import
java.util.Comparator
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/GridPerformanceVgpuSchedulerFairShare.java
→
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/
grid/
GridPerformanceVgpuSchedulerFairShare.java
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
;
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
.
grid
;
import
java.util.List
;
import
java.util.List
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/GridVgpuSchedulerFairShare.java
→
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/
grid/
GridVgpuSchedulerFairShare.java
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
;
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
.
grid
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map.Entry
;
import
java.util.Map.Entry
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/GridVgpuTags.java
→
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/
grid/
GridVgpuTags.java
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
;
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
.
grid
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map.Entry
;
import
java.util.Map.Entry
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/GridVideoCardPowerModelK1.java
→
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/
grid/
GridVideoCardPowerModelK1.java
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
;
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
.
grid
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/GridVideoCardPowerModelK2.java
→
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/
grid/
GridVideoCardPowerModelK2.java
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
;
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
.
grid
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/GridVideoCardTags.java
→
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/hardware_assisted/
grid/
GridVideoCardTags.java
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
;
package
org
.
cloudbus
.
cloudsim
.
gpu
.
hardware_assisted
.
grid
;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
import
org.cloudbus.cloudsim.gpu.VideoCard
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/remote/RemoteGpuDatacenterEx.java
View file @
693bcad3
...
@@ -44,7 +44,7 @@ public class RemoteGpuDatacenterEx extends GpuDatacenterEx {
...
@@ -44,7 +44,7 @@ public class RemoteGpuDatacenterEx extends GpuDatacenterEx {
@Override
@Override
protected
void
processGpuMemoryTransfer
(
SimEvent
ev
)
{
protected
void
processGpuMemoryTransfer
(
SimEvent
ev
)
{
GpuTask
gt
=
(
GpuTask
)
ev
.
getData
();
RemoteGpuTask
gt
=
(
Remote
GpuTask
)
ev
.
getData
();
double
bandwidth
=
Double
.
valueOf
(
BusTags
.
PCI_E_3_X16_BW
);
double
bandwidth
=
Double
.
valueOf
(
BusTags
.
PCI_E_3_X16_BW
);
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/gpu/remote/RemoteGpuTask.java
0 → 100644
View file @
693bcad3
package
org
.
cloudbus
.
cloudsim
.
gpu
.
remote
;
import
org.cloudbus.cloudsim.UtilizationModel
;
import
org.cloudbus.cloudsim.gpu.GpuTask
;
public
class
RemoteGpuTask
extends
GpuTask
{
/**
* The communication overhead when executed on a remote GPU.
*/
private
float
communicationOverhead
;
public
RemoteGpuTask
(
int
taskId
,
long
blockLength
,
int
numberOfBlocks
,
long
inputSize
,
long
outputSize
,
long
requestedGddramSize
,
float
communicationOverhead
,
UtilizationModel
utilizationModelGpu
,
UtilizationModel
utilizationModelGddram
,
UtilizationModel
utilizationModelBw
)
{
super
(
taskId
,
blockLength
,
numberOfBlocks
,
inputSize
,
outputSize
,
requestedGddramSize
,
utilizationModelGpu
,
utilizationModelGddram
,
utilizationModelBw
);
this
.
communicationOverhead
=
communicationOverhead
;
}
public
RemoteGpuTask
(
int
taskId
,
long
blockLength
,
int
numberOfBlocks
,
long
inputSize
,
long
outputSize
,
long
requestedGddramSize
,
float
communicationOverhead
,
UtilizationModel
utilizationModelGpu
,
UtilizationModel
utilizationModelGddram
,
UtilizationModel
utilizationModelBw
,
boolean
record
)
{
super
(
taskId
,
blockLength
,
numberOfBlocks
,
inputSize
,
outputSize
,
requestedGddramSize
,
utilizationModelGpu
,
utilizationModelGddram
,
utilizationModelBw
,
record
);
this
.
communicationOverhead
=
communicationOverhead
;
}
public
float
getCommunicationOverhead
()
{
return
communicationOverhead
;
}
}
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