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 / 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.
@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 / 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 / tensorrt.v100.md
Last active June 8, 2018 01:01
TensorRT Performance on NVIDIA Volta V100 GPU.

TensorRT Performance on NVIDIA Volta V100 GPU

Ubuntu16.04, CUDA9.0, CUDNN7, Python2.7, TensorRT4.0.0.3, ResNet50 trained using Caffe.

Floating Point 32

BatchSize DataType Elapsed Images/sec
1 FP32 2.67725 373.517602016995
2 FP32 4.08289 489.849101984134
@1duo
1duo / ubuntu.install.libjpeg-turbo.from.source.md
Created June 25, 2018 18:24
Install libjpeg-turbo from source on Linux Ubuntu.
sudo apt install -y nasm
wget https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-1.5.2.tar.gz
tar xvf libjpeg-turbo-1.5.2.tar.gz && cd libjpeg-turbo-1.5.2
@1duo
1duo / centos.install.nvidia.driver.md
Created June 25, 2018 19:04
Install NVIDIA driver on Linux CentOS 7.

Uninstall if you have old version installed:

nvidia-uninstall

Install dependencies:

yum -y update
import numpy as np
import tensorflow as tf


# np.set_printoptions(threshold=np.nan)


def run(x, w, pad='SAME', stride=(1, 1)):
 xx = tf.constant(x, dtype='float32')
@1duo
1duo / centos.install.horovod.md
Created July 25, 2018 21:13
Install Uber's Horovod distributed training framework for TensorFlow, Keras, and PyTorch on CentOS 7.

CentOS7, Python 2.7, CUDA 9.1, OpenMPI 3.10.0.

  • Install dependencies:
yum groupinstall -y "Development Tools"
yum install -y epel-release
yum install -y python-pip python-devel wget
@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"