tilelang.contrib.msvc¶
Functions¶
|
|
Resolve the preferred Windows host compiler. |
|
Return the resolved MSVC subprocess environment. |
|
|
Module Contents¶
- tilelang.contrib.msvc.get_env_path(compiler_env)¶
- Parameters:
compiler_env (dict[str, str])
- Return type:
str | None
- tilelang.contrib.msvc.get_windows_compiler()¶
Resolve the preferred Windows host compiler.
Returns
(path, kind)wherekindis"clang-cl"or"msvc". Set theTILELANG_DISABLE_CLANG_CLenv var to force the legacycl.exepath.- Return type:
tuple[str | None, str | None]
- tilelang.contrib.msvc.get_msvc_subprocess_env()¶
Return the resolved MSVC subprocess environment.
Memoized via
functools.cache()(matchingcontrib/cc.pyandcache/kernel_cache.py). Concurrent first callers may each spawnvswhere.exe/VsDevCmd.batonce;functools.cachekeeps only the winning result. Subsequent calls hit the cache directly with no locking.- Return type:
dict[str, str] | None
- tilelang.contrib.msvc.get_msvc_environment_error()¶
- Return type:
str | None
- Parameters:
output (str)