Skip to content

Instantly share code, notes, and snippets.

View randyzwitch's full-sized avatar

Randy Zwitch randyzwitch

View GitHub Profile
@randyzwitch
randyzwitch / run-tests-gpu.sh
Created January 18, 2019 21:28
Sanity test for OmniSci Core GPU compiling
100% tests passed, 0 tests failed out of 14
Label Time Summary:
sanity = 736.19 sec (14 tests)
Total Test time (real) = 736.20 sec
[100%] Built target sanity_tests
@randyzwitch
randyzwitch / compile-omnisci-gpu.sh
Last active May 15, 2019 14:49
Compile OmniSci with GPU support
# build OmniSci
mkdir /omniscidb/build && cd /omniscidb/build
cmake -DCMAKE_BUILD_TYPE=debug ..
make -j 4
@randyzwitch
randyzwitch / validate-cuda.sh
Created January 18, 2019 21:01
Validate NVIDIA CUDA tools installed
# check that nvidia-smi and nvcc present
root@f8939f380786:/# nvidia-smi
Fri Jan 18 17:22:08 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 415.27 Driver Version: 415.27 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 108... Off | 00000000:01:00.0 Off | N/A |
@randyzwitch
randyzwitch / run-nvidia-docker.sh
Created January 18, 2019 19:37
NVIDIA Docker image
# install nvidia-docker2 https://github.com/NVIDIA/nvidia-docker
# run image interactively
docker run -it --runtime=nvidia --rm nvidia/cuda:9.2-devel-ubuntu16.04 bash
@randyzwitch
randyzwitch / success.sh
Last active January 16, 2019 18:52
Example of OmniSci Core tests passing
100% tests passed, 0 tests failed out of 14
Label Time Summary:
sanity = 358.99 sec (14 tests)
Total Test time (real) = 359.00 sec
[100%] Built target sanity_tests
@randyzwitch
randyzwitch / run-tests.sh
Last active May 30, 2019 19:55
Run OmniSci Core Sanity Tests
#run from omniscidb/build directory
make sanity_tests
@randyzwitch
randyzwitch / compile-omnisci.sh
Last active May 15, 2019 14:48
Compile OmniSci Core using cmake
# build OmniSci
mkdir /omniscidb/build && cd /omniscidb/build
cmake -DCMAKE_BUILD_TYPE=debug -DENABLE_CUDA=off ..
make -j 4
@randyzwitch
randyzwitch / install-deps.sh
Last active May 15, 2019 14:47
Build OmniSci dependencies for Ubuntu 16.04 LTS
# clone mapd-core and run dependency script
git clone https://github.com/omnisci/omniscidb.git
bash /omniscidb/scripts/mapd-deps-ubuntu1604.sh
source /usr/local/mapd-deps/mapd-deps.sh
@randyzwitch
randyzwitch / update-deps.sh
Created January 16, 2019 14:03
Update Docker Ubuntu 16.04 LTS image for OmniSci dependencies
# update image
apt update && apt upgrade -y
# sudo only needed because its used inside of dependency install script
# software-properties-common allows for add-apt-repository
# git needed for cloning mapd-core repo
apt install git sudo software-properties-common -y
@randyzwitch
randyzwitch / run-docker.sh
Last active January 16, 2019 14:04
Run Docker Ubuntu 16.04LTS image interactively
# run image interactively
docker run -it amd64/ubuntu:16.04 bash