This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CUDA Device Query (Runtime API) version (CUDART static linking) | |
Detected 1 CUDA Capable device(s) | |
Device 0: "GeForce GTX 1080 Ti" | |
CUDA Driver Version / Runtime Version 8.0 / 8.0 | |
CUDA Capability Major/Minor version number: 6.1 | |
Total amount of global memory: 11171 MBytes (11713708032 bytes) | |
(28) Multiprocessors, (128) CUDA Cores/MP: 3584 CUDA Cores | |
GPU Max Clock rate: 1582 MHz (1.58 GHz) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 3.6.4 |Anaconda custom (64-bit)| (default, Mar 12 2018, 20:05:31) | |
Type 'copyright', 'credits' or 'license' for more information | |
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help. | |
In [1]: import numpy as np | |
In [2]: import obspy | |
In [3]: data = np.random.randn(6000, 3, 2000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Suorce: https://news.ycombinator.com/item?id=11071754 | |
repo="https://github.com/lijunzh/dotfiles.git" | |
# Uncomment if initiate a new dotfiles bare repo | |
# git init --bare $HOME/.cfg | |
# Uncomment if install existing dotfiles repo | |
git clone --bare ${repo} ~/.cfg | |
# Set temporary config commend, alias should be added in .bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INSTALL_DIR=${HOME}/conda | |
INSTALL_SH='conda.sh' | |
# determin OS | |
OS=$(uname -s) | |
CONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-${OS/Darwin/MacOSX}-$(uname -m).sh" | |
# download installation file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pytorch | |
channels: | |
- pytorch | |
dependencies: | |
- pip | |
- pytorch | |
- torchvision | |
- cudatoolkit=10.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class bcolors: | |
HEADER = '\033[95m' | |
OKBLUE = '\033[94m' | |
OKGREEN = '\033[92m' | |
WARNING = '\033[93m' | |
FAIL = '\033[91m' | |
ENDC = '\033[0m' | |
BOLD = '\033[1m' | |
UNDERLINE = '\033[4m' | |