Skip to content

Instantly share code, notes, and snippets.

View hanmoi-choi's full-sized avatar

dchoi hanmoi-choi

  • Square
  • Melbourne
View GitHub Profile
@hanmoi-choi
hanmoi-choi / Enabling Cuda for PyTorch in WSL2 env.md
Created April 9, 2024 07:13
Enabling Cuda for PyTorch in WSL2 env

Install Cuda toolkit in WSL2

wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-4

Instal Pytorch supporting Cuda

# -*- mode: ruby -*-
# vi: set ft=ruby :
# This configuration requires Vagrant 1.5 or newer and two plugins:
#
# vagrant plugin install vagrant-hosts ~> 2.1.4
# vagrant plugin install vagrant-auto_network ~> 1.0.0
#
# After installation, the following steps will spin up a master and agent that
# can communicate with each other:
@hanmoi-choi
hanmoi-choi / zsh.md
Created August 14, 2012 10:04 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu

Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh

and then you change your shell to zsh

chsh -s `which zsh`

and then restart