Skip to content

Instantly share code, notes, and snippets.

View zarzen's full-sized avatar

Zhen Zhang zarzen

View GitHub Profile
@mcarilli
mcarilli / nsight.sh
Last active May 10, 2024 08:48
Favorite nsight systems profiling commands for Pytorch scripts
# This isn't supposed to run as a bash script, i named it with ".sh" for syntax highlighting.
# https://developer.nvidia.com/nsight-systems
# https://docs.nvidia.com/nsight-systems/profiling/index.html
# My preferred nsys (command line executable used to create profiles) commands
#
# In your script, write
# torch.cuda.nvtx.range_push("region name")
# ...
@liangfu
liangfu / mldev_init.sh
Last active July 18, 2023 17:24
Initialize dev workspace with a single bash script
apt update
apt install -y emacs-nox aptitude screen xcscope-el gdb nano || echo 0 && echo "Success"
python3 -m pip install git-remote-codecommit opennmt-tf==1.25.1
cat << EOF > ~/.gdbinit
set print thread-events off
define hook-run
catch throw
end
define hook-quit