zuochunwei / gluten-te

Portable test envrionment of Gluten

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Portable Test Envrionment of Gluten (gluten-te)

Build and run gluten and gluten-it in a portable docker container, from scratch.

Prerequisites

Only Linux and MacOS are currently supported. Before running the scripts, make sure you have git and docker installed in your host machine.

Getting Started (Build Gluten code, Velox backend)

git clone -b main https://github.com/zhztheplayer/gluten.git gluten # Gluten main code
git clone -b main https://github.com/zhztheplayer/gluten-te.git gluten-te # gluten-te code

export HTTP_PROXY_HOST=myproxy.example.com # in case you are behind http proxy
export HTTP_PROXY_PORT=55555 # in case you are behind http proxy

cd gluten/
../gluten-te/examples/buildhere-veloxbe.sh

Getting Started (TPC, Velox backend)

git clone -b main https://github.com/zhztheplayer/gluten-te.git gluten-te

export HTTP_PROXY_HOST=myproxy.example.com # in case you are behind http proxy
export HTTP_PROXY_PORT=55555 # in case you are behind http proxy

cd gluten-te
./tpc.sh

Configurations

See the config file. You can modify the file to configure gluten-te, or pass env variables during running the scripts.

Example Usages

Example: Build local Gluten code (Velox backend)

cd gluten/
{PATH_TO_GLUTEN_TE}/examples/buildhere-veloxbe.sh

Example: Build local Gluten code behind a http proxy (Velox backend)

cd gluten/
HTTP_PROXY_HOST=myproxy.example.com \
HTTP_PROXY_PORT=55555 \
{PATH_TO_GLUTEN_TE}/examples/buildhere-veloxbe.sh

Example: Run specific maven commands

cd gluten/

# To use cmvn.sh as the containerized "mvn" alias
# For example, here we display the maven dependency tree
{PATH_TO_GLUTEN_TE}/cmvn.sh clean dependency:tree

Example: Build and run TPC benchmark on non-default remote branches of Gluten (Velox backend)

TARGET_GLUTEN_REPO=my_repoh \
TARGET_GLUTEN_BRANCH=my_branch \
./tpc.sh

Example: Build and run TPC benchmark on official latest code behind a http proxy (Velox backend)

HTTP_PROXY_HOST=myproxy.example.com \
HTTP_PROXY_PORT=55555 \
./tpc.sh

Example: Create debug build for all codes, and open a GDB debugger interface during running gluten-it (Velox backend)

DEBUG_BUILD=ON \
RUN_GDB=ON \
./tpc.sh

About

Portable test envrionment of Gluten


Languages

Language:Shell 100.0%