Skip to content

Instantly share code, notes, and snippets.

View 1duo's full-sized avatar
:octocat:

Yuduo Wu 1duo

:octocat:
  • San Fransisco Bay Area
View GitHub Profile
@1duo
1duo / centos.install.openmpi.md
Last active December 18, 2023 17:09
Install OpenMPI from source on CentOS7 with CUDA support.

Download OpenMPI from https://www.open-mpi.org

wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.0.tar.gz
wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.2.tar.gz

Unzip and run configurations with CUDA

@1duo
1duo / centos.install.boost.md
Last active April 4, 2024 18:39
Install Boost library from source on CentOS 7.

Download Boost Library: http://www.boost.org (Choose the expected version)

wget https://cfhcable.dl.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.gz
wget https://phoenixnap.dl.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.tar.gz
wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.gz
wget https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.gz
wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz
wget https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.gz
wget https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz
@1duo
1duo / centos.install.gcc.md
Last active April 13, 2018 23:12
Install GCC (GNU Compiler Collection) on CentOS 7.
  • Install Dependencies
yum install -y libmpc-devel mpfr-devel gmp-devel
  • Download GCC from:
curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O
@1duo
1duo / centos.install.caffe2.md
Last active August 9, 2018 08:10
Install Caffe2 on CentOS 7 with GPU support.
  • Assume NVIDIA Driver and CUDA Properly Installed, to Validate:
nvidia-smi
nvcc --version
  • Install Global Dependencies
@1duo
1duo / centos.install.nccl.md
Last active March 30, 2024 06:41
Install NCCL for GPU communications on CentOS 7.

NCCL1

git clone https://github.com/NVIDIA/nccl.git
cd nccl
make -j$(nproc) install

NCCL2

@1duo
1duo / centos.install.mellanox.gpudirect.md
Last active April 4, 2018 00:36
Install Mellanox OFED GPUDirect RDMA on CentOS 7.

Assueme NVIDIA Driver and CUDA already successfully installed.

  • Install Dependencies
sudo yum install -y tcl tk
  • Install MLNX_OFED v2.1-x.x.x or later
@1duo
1duo / centos.install.libjpeg-turbo.md
Last active April 13, 2018 21:40
Install libjpeg-turbo on CentOS 7.
  • Install Dependencies
yum install -y nasm
  • Download and Unzip libjpeg-turbo.tar.gz
wget https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-1.5.2.tar.gz
@1duo
1duo / emacs.config
Last active July 26, 2018 17:32
My Zero-Dependency Emacs Configurations.
;;; CUDA syntax hihlighting
(add-to-list 'auto-mode-alist '("\\.cuh\\'" . c++-mode))
(add-to-list 'auto-mode-alist '("\\.cu\\'" . c++-mode))
(setq fill-column 80)
(setq text-mode-hook 'turn-on-auto-fill)
(setq default-major-mode 'text-mode)
(defun iwb ()
"indent whole buffer"
  • Remove all stopped containers.
docker rm $(docker ps -a -q)
  • Remove all exited containers
@1duo
1duo / how.to.mine.ethereum.classic.etc.ubuntu.md
Last active February 14, 2018 21:08
How to mine Ethereum Classic (ETC) with GTX 1070 and Linux Ubuntu.