Usually, located at /usr/local/cuda/bin
$ nvprof python train_mnist.py
I prefer to use --print-gpu-trace.
各類書單與文獻列表
| $userPath = $env:USERPROFILE | |
| $pathExclusions = New-Object System.Collections.ArrayList | |
| $processExclusions = New-Object System.Collections.ArrayList | |
| $pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
| $pathExclusions.Add('C:\Windows\assembly') > $null | |
| $pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null | |
| $pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null | |
| $pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null | |
| $pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null |
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
| # Download and unpack the latest binary on a 64-bit Debian-compatible system: | |
| curl -L -o VNC https://www.realvnc.com/connect/download/binary/latest/debian/64-bit/ | |
| # Install VNC Server on a Debian-compatible system (assuming download file named as above): | |
| sudo dpkg -i VNC | |
| # Apply your license key, available from the Deployment page of your RealVNC account: | |
| sudo vnclicense -add XXXXX-XXXXX-XXXXX-XXXXX-XXXXX | |
| # Optionally enable cloud connectivity for VNC Server in Service Mode (token available with key): |
Single-process:
python main_amp.py -a resnet50 --b 224 --deterministic --workers 4 --opt-level O1 ./bare_metal_train_val/
Multi-process:
python -m torch.distributed.launch --nproc_per_node=2 main_amp.py -a resnet50 --b 224 --deterministic --workers 4 --opt-level O1 ./bare_metal_train_val/
Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:
| # Update 2023-07-20: | |
| # I've recently switched to installing `zsh` via `conda` which is a lot less hassle. | |
| # I added it to start automatically in `tmux` with | |
| # `set-option -g default-shell "~/miniconda3/envs/default/bin/zsh"` | |
| # | |
| # # Install Zsh on Sherlock | |
| # Installs Zsh with Oh-My-Zsh without root privileges | |
| # on Stanford's Sherlock (https://sherlock.stanford.edu) for use in tmux | |
| # | |
| # ## Instructions |
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt install build-essential python3-dev python-setuptools python-pip python-smbus libncursesw5-dev libgdbm-dev libc6-dev zlib1g-dev libsqlite3-dev tk-dev libssl-dev openssl libffi-dev git wget zsh gconf2 libnotify4 libappindicator1 nano tree libnss3 software-properties-common -y
Install Xquartz to get X11 support on MacOS. You can google Xquartz and download it from its official site, or install using HomeBrew.
brew cask install xquartzLaunch Xquartz. Go to Preference -> Security, click the box Allow connections from clients. NOTE: You have to lauch Xquartz with Allow connections from clients enable everytime you want to ssh to remote server with X11 forwarding support.