Optimized dataflow operations
- More detailed of of twisterx
- Compling Install OpenMPI Requirements CPP Python Java
- Examples One CPP example One Python example One Java example
wget https://github.com/Kitware/CMake/releases/download/v3.16.5/cmake-3.16.5.tar.gz
tar zxf cmake-3.16.5.tar.gz
./bootstrap --system-curl
make
sudo make install
If you're using a virtual environment, make sure to set the virtual environment path.
Or you can specify /usr as the path if you're installing in the system path.
Create a virtual environment
cd /home/<username>/build/twisterx
python3 -m venv ENV
Here after we assume your Python ENV path is,
/home/<username>/build/twisterx/ENV
Note: User must install Pyarrow with the TwisterX build to use TwisterX APIs.
Do not use a prior installed pyarrow in your python environment.
Uninstall it before running the setup.
./build.sh -pyenv ${PYTHON_ENV_PATH} -bpath ${TWIXTER_BUILD_DIR} --all
Example:
./build.sh -pyenv /home/<username>/build/twisterx/ENV -bpath /home/<username>/build/twisterx/build --all
or
./build.sh -pyenv /usr -bpath /home/<username>/build/twisterx/build --all
./build.sh -bpath /home/<username>/build/twisterx/build --cpp
If you want to build each module separately make sure you build in the following order
/build.sh -bpath /home/vibhatha/build/twisterx/build --cpp
/build.sh -pyenv /home/vibhatha/build/twisterx/ENV -bpath /home/vibhatha/build/twisterx/build --pyarrow
/build.sh -pyenv /home/vibhatha/build/twisterx/ENV -bpath /home/vibhatha/build/twisterx/build --python
Note: The default build mode is debug
If you want to change the build modes, do the following
./build.sh -bpath /home/<username>/build/twisterx/build --cpp --release
./build.sh -bpath /home/<username>/build/twisterx/build --cpp --debug
TwisterX provides Python APIs with Cython.
If you're building for the first time, you can use --all
option in build.
If you'have already built cpp and want to compile the your changes to the API,
do the following,
./build.sh -pyenv /home/<username>/build/twisterx/ENV -bpath /home/<username>/build/twisterx/build --python
Before running the code in the base path of the cloned repo
run the following command. Or add this to your bashrc
.
export LD_LIBRARY_PATH=/home/<username>/twisterx/build/arrow/install/lib:/home/<username>/twisterx/build/lib:$LD_LIBRARY_PATH
- Test Python API
python3 python/test/test_pytwisterx.py