2019-04-03 16:10:52 +08:00
|
|
|
# Vecwise Engine Dev Guide
|
2019-03-19 20:04:15 +08:00
|
|
|
|
2019-04-03 16:10:52 +08:00
|
|
|
## Install via Conda
|
|
|
|
1. Install Miniconda first
|
|
|
|
- `bash vecwise_engine/install/miniconda.sh`
|
2019-03-19 20:04:15 +08:00
|
|
|
|
2019-04-03 16:10:52 +08:00
|
|
|
2. Create environment
|
|
|
|
- `conda env create -f vecwise_engine/environment.yaml`
|
2019-03-20 11:54:33 +08:00
|
|
|
|
2019-04-03 16:10:52 +08:00
|
|
|
3. Test your installation
|
2019-03-20 11:54:33 +08:00
|
|
|
|
2019-04-03 16:10:52 +08:00
|
|
|
## Install via Docker
|
|
|
|
|
|
|
|
1. Install nvidia-docker
|
|
|
|
|
|
|
|
2. `docker build -t cuda9.0/VecEngine .`
|
|
|
|
|
|
|
|
3. `docker run -it cuda9.0/VecEngine bash`
|
|
|
|
|
|
|
|
|
|
|
|
## Create Database
|
|
|
|
1. Install MySQL
|
2019-03-20 11:54:33 +08:00
|
|
|
- `sudo apt-get update`
|
|
|
|
- `sudo apt-get install mariadb-server`
|
|
|
|
|
2019-04-03 16:10:52 +08:00
|
|
|
2. Create user and database:
|
2019-03-20 11:54:33 +08:00
|
|
|
- `create user vecwise;`
|
|
|
|
- `create database vecdata;`
|
|
|
|
- `grant all privileges on vecdata.* to 'vecwise'@'%';`
|
|
|
|
- `flush privileges;`
|
|
|
|
|
2019-04-03 16:10:52 +08:00
|
|
|
3. Create table:
|
|
|
|
- `cd vecwise_engine/pyengine && python manager.py create_all`
|