-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tobias Gysi
committed
Feb 13, 2020
1 parent
36c7222
commit 678f862
Showing
19 changed files
with
208 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef MLIR_CONVERSION_STENCILTOSTANDARD_PASSES_H | ||
#define MLIR_CONVERSION_STENCILTOSTANDARD_PASSES_H | ||
|
||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h" | ||
#include "mlir/IR/Module.h" | ||
|
||
#include "mlir/Pass/Pass.h" | ||
|
||
namespace mlir { | ||
namespace stencil { | ||
|
||
std::unique_ptr<OpPassBase<ModuleOp>> createConvertStencilToStandardPass(); | ||
|
||
} // namespace stencil | ||
} // namespace mlir | ||
|
||
#endif // MLIR_CONVERSION_STENCILTOSTANDARD_PASSES_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
set(LLVM_TARGET_DEFINITIONS StencilOps.td) | ||
|
||
# Generate the class interfaces | ||
mlir_tablegen(StencilOps.h.inc -gen-op-decls) | ||
# Generate the actual implementation | ||
mlir_tablegen(StencilOps.cpp.inc -gen-op-defs) | ||
|
||
add_public_tablegen_target(MLIRStencilOpsIncGen) | ||
add_mlir_dialect(StencilOps StencilOps) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
|
||
if(OEC_GPU_LOWERING_ENABLED) | ||
set(LIBS | ||
|
||
MLIRIR | ||
MLIRStandardOps | ||
) | ||
|
||
add_llvm_library(OECGPUtoCUDATransforms | ||
ConvertLaunchFuncToCUDACalls.cpp | ||
ConvertKernelFuncToCubin.cpp | ||
IndexOptimizationPass.cpp | ||
set(LIBS | ||
MLIRGPU | ||
MLIRLLVMIR | ||
MLIRNVVMIR | ||
MLIRPass | ||
MLIRTargetNVVMIR | ||
) | ||
|
||
target_link_libraries(OECGPUtoCUDATransforms ${LIBS}) | ||
add_llvm_library(OECGPUtoCUDATransforms | ||
ConvertLaunchFuncToCUDACalls.cpp | ||
ConvertKernelFuncToCubin.cpp | ||
IndexOptimizationPass.cpp | ||
) | ||
|
||
target_include_directories(OECGPUtoCUDATransforms PUBLIC "${PROJECT_SOURCE_DIR}/include") | ||
target_include_directories(OECGPUtoCUDATransforms PUBLIC "${PROJECT_BINARY_DIR}/include") | ||
endif() | ||
target_link_libraries(OECGPUtoCUDATransforms ${LIBS}) | ||
target_include_directories(OECGPUtoCUDATransforms PUBLIC "${PROJECT_SOURCE_DIR}/include") | ||
target_include_directories(OECGPUtoCUDATransforms PUBLIC "${PROJECT_BINARY_DIR}/include") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.