File tree Expand file tree Collapse file tree 4 files changed +22
-10
lines changed
test/mlir/test/gc/Transforms/GPU Expand file tree Collapse file tree 4 files changed +22
-10
lines changed Original file line number Diff line number Diff line change
1
+ set (GC_ALL_LIBS
2
+ MLIROneDNNGraph
3
+ MLIRCPURuntimeDialect
4
+ GCPasses
5
+ MLIRCPURuntimeTransforms )
6
+
7
+ if (GC_USE_GPU )
8
+ list (APPEND GC_ALL_LIBS GCGPUPasses )
9
+ endif ()
10
+
1
11
add_mlir_public_c_api_library (GcCAPI
2
12
Dialects.cpp
3
13
Passes.cpp
4
14
LINK_LIBS PUBLIC
5
- MLIROneDNNGraph
6
- MLIRCPURuntimeDialect
7
- GCPasses
8
- GCGPUPasses
9
- MLIRCPURuntimeTransforms
15
+ ${GC_ALL_LIBS}
10
16
)
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ else()
26
26
)
27
27
endif ()
28
28
29
+ set (GC_PASSES GCPasses )
30
+ if (GC_USE_GPU )
31
+ list (APPEND GC_PASSES GCGPUPasses )
32
+ endif ()
33
+
29
34
add_mlir_library (GCJitWrapper
30
35
Driver.cpp
31
36
@@ -36,7 +41,6 @@ add_mlir_library(GCJitWrapper
36
41
${MLIR_LINK_COMPONENTS}
37
42
${dialect_libs}
38
43
${conversion_libs}
39
- GCPasses
40
- GCGPUPasses
44
+ ${GC_PASSES}
41
45
)
42
46
Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ set(gc_opt_libs
33
33
${dialect_libs}
34
34
${conversion_libs}
35
35
${MLIR_LINK_COMPONENTS}
36
- GCPasses
37
- GCGPUPasses )
36
+ GCPasses )
38
37
39
38
if (GC_USE_GPU )
40
39
add_definitions (-DGC_USE_GPU=1 )
41
40
get_property (IMEX_INCLUDES GLOBAL PROPERTY IMEX_INCLUDES )
42
41
include_directories (${IMEX_INCLUDES} )
43
42
list (APPEND gc_opt_libs IMEXGPUXDialect IMEXXeTileDialect IMEXRegionDialect IMEXRegionTransforms
44
- IMEXTransforms IMEXGPUToGPUX IMEXGPUToSPIRV IMEXGPUXToLLVM IMEXXeGPUToVC IMEXXeTileToXeGPU IMEXUtil )
43
+ IMEXTransforms IMEXGPUToGPUX IMEXGPUToSPIRV IMEXGPUXToLLVM IMEXXeGPUToVC IMEXXeTileToXeGPU IMEXUtil
44
+ GCGPUPasses )
45
45
endif ()
46
46
if (GC_MLIR_CXX_FLAGS )
47
47
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GC_MLIR_CXX_FLAGS} " )
Original file line number Diff line number Diff line change
1
+ if not config.gc_use_gpu:
2
+ config.unsupported = True
You can’t perform that action at this time.
0 commit comments