Skip to content

Instantly share code, notes, and snippets.

https://www.microsoft.com/en-us/edge/download?form=MA13FJ
$ sudo dnf install microsoft-edge-stable-111.0.1661.41-1.x86_64.rpm
[sudo] password for gengwg:
Windscribe 5.3 kB/s | 2.9 kB 00:00
Dependencies resolved.
===============================================================================================================================================================================================
Package Architecture Version Repository Size
===============================================================================================================================================================================================
Installing:
# git checkout v11.4
Note: switching to 'v11.4'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
# ./p2pBandwidthLatencyTest
[P2P (Peer-to-Peer) GPU Bandwidth Latency Test]
Device: 0, NVIDIA A100-SXM4-80GB, pciBusID: 7, pciDeviceID: 0, pciDomainID:0
Device: 1, NVIDIA A100-SXM4-80GB, pciBusID: f, pciDeviceID: 0, pciDomainID:0
Device: 2, NVIDIA A100-SXM4-80GB, pciBusID: 47, pciDeviceID: 0, pciDomainID:0
Device: 3, NVIDIA A100-SXM4-80GB, pciBusID: 4e, pciDeviceID: 0, pciDomainID:0
Device: 4, NVIDIA A100-SXM4-80GB, pciBusID: 87, pciDeviceID: 0, pciDomainID:0
Device: 5, NVIDIA A100-SXM4-80GB, pciBusID: 90, pciDeviceID: 0, pciDomainID:0
Device: 6, NVIDIA A100-SXM4-80GB, pciBusID: b7, pciDeviceID: 0, pciDomainID:0
Device: 7, NVIDIA A100-SXM4-80GB, pciBusID: bd, pciDeviceID: 0, pciDomainID:0
./p2pBandwidthLatencyTest
[P2P (Peer-to-Peer) GPU Bandwidth Latency Test]
Device: 0, NVIDIA A100 80GB PCIe, pciBusID: 3, pciDeviceID: 0, pciDomainID:0
Device: 1, NVIDIA A100 80GB PCIe, pciBusID: 6, pciDeviceID: 0, pciDomainID:0
Device: 2, NVIDIA A100 80GB PCIe, pciBusID: 43, pciDeviceID: 0, pciDomainID:0
Device: 3, NVIDIA A100 80GB PCIe, pciBusID: 45, pciDeviceID: 0, pciDomainID:0
Device: 4, NVIDIA A100 80GB PCIe, pciBusID: 84, pciDeviceID: 0, pciDomainID:0
Device: 5, NVIDIA A100 80GB PCIe, pciBusID: 87, pciDeviceID: 0, pciDomainID:0
Device: 6, NVIDIA A100 80GB PCIe, pciBusID: c4, pciDeviceID: 0, pciDomainID:0
Device: 7, NVIDIA A100 80GB PCIe, pciBusID: c6, pciDeviceID: 0, pciDomainID:0
./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 8 CUDA Capable device(s)
Device 0: "NVIDIA A100 80GB PCIe"
CUDA Driver Version / Runtime Version 11.4 / 11.4
CUDA Capability Major/Minor version number: 8.0
# ./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 8 CUDA Capable device(s)
Device 0: "NVIDIA A100-SXM4-80GB"
CUDA Driver Version / Runtime Version 11.4 / 11.4
CUDA Capability Major/Minor version number: 8.0
@gengwg
gengwg / host_nsswithc.md
Created April 14, 2023 01:24
"host" Command Does Not Observe /etc/nsswitch.conf

Problem

Despite modifying my hosts file, the DNS address for hosts is still displayed when using the host command. For instance:

$ grep -E "hosts|ipnodes" /etc/nsswitch.conf
hosts: files dns mymachines myhostname

$ grep google.com /etc/hosts
2401:db00:25ff:c83:: google.com
@gengwg
gengwg / volcano-tensorflow-dist-mnist.txt
Last active April 17, 2023 06:23
Volcano tensorflow example
$ cat tf-mnist.yaml
apiVersion: batch.volcano.sh/v1alpha1
kind: Job
metadata:
name: tensorflow-dist-mnist
spec:
minAvailable: 3
schedulerName: volcano
plugins:
env: []
@gengwg
gengwg / local-up-volcano.txt
Created April 23, 2023 22:33
local volcano setup
~/volcano$ ./hack/local-up-volcano.sh
Checking prerequisites
Found kubectl, version: Client Version: v1.20.0
Preparing...
Checking helm
Found helm, version: version.BuildInfo{Version:"v3.3.4", GitCommit:"a61ce5633af99708171414353ed49547cf05013d", GitTreeState:"clean", GoVersion:"go1.14.9"}
Generating volcano deploy yaml
which: no controller-gen in (/home/gengwg/.krew/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/gengwg/bin:/home/gengwg/nc//bin:/home/gengwg/.local/bin)
mkdir -p _output/bin
mkdir -p _output/release
$ lsmod | grep kvm
kvm_intel 335872 0
kvm 1036288 1 kvm_intel
irqbypass 16384 1 kvm
$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
$ chmod +x minikube
$ ./minikube version
minikube version: v1.24.0
commit: 76b94fb3c4e8ac5062daf70d60cf03ddcc0a741b