diff options
Diffstat (limited to 'opendc-compute/opendc-compute-topology')
| -rw-r--r-- | opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/TopologyFactories.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/TopologyFactories.kt b/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/TopologyFactories.kt index b52608a9..09a8fe64 100644 --- a/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/TopologyFactories.kt +++ b/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/TopologyFactories.kt @@ -157,6 +157,7 @@ private fun ClusterJSONSpec.toClusterSpec(): ClusterSpec { * Helper method to convert a [HostJSONSpec] into a [HostSpec]s. */ private var globalCoreId = 0 +private var globalGpuId = 0 private fun HostJSONSpec.toHostSpec(clusterName: String): HostSpec { val units = @@ -172,7 +173,7 @@ private fun HostJSONSpec.toHostSpec(clusterName: String): HostSpec { val gpuUnits = List(gpu?.count ?: 0) { GpuModel( - globalCoreId++, + globalGpuId++, gpu!!.coreCount, gpu.coreSpeed.toMHz(), gpu.memoryBandwidth.toKibps(), |
