Skip to content

Instantly share code, notes, and snippets.

@chaofengc
chaofengc / Build C extension errors.md
Last active April 30, 2018 13:48
Pytorch Issues and Tricks

C Extension errors

No cuda.h

export CPATH=/path/to/cuda/include

Set c99

export CXXFLAGS="-std=c++11"
@chaofengc
chaofengc / Specify new gcc path for cmake.md
Last active August 7, 2017 06:36
Ubuntu Config Issue
export CC=/path/to/gcc
export CXX=/path/to/g++
@chaofengc
chaofengc / tmux issues.md
Last active July 3, 2018 10:43 — forked from henrik/tmux_cheatsheet.markdown
tmux cheatsheet

Window size changed when open the tmux with different size of screens.

Solution: tmux detach -a

@chaofengc
chaofengc / Torch Issues.md
Last active July 7, 2017 16:06
Record issues when using torch

Issues When Using Torch

(1) Install loadcaffe by luarocks

Problem: Protobuf is too old
Reason: the libprotobuf-dev of apt-get is outdated

Solution Steps
First, Get the latest protobuf.

  • Install from source, or
  • Use the package of anaconda, which is installed in anaconda2/pkgs/libprotobuf-3.2.0-0
@chaofengc
chaofengc / [CV Course ] Environment Setup For GPU Containers.md
Last active July 3, 2018 03:40
Server Usage Instructions for CV Class

fatal error: cuda.h: No such file or directory

Solution: explicitly export cuda include path by

export CPATH=/path/to/cuda/include

ubuntu 添加新硬盘

查看硬盘:

# fdisk -l
...
Disk /dev/sdb: 274.9 GB, 274877906944 bytes
255 heads, 63 sectors/track, 33418 cylinders, total 	536870912 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
@chaofengc
chaofengc / Install NVIDIA Driver and CUDA.md
Created June 15, 2017 08:35 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora
@chaofengc
chaofengc / git_toturial
Created September 8, 2016 07:26 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库