MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / _setup_includes

Function _setup_includes

imperative/python/megengine/utils/custom_op_tools.py:412–418  ·  view source on GitHub ↗
(extra_include_paths: List[str], with_cuda: bool, with_cudnn: bool)

Source from the content-addressed store, hash-verified

410
411
412def _setup_includes(extra_include_paths: List[str], with_cuda: bool, with_cudnn: bool):
413 user_includes = [os.path.abspath(path) for path in extra_include_paths]
414 system_includes = _setup_sys_includes(with_cuda, with_cudnn)
415 if IS_WINDOWS:
416 user_includes += system_includes
417 system_includes.clear()
418 return user_includes, system_includes
419
420
421def _setup_common_cflags(user_includes: List[str], system_includes: List[str]):

Callers 1

buildFunction · 0.85

Calls 2

_setup_sys_includesFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected