Coverage for src/flag_gems/runtime/backend/_cambricon/ops/ge.py: 0%
18 statements
« prev ^ index » next coverage.py v7.6.9, created at 2026-03-23 02:03 +0800
« prev ^ index » next coverage.py v7.6.9, created at 2026-03-23 02:03 +0800
1import logging
3import triton
5from ..utils.pointwise_dynamic import pointwise_dynamic
7logger = logging.getLogger("flag_gems").getChild(__name__.lstrip("."))
10@pointwise_dynamic(promotion_methods=[(0, 1, "ALWAYS_BOOL")])
11@triton.jit
12def ge_func(x, y):
13 return x >= y
16def ge(A, B):
17 logger.debug("GEMS_CAMBRICON GE")
18 return ge_func(A, B)
21@pointwise_dynamic(is_tensor=[True, False], promotion_methods=[(0, 1, "ALWAYS_BOOL")])
22@triton.jit
23def ge_func_scalar(x, y):
24 return x >= y
27def ge_scalar(A, B):
28 logger.debug("GEMS_CAMBRICON GE SCALAR")
29 return ge_func_scalar(A, B)