MCPcopy Create free account
hub / github.com/NVIDIA/cuda-tile / wrapper

Function wrapper

python/cuda_tile/dialects/cuda_tile_ops.py:1216–1225  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

1214
1215 @_wraps(opFunc)
1216 def wrapper(*args, **kwargs):
1217 loc = kwargs.pop("loc", None)
1218 if loc is None:
1219 frame = _inspect.currentframe().f_back
1220 file_loc = _ods_ir.Location.file(
1221 frame.f_code.co_filename, frame.f_lineno, 0
1222 )
1223 loc = _ods_ir.Location.name(frame.f_code.co_name, childLoc=file_loc)
1224 res_or_list = opFunc(*args, **kwargs, loc=loc)
1225 return res_or_list
1226
1227 return wrapper
1228

Callers

nothing calls this directly

Calls 1

_check_is_rhs_tileFunction · 0.85

Tested by

no test coverage detected