Swizzling is no longer implemented as a separate pass. It is instead done in a specialized constructor of SharedEncodingAttr, and tested via google tests instead of triton-opt + filecheck. In the future we may want to implement it as a pass again once we have an additional dialect between TritonGPU and LLVM.
30 lines
651 B
CMake
30 lines
651 B
CMake
|
|
include (${CMAKE_CURRENT_SOURCE_DIR}/googletest.cmake)
|
|
|
|
include(GoogleTest)
|
|
enable_testing()
|
|
|
|
function(add_triton_ut)
|
|
set(options)
|
|
set(oneValueArgs NAME)
|
|
set(multiValueArgs SRCS LIBS)
|
|
cmake_parse_arguments(_ "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
|
add_test(NAME ${__NAME}
|
|
COMMAND ${__NAME})
|
|
add_executable(
|
|
${__NAME}
|
|
${__SRCS})
|
|
target_link_libraries(
|
|
${__NAME}
|
|
PRIVATE
|
|
GTest::gtest_main
|
|
gmock
|
|
${__LIBS})
|
|
|
|
gtest_discover_tests(${__NAME})
|
|
endfunction()
|
|
|
|
add_subdirectory(Analysis)
|
|
add_subdirectory(Conversion)
|
|
add_subdirectory(Dialect)
|