Skip to content

Instantly share code, notes, and snippets.

View Ja1Zhou's full-sized avatar
🏠
Working from home

Jay (Zhejian) Zhou Ja1Zhou

🏠
Working from home
View GitHub Profile
@Ja1Zhou
Ja1Zhou / git-clone-sub.md
Created July 5, 2023 02:49 — forked from dinhvle/git-clone-sub.md
Clone Only a Subdirectory with Git
@Ja1Zhou
Ja1Zhou / host_ip.sh
Created January 15, 2023 12:11
WSL2 host ip
#!/bin/bash
# https://zhuanlan.zhihu.com/p/153124468
host_ip=$(cat /etc/resolv.conf | grep "nameserver" | cut -f 2 -d " ")
@Ja1Zhou
Ja1Zhou / my_torch_args.ps1
Created January 13, 2022 12:05
my environment variables for compiling pytorch from source on windows
# modify <path_to_pytorch_dependencies> according to your situation
# I have put mkl and magma both under <path_to_pytorch_dependencies>
$Env:CMAKE_INCLUDE_PATH="<path_to_pytorch_dependencies>\mkl_2020.2.254\include"
$Env:LIB="<path_to_pytorch_dependencies>\mkl_2020.2.254\lib"
$Env:MAGMA_HOME="<path_to_pytorch_dependencies>\magma_2.5.4_cuda115_release"
$Env:CMAKE_GENERATOR="Ninja"
$Env:BUILD_TEST=0
$Env:USE_ROCM=0