Commit 68322299 authored by Ahmad Siavashi's avatar Ahmad Siavashi

examples fixed

parent 98b0b446
......@@ -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.InterferenceModelGpuMemory;
import org.cloudbus.cloudsim.gpu.performance.PerformanceGpuHost;
import org.cloudbus.cloudsim.gpu.performance.PerformanceVgpuSchedulerLeftover;
import org.cloudbus.cloudsim.gpu.performance.PerformanceVgpuSchedulerFairShare;
import org.cloudbus.cloudsim.gpu.performance.models.PerformanceModel;
import org.cloudbus.cloudsim.gpu.performance.models.PerformanceModelGpuConstant;
import org.cloudbus.cloudsim.gpu.provisioners.BwProvisionerRelaxed;
......@@ -242,7 +242,7 @@ public class CloudSimGpuExample3 {
// Performance Model
PerformanceModel<VgpuScheduler, Vgpu> performanceModel = new PerformanceModelGpuConstant(0.1);
// Scheduler
VgpuScheduler vgpuScheduler = new PerformanceVgpuSchedulerLeftover(
VgpuScheduler vgpuScheduler = new PerformanceVgpuSchedulerFairShare(
VideoCardTags.NVIDIA_K2_CARD, pgpus, pgpuSelectionPolicy, performanceModel);
// PCI Express Bus Bw Provisioner
VideoCardBwProvisioner videoCardBwProvisioner = new VideoCardBwProvisionerShared(
......
......@@ -35,7 +35,7 @@ import org.cloudbus.cloudsim.gpu.VideoCard;
import org.cloudbus.cloudsim.gpu.VideoCardTags;
import org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy;
import org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyBreadthFirst;
import org.cloudbus.cloudsim.gpu.performance.PerformanceVgpuSchedulerLeftover;
import org.cloudbus.cloudsim.gpu.performance.PerformanceVgpuSchedulerFairShare;
import org.cloudbus.cloudsim.gpu.performance.models.PerformanceModel;
import org.cloudbus.cloudsim.gpu.performance.models.PerformanceModelGpuConstant;
import org.cloudbus.cloudsim.gpu.power.PowerGpuDatacenter;
......@@ -265,7 +265,7 @@ public class CloudSimGpuExample4 {
double performanceLoss = 0.1;
PerformanceModel<VgpuScheduler, Vgpu> performanceModel = new PerformanceModelGpuConstant(performanceLoss);
// Scheduler
PerformanceVgpuSchedulerLeftover vgpuScheduler = new PerformanceVgpuSchedulerLeftover(
PerformanceVgpuSchedulerFairShare vgpuScheduler = new PerformanceVgpuSchedulerFairShare(
VideoCardTags.NVIDIA_K1_CARD, pgpus, pgpuSelectionPolicy, performanceModel);
// PCI Express Bus Bw Provisioner
VideoCardBwProvisioner videoCardBwProvisioner = new VideoCardBwProvisionerShared(
......
......@@ -35,7 +35,7 @@ import org.cloudbus.cloudsim.gpu.VideoCard;
import org.cloudbus.cloudsim.gpu.VideoCardTags;
import org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicy;
import org.cloudbus.cloudsim.gpu.allocation.VideoCardAllocationPolicyBreadthFirst;
import org.cloudbus.cloudsim.gpu.performance.PerformanceVgpuSchedulerLeftover;
import org.cloudbus.cloudsim.gpu.performance.PerformanceVgpuSchedulerFairShare;
import org.cloudbus.cloudsim.gpu.performance.models.PerformanceModel;
import org.cloudbus.cloudsim.gpu.performance.models.PerformanceModelGpuConstant;
import org.cloudbus.cloudsim.gpu.power.PowerGpuDatacenter;
......@@ -268,7 +268,7 @@ public class CloudSimGpuExample5 {
double performanceLoss = 0.1;
PerformanceModel<VgpuScheduler, Vgpu> performanceModel = new PerformanceModelGpuConstant(performanceLoss);
// Scheduler
PerformanceVgpuSchedulerLeftover vgpuScheduler = new PerformanceVgpuSchedulerLeftover(
PerformanceVgpuSchedulerFairShare vgpuScheduler = new PerformanceVgpuSchedulerFairShare(
VideoCardTags.NVIDIA_K1_CARD, pgpus, pgpuSelectionPolicy, performanceModel);
// PCI Express Bus Bw Provisioner
VideoCardBwProvisioner videoCardBwProvisioner = new VideoCardBwProvisionerShared(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment