Skip to content

Commit

Permalink
[Cleanup] Resolve comments
Browse files Browse the repository at this point in the history
This commit changes target 'tpp-check-all' or 'check-all' to
'check-tpp'. Also adds link libraries to TPPPipeline target.

Signed-off-by: Dmitrii Makarenko <[email protected]>
  • Loading branch information
Devjiu committed Apr 23, 2024
1 parent bd1ef82 commit 375afc8
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 31 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,3 @@ add_custom_target(reformat DEPENDS reformat-clang reformat-python)
add_custom_target(check-python ${CI_DIR}/lint-python.sh)
add_custom_target(check-clang ${CI_DIR}/lint-clang.sh)
add_custom_target(check-format DEPENDS check-clang check-python)

# Check-all is just check, for now
add_custom_target(tpp-check-all DEPENDS tpp-check)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ cmake -G Ninja .. \
-DLLVM_EXTERNAL_LIT=$CUSTOM_LLVM_ROOT/bin/llvm-lit \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++
cmake --build . --target tpp-check-all
cmake --build . --target check-tpp

popd
```
Expand Down
16 changes: 1 addition & 15 deletions lib/TPP/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,7 @@ add_mlir_library(TPPPipeline

LINK_LIBS PUBLIC
MLIRIR
MLIRMeshDialect
MLIRSupport
MLIRToLLVMIRTranslationRegistration
MLIRMPIDialect
MLIRMLProgramDialect
MLIRMLProgramTransforms
MLIRArithValueBoundsOpInterfaceImpl
MLIRAsyncTransforms
MLIRControlFlowTransforms
MLIRShapeOpsTransforms
MLIRSparseTensorTransforms
MLIRTensorDialect
MLIRTensorInferTypeOpInterfaceImpl
MLIRTosaDialect
MLIRTosaShardingInterfaceImpl
${mlir_dialect_libs}
${conversion_libs}
TPPGPU
)
6 changes: 0 additions & 6 deletions lib/TPP/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,13 @@ add_mlir_library(TPPTransforms
MLIRSupport
MLIRBufferizationToMemRef
MLIRBufferizationPipelines
# TPPTppDialect
TPPTransformsUtils
TPPIR
TPPXsmmDialect
TPPCheckToLoops
TPPLinalgToFunc
# TPPLinalgToTpp
# TPPLinalgToXSMM
# TPPMemRefToXSMM
TPPPerfToFunc
TPPPerfToLoop
# TPPTppToLoops
# TPPTppToXSMM
TPPXsmmToFunc
TPPLinalgXTransformOps
)
2 changes: 1 addition & 1 deletion lib/TPP/Transforms/ConstantFoldPack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ struct ConstantFoldPack
}
});

bool detectSpalt = false;
[[maybe_unused]] bool detectSpalt = false;
assert(DenseElementsAttr::isValidRawBuffer(packOp.getDestType(),
destRawData, detectSpalt));
auto newDense =
Expand Down
2 changes: 1 addition & 1 deletion scripts/buildkite/build_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ fi

# Check LLVM
echo "--- CHECK"
echo_run ninja -C ${LLVM_BUILD_DIR} tpp-check-all
echo_run ninja -C ${LLVM_BUILD_DIR} check-tpp
if [ $? != 0 ]; then
exit 1
fi
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source ${SCRIPT_DIR}/ci/common.sh
die_syntax() {
echo "Syntax: $0 -b BLD_DIR [-c] [-i] [-p] [-B]"
echo ""
echo " -c: Optional, runs tpp-check-all"
echo " -c: Optional, runs check-tpp"
echo " -i: Optional, installs"
echo " -p: Optional, post-install (copy all build stuff to install dir)"
echo " -B: Optional, runs benchmarks"
Expand All @@ -28,7 +28,7 @@ while getopts "b:cipB" arg; do
fi
;;
c)
TARGETS="${TARGETS} tpp-check-all"
TARGETS="${TARGETS} check-tpp"
;;
i)
TARGETS="${TARGETS} install"
Expand Down
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ set(TPP_OPT_TEST_DEPENDS
tpp-run
)

add_lit_testsuite(tpp-check "Running the regression tests"
add_lit_testsuite(check-tpp "Running the regression tests"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${TPP_OPT_TEST_DEPENDS}
)
set_target_properties(tpp-check PROPERTIES FOLDER "Tests")
set_target_properties(check-tpp PROPERTIES FOLDER "Tests")

add_lit_testsuites(TPP_OPT ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${TPP_OPT_TEST_DEPENDS})

0 comments on commit 375afc8

Please sign in to comment.