-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGPUHost.ned
More file actions
29 lines (25 loc) · 1.15 KB
/
Copy pathGPUHost.ned
File metadata and controls
29 lines (25 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package gpu_share.gpu.modules;
//
// GPU Host module that advertises availability via periodic beacons
// Accepts job leases and executes them with timed completion
//
simple GPUHost
{
parameters:
int vlanId = default(10); // VLAN identifier
int hostId = default(1); // Unique host identifier
int gpuSlots = default(4); // Total GPU slots available
double beaconInterval @unit(s) = default(1s); // Beacon advertisement interval
bool debug = default(false); // Debug logging
// Statistics
@signal[gpuUtilization](type=double);
@signal[beaconsSent](type=long);
@signal[jobsCompleted](type=long);
@statistic[utilization](title="GPU Utilization"; source=gpuUtilization; record=vector,timeavg,max);
@statistic[beaconCount](title="Beacons sent"; source=beaconsSent; record=count,vector);
@statistic[jobCount](title="Jobs completed"; source=jobsCompleted; record=count,vector);
// Display
@display("i=device/server2");
gates:
inout port; // Connection to VLAN bus
}