Skip to content

Commit 9658857

Browse files
authored
[Build] fix issue when GC_DEV_LINK_LLVM_DYLIB is ON (#328)
1 parent 9f9e5aa commit 9658857

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/gc/Transforms/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ add_subdirectory(Utils)
33
gc_set_mlir_link_components(MLIR_LINK_COMPONENTS
44
MLIRIR
55
MLIRSupport
6-
MLIRMicrokernelTransforms
76
MLIRBufferizationToMemRef
87
MLIRBufferizationPipelines)
98

@@ -37,6 +36,7 @@ gc_add_mlir_library(GcPasses
3736
${MLIR_LINK_COMPONENTS}
3837
${GC_ONEDNN_DIALECT_LIB_NAME}
3938
GcInterface
39+
MLIRMicrokernelTransforms
4040
)
4141

4242
if(GC_ENABLE_IMEX)

lib/gc/Transforms/Microkernel/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
gc_set_mlir_link_components(MLIR_LINK_COMPONENTS MLIRIR MLIRMicrokernel)
1+
gc_set_mlir_link_components(MLIR_LINK_COMPONENTS MLIRIR)
22

33
include(onednn)
44

5-
gc_add_mlir_dialect_library(MLIRMicrokernelTransforms
5+
gc_add_mlir_library(MLIRMicrokernelTransforms
66
ConvertLinalgToMicrokernel.cpp
77
ExpandMicrokernel.cpp
88
ConvertMicrokernelToDnnlFunc.cpp
@@ -20,6 +20,7 @@ gc_add_mlir_dialect_library(MLIRMicrokernelTransforms
2020
${MLIR_LINK_COMPONENTS}
2121
GcInterface
2222
GcUtilsIR
23+
MLIRMicrokernel
2324
)
2425

2526
get_property(GC_DNNL_INCLUDES GLOBAL PROPERTY GC_DNNL_INCLUDES)

test/benchgc/src/benchgc/mlir/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ def attach_dlti(flags: argparse.Namespace, module: ir.Module):
195195
#dlti.dl_entry<"max_vector_width", {max_vector_width} : i64>>
196196
>}} {{}}
197197
"""
198-
print(dlti_template)
199198
with module.context:
200199
template_module = ir.Module.parse(dlti_template)
201200
module.operation.attributes["dlti.target_system_spec"] = (

0 commit comments

Comments
 (0)