FAQ: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== Pytorch FAQ ==
* How to get [[CUDA]] compute capability of a GPU?
** $python -c "import torch; print(torch.cuda.get_arch_list())"
== Show List Of Network Cards on Linux ==
== Show List Of Network Cards on Linux ==


=== <kbd>lspci command</kbd> : List all PCI devices. ===
* <kbd>lspci command</kbd> : List all PCI devices.
 
  <code>'''#lspci | egrep -i --color 'network|ethernet''''</code>
  <code>'''#lspci | egrep -i --color 'network|ethernet''''</code>


  <code>'''#lspci | egrep -i --color 'network|ethernet|wireless|wi-fi''''</code>
  <code>'''#lspci | egrep -i --color 'network|ethernet|wireless|wi-fi''''</code>


=== <kbd>lshw command</kbd> : Linux identify Ethernet interfaces and NIC hardware. ===
* <kbd>lshw command</kbd> : [[Linux]] identify Ethernet interfaces and NIC hardware.
 
  <code>'''#lshw -class network'''</code>
  <code>'''#lshw -class network'''</code>


  '''$sudo lshw -class network -short'''
  '''$sudo lshw -class network -short'''


=== <kbd>dmidecode command</kbd> : List all hardware data from BIOS. ===
* <kbd>dmidecode command</kbd> : List all hardware data from BIOS.
* <kbd>ifconfig command</kbd> : Outdated network config


=== <kbd>ifconfig command</kbd> : Outdated network config ===
  <code>'''$ifconfig -a'''</code>
  <code>'''$ifconfig -a'''</code>


Line 20: Line 27:
  <code>'''$ip a'''</code>
  <code>'''$ip a'''</code>


=== <kbd>ip command</kbd> : Recommended new network config . ===
* <kbd>ip command</kbd> : Recommended new network config .
 
  <code>'''$ip a show wlp82s0'''</code>
  <code>'''$ip a show wlp82s0'''</code>


Line 27: Line 35:
  <code>'''$ip -br -c addr show'''        # similar list with IP address instead of MAC Address</code>
  <code>'''$ip -br -c addr show'''        # similar list with IP address instead of MAC Address</code>


=== <kbd>hwinfo command</kbd> : Probe Linux for network cards. ===
* <kbd>hwinfo command</kbd> : Probe Linux for network cards.
 
  <code>'''$sudo hwinfo --network --short'''</code>
  <code>'''$sudo hwinfo --network --short'''</code>


=== <kbd>ethtool command</kbd> : See NIC/card driver and settings on Linux. ===
* <kbd>ethtool command</kbd> : See NIC/card driver and settings on Linux.
 
  <code>'''$sudo ethtool -i eno1'''</code>
  <code>'''$sudo ethtool -i eno1'''</code>


  <code>'''$sudo ethtool -i enp0s31f6'''</code>
  <code>'''$sudo ethtool -i enp0s31f6'''</code>


=== /proc/net/dev file ===
* /proc/net/dev file
 
The dev pseudo-file contains network device status information. This gives the number of received and sent packets, the number of errors and collisions and other basic statistics
The dev pseudo-file contains network device status information. This gives the number of received and sent packets, the number of errors and collisions and other basic statistics
  <code>'''$cat /proc/net/dev'''</code>
  <code>'''$cat /proc/net/dev'''</code>

Revision as of 11:36, 28 March 2023

Pytorch FAQ

  • How to get CUDA compute capability of a GPU?
    • $python -c "import torch; print(torch.cuda.get_arch_list())"

Show List Of Network Cards on Linux

  • lspci command : List all PCI devices.
#lspci | egrep -i --color 'network|ethernet'
#lspci | egrep -i --color 'network|ethernet|wireless|wi-fi'
  • lshw command : Linux identify Ethernet interfaces and NIC hardware.
#lshw -class network
$sudo lshw -class network -short
  • dmidecode command : List all hardware data from BIOS.
  • ifconfig command : Outdated network config
$ifconfig -a
$ip link show
$ip a
  • ip command : Recommended new network config .
$ip a show wlp82s0
$ip -br -c link show         # To list all interface, link status, MAC address, etc
$ip -br -c addr show         # similar list with IP address instead of MAC Address
  • hwinfo command : Probe Linux for network cards.
$sudo hwinfo --network --short
  • ethtool command : See NIC/card driver and settings on Linux.
$sudo ethtool -i eno1
$sudo ethtool -i enp0s31f6
  • /proc/net/dev file

The dev pseudo-file contains network device status information. This gives the number of received and sent packets, the number of errors and collisions and other basic statistics

$cat /proc/net/dev

Failed to set iommu for container: Invalid argument

A VM configured with a vGPU that supports SR-IOV may fail to start, This issue occurs because PCIe AER [Advanced Error Reporting] support was disabled in the BIOS settings of the server.