@@ -70,6 +70,7 @@ if(APPLE)
7070 set (PANFROST_SUPPORT_DEFAULT OFF )
7171 set (PANTHOR_SUPPORT_DEFAULT OFF )
7272 set (ASCEND_SUPPORT_DEFAULT OFF )
73+ set (METAX_SUPPORT_DEFAULT OFF )
7374elseif (ASCEND_SUPPORT)
7475 set (APPLE_SUPPORT_DEFAULT OFF )
7576 set (NVIDIA_SUPPORT_DEFAULT OFF )
@@ -79,6 +80,7 @@ elseif(ASCEND_SUPPORT)
7980 set (PANFROST_SUPPORT_DEFAULT OFF )
8081 set (PANTHOR_SUPPORT_DEFAULT OFF )
8182 set (ASCEND_SUPPORT_DEFAULT ON )
83+ set (METAX_SUPPORT_DEFAULT OFF )
8284else ()
8385 set (APPLE_SUPPORT_DEFAULT OFF )
8486 set (NVIDIA_SUPPORT_DEFAULT ON )
8991 set (PANFROST_SUPPORT_DEFAULT ON )
9092 set (PANTHOR_SUPPORT_DEFAULT ON )
9193 set (ASCEND_SUPPORT_DEFAULT OFF )
94+ set (METAX_SUPPORT_DEFAULT ON )
9295endif ()
9396
9497# TPU support is only available on Linux
@@ -128,6 +131,7 @@ option(ASCEND_SUPPORT "Build support for Ascend NPUs through Ascend DCMI" ${ASCE
128131option (V3D_SUPPORT "Build support for Raspberrypi through v3d" ${V3D_SUPPORT_DEFAULT} )
129132option (TPU_SUPPORT "Build support for Google TPUs through GRPC" ${TPU_SUPPORT_DEFAULT} )
130133option (ROCKCHIP_SUPPORT "Enable support for Rockchip NPU" ${ROCKCHIP_SUPPORT_DEFAULT} )
134+ option (METAX_SUPPORT "Build support for MetaX GPUs through libmxsml" ${METAX_SUPPORT_DEFAULT} )
131135
132136add_subdirectory (src )
133137
0 commit comments