Skip to content

Commit

Permalink
[fpga/wiki/servan] Add fpga on wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
berardbe committed May 17, 2022
1 parent c3b5729 commit 566a468
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 7 deletions.
12 changes: 10 additions & 2 deletions data/grid5000/sites/grenoble/clusters/servan/nodes/servan-1.json
Expand Up @@ -276,39 +276,45 @@
},
{
"device": "fpga0",
"driver": "xrt",
"enabled": true,
"interface": "Ethernet-fpga",
"ip": "172.16.23.11",
"ip6": "2001:660:4406:100:8:1:0:1",
"kavlan": true,
"mac": "00:0a:35:06:4a:b8",
"management": false,
"model": "Alveo U200 QSFP28 (100GbE)",
"mountable": true,
"mounted": false,
"network_address": "servan-1-fpga0.grenoble.grid5000.fr",
"rate": 100000000000,
"sriov": false,
"sriov_totalvfs": 0,
"switch": "gw",
"switch_port": "ethernet1/1/97"
"switch_port": "ethernet1/1/97",
"vendor": "Xilinx"
},
{
"device": "fpga1",
"driver": "xrt",
"enabled": true,
"interface": "Ethernet-fpga",
"ip": "172.16.23.21",
"ip6": "2001:660:4406:100:8:2:0:1",
"kavlan": true,
"mac": "00:0a:35:06:4a:b9",
"management": false,
"model": "Alveo U200 QSFP28 (100GbE)",
"mountable": true,
"mounted": false,
"network_address": "servan-1-fpga1.grenoble.grid5000.fr",
"rate": 100000000000,
"sriov": false,
"sriov_totalvfs": 0,
"switch": "gw",
"switch_port": "ethernet1/1/98"
"switch_port": "ethernet1/1/98",
"vendor": "Xilinx"
}
],
"operating_system": {
Expand All @@ -321,6 +327,8 @@
},
"other_devices": {
"fpga0": {
"core": 0,
"count": 1,
"model": "Alveo U200",
"type": "fpga",
"vendor": "Xilinx"
Expand Down
12 changes: 10 additions & 2 deletions data/grid5000/sites/grenoble/clusters/servan/nodes/servan-2.json
Expand Up @@ -276,39 +276,45 @@
},
{
"device": "fpga0",
"driver": "xrt",
"enabled": true,
"interface": "Ethernet-fpga",
"ip": "172.16.23.12",
"ip6": "2001:660:4406:100:8:1:0:2",
"kavlan": true,
"mac": "00:0a:35:06:4a:dc",
"management": false,
"model": "Alveo U200 QSFP28 (100GbE)",
"mountable": true,
"mounted": false,
"network_address": "servan-2-fpga0.grenoble.grid5000.fr",
"rate": 100000000000,
"sriov": false,
"sriov_totalvfs": 0,
"switch": "gw",
"switch_port": "ethernet1/1/99"
"switch_port": "ethernet1/1/99",
"vendor": "Xilinx"
},
{
"device": "fpga1",
"driver": "xrt",
"enabled": true,
"interface": "Ethernet-fpga",
"ip": "172.16.23.22",
"ip6": "2001:660:4406:100:8:2:0:2",
"kavlan": true,
"mac": "00:0a:35:06:4a:dd",
"management": false,
"model": "Alveo U200 QSFP28 (100GbE)",
"mountable": true,
"mounted": false,
"network_address": "servan-2-fpga1.grenoble.grid5000.fr",
"rate": 100000000000,
"sriov": false,
"sriov_totalvfs": 0,
"switch": "gw",
"switch_port": "ethernet1/1/100"
"switch_port": "ethernet1/1/100",
"vendor": "Xilinx"
}
],
"operating_system": {
Expand All @@ -321,6 +327,8 @@
},
"other_devices": {
"fpga0": {
"core": 0,
"count": 1,
"model": "Alveo U200",
"type": "fpga",
"vendor": "Xilinx"
Expand Down
18 changes: 18 additions & 0 deletions input/grid5000/sites/grenoble/clusters/servan/servan.yaml
Expand Up @@ -66,16 +66,34 @@ nodes:
pci-0000:c4:00.0-nvme-1:
interface: NVME
id: disk1
other_devices:
fpga0:
count: 1
core: 0
servan-1:
network_adapters:
fpga0:
mac: 00:0A:35:06:4A:B8
driver: xrt
model: Alveo U200 QSFP28 (100GbE)
vendor: Xilinx
fpga1:
mac: 00:0A:35:06:4A:B9
driver: xrt
model: Alveo U200 QSFP28 (100GbE)
vendor: Xilinx
servan-2:
network_adapters:
fpga0:
mac: 00:0A:35:06:4A:DC
driver: xrt
model: Alveo U200 QSFP28 (100GbE)
vendor: Xilinx
fpga1:
mac: 00:0A:35:06:4A:DD
driver: xrt
model: Alveo U200 QSFP28 (100GbE)
vendor: Xilinx



13 changes: 10 additions & 3 deletions lib/refrepo/gen/wiki/generators/hardware.rb
Expand Up @@ -154,6 +154,13 @@ def generate_totals
}

# Accelerators
f = node_hash['other_devices']
fpga_families = {}
fpga_families[[f['fpga0']['vendor']]] = 1 if f and f['fpga0']
fpga_details = {}
# We don't have information about the number of cores, by default we add it manually to 0
fpga_details[["#{f['fpga0']['vendor']} #{f['fpga0']['model']}"]] = [1,0] if f and f['fpga0']

m = node_hash['mic']

mic_families = {}
Expand Down Expand Up @@ -189,12 +196,12 @@ def generate_totals
}
end

gpu_families.merge(mic_families).sort.to_h.each { |k, v|
gpu_families.merge(mic_families).merge(fpga_families).sort.to_h.each { |k, v|
init(data, 'acc_families', k)
data['acc_families'][k][site_uid] += v
}

gpu_details.merge(mic_details).sort.to_h.each { |k, v|
gpu_details.merge(mic_details).merge(fpga_details).sort.to_h.each { |k, v|
init(data, 'acc_models', k)
data['acc_models'][k][site_uid] += v[0]

Expand Down Expand Up @@ -259,7 +266,7 @@ def generate_totals
generated_content += generate_storage
generated_content += "\n''*: disk is [[Disk_reservation|reservable]]''"

generated_content += "\n= Accelerators (GPU, Xeon Phi) ="
generated_content += "\n= Accelerators (GPU, Xeon Phi, FPGA) ="
generated_content += "\n== Accelerator families ==\n"
table_columns = ['Accelerator family'] + sites + ['Accelerators total']
generated_content += MW.generate_table(table_options, table_columns, get_table_data(data, 'acc_families'))
Expand Down

0 comments on commit 566a468

Please sign in to comment.