Skip to content

Instantly share code, notes, and snippets.

@taless474
Created May 20, 2020 16:36
Show Gist options
  • Save taless474/78a359fbfd902cea76a141821df9b6bd to your computer and use it in GitHub Desktop.
Save taless474/78a359fbfd902cea76a141821df9b6bd to your computer and use it in GitHub Desktop.
Using stellargroup/phylanx_base image
docker pull stellargroup/phylanx_base:prerequisites
docker run --rm -it --security-opt seccomp=unconfined -v C:\Repos\:/repos stellargroup/phylanx_base:prerequisites bash
# to get the blaze_tensor from the repo:
# git clone https://github.com/STEllAR-GROUP/blaze_tensor.git --depth=1 /blaze_tensor
cmake -H/repos/blaze_tensor -B/blaze_tensor/build
cmake --build /blaze_tensor/build --target install
# to test a branch on the repo:
# git clone --depth=1 --branch=dist_dot1d2d https://github.com/stellar-group/phylanx.git /phylanx
cmake -H/repos/phylanx -B/phylanx/build -GNinja \
-DPHYLANX_WITH_GIT_COMMIT=${CIRCLE_SHA1} \
-DPHYLANX_WITH_TOOLS=ON \
-DHPX_DIR=/usr/local/lib/cmake/HPX \
-Dblaze_DIR=/blaze/share/blaze/cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_C_COMPILER=clang \
-DPHYLANX_WITH_HIGHFIVE=ON \
-DPHYLANX_WITH_ITERATIVE_SOLVERS=ON \
-DPHYLANX_WITH_CXX17=ON
cmake --build /phylanx/build --target core
# samples of building tests:
cmake --build /phylanx/build --target tests.performance.dist_cannon_4_loc
cmake --build /phylanx/build --target tests.regressions.execution_tree_dir.random_d_1139
cmake --build /phylanx/build --target tests.unit.plugins.dist_matrixops
cmake --build /phylanx/build --target tests.unit.plugins.dist_matrixops.dist_constant_2_loc
cmake --build /phylanx/build --target tests.unit.plugins.dist_matrixops.dist_slice_3_loc
cmake --build /phylanx/build --target tests.unit.plugins.keras_support.max_pool2d_operation
cmake --build /phylanx/build --target tests.unit.execution_tree.annotation_2_loc
cmake --build /phylanx/build --target tests.unit.algorithm
cd phylanx/build
# samples of running the tests:
ctest --output-on-failure -R tests.unit.performance.distributed.tcp.dist_cannon_4_loc
ctest --output-on-failure -R tests.unit.plugins.keras_support.max_pool2d_operation
ctest --output-on-failure -R tests.unit.execution_tree.distributed.tcp.annotation_2_loc
# sample of running test verbose
ctest -V -R tests.regressions.execution_tree.distributed.tcp.random_d_1139
ctest -V -R tests.unit.plugins.dist_matrixops.distributed.tcp.dist_constant_2_loc
ctest -V -R tests.unit.plugins.dist_matrixops.distributed.tcp.dist_slice_3_loc
# to search a test by name
ctest -N -R part_of_name
# to run the inspect tool and having the result as an html file:
cmake --build phylanx/build -- tools.inspect
/phylanx/build/bin/inspect --all --output=/repos/phylanx/phylanx_inspect_report.html /repos/phylanx
# to run the flake8 formatting:
flake8 \
--config=tools/flake8/config.ini \
--tee \
--output-file=/repos/phylanx/phylanx_flake8_report.txt /repos/phylanx \
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment