Skip to content

Commit

Permalink
[NFC] Code refactoring (#2035)
Browse files Browse the repository at this point in the history
Signed-off-by: Whitney Tsang <whitney.tsang@intel.com>
  • Loading branch information
whitneywhtsang authored Aug 28, 2024
1 parent b66d768 commit 9bae178
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions bin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ target_link_libraries(triton-llvm-opt PRIVATE
)
export_executable_symbols_for_plugins(triton-llvm-opt)


add_llvm_executable(triton-tensor-layout triton-tensor-layout.cpp PARTIAL_SOURCES_INTENDED)
target_link_libraries(triton-tensor-layout PRIVATE
TritonGPUIR
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def setup_generated_mlir_docs():

rst_string = f"""
Triton MLIR Dialects and Ops
============================
=====================
.. toctree::
:maxdepth: 1
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Python API


Triton MLIR Dialects and Ops
----------------------------
--------------------

- :doc:`Triton MLIR Dialects and Ops <dialects/dialects>`

Expand Down
1 change: 0 additions & 1 deletion include/triton/Conversion/TritonToTritonGPU/Passes.td
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ def ConvertTritonToTritonGPU: Pass<"convert-triton-to-tritongpu", "mlir::ModuleO
];
}


#endif
2 changes: 1 addition & 1 deletion third_party/nvidia/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include)
add_subdirectory(include)
add_subdirectory(lib)
if(TRITON_BUILD_PYTHON_MODULE AND NOT DEFINED NVIDIA_DIALECTS_ONLY)
if(TRITON_BUILD_PYTHON_MODULE)
add_triton_plugin(TritonNVIDIA ${CMAKE_CURRENT_SOURCE_DIR}/triton_nvidia.cc LINK_LIBS TritonNVIDIAGPUToLLVM NVGPUToLLVM)
endif()
4 changes: 1 addition & 3 deletions unittest/Conversion/TritonGPUToLLVM/PTXAsmFormatTest.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#include "intel/include/TritonIntelGPUToLLVM/PTXAsmFormat.h"
#include "nvidia/include/TritonNVIDIAGPUToLLVM/PTXAsmFormat.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/IR/Builders.h"
#include "triton/Dialect/Triton/IR/Dialect.h"
#include "llvm/Support/Signals.h"

#include <gtest/gtest.h>

using ::mlir::triton::intel::PTXBuilder;

namespace mlir {
namespace triton {
class PTXAsmFormatTest : public ::testing::Test {
Expand Down

0 comments on commit 9bae178

Please sign in to comment.