torch-mlir/build_tools
Sayan Saha 09cdbe4c47
Disable building STABLEHLO and specify USE_MATH_DEFINES for windows builds. (#3805)
I'm trying to build python wheel for windows similar to as done for
linux in https://github.com/llvm/torch-mlir-release/ however turns out
the build process on windows is broken without the following fixes:

1. Building stablehlo for windows fails due to
https://github.com/openxla/stablehlo/issues/1772 -- so disabling
stablehlo in `build_windows_ci.sh` that will be used for building the
python wheels.

2. Add `USE_MATH_DEFINES` to resolve
`torch-mlir\lib\Conversion\TorchOnnxToTorch\DefaultDomainGtoP.cpp(709):
error C2065: 'M_LOG10E': undeclared identifier`
2024-10-18 12:04:37 -07:00
..
ci [ci] enable fx_importer2stablehlo ci test (#3698) 2024-09-11 09:53:23 +08:00
cmake Breakup python pytorch deps (#2582) 2023-11-19 12:10:19 -08:00
docker Dockerize CI + Release builds (#1234) 2022-08-30 11:07:25 -07:00
python_deploy Disable building STABLEHLO and specify USE_MATH_DEFINES for windows builds. (#3805) 2024-10-18 12:04:37 -07:00
autogen_ltc_backend.py [NFC reformat] Applies pre-commit formatting to Python files. (#3244) 2024-04-27 14:16:31 -07:00
autogen_ltc_backend.yaml [LTC] Support torch.ones/zeros/arange ops (#2440) 2023-09-21 13:25:14 -04:00
build_libtorch.sh Fix typos in comments (#2539) 2023-10-31 20:10:47 -07:00
build_python_wheels.sh build: improve robustness of cmake and shell scripts (#1018) 2022-07-06 14:39:30 -07:00
build_standalone.sh Re-organize project structure to separate PyTorch dependencies from core project. (#2542) 2023-11-02 19:45:55 -07:00
e2eshark_build.sh Create e2eshark_build.sh (#3062) 2024-03-26 16:37:54 -07:00
scrape_releases.py [NFC] Update black version (#3256) 2024-04-29 11:06:01 +08:00
update_abstract_interp_lib.sh Disable TORCH_MLIR_ENABLE_JIT_IR_IMPORTER and TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS by default (#3693) 2024-09-09 22:58:27 -07:00
update_torch_ods.sh Disable TORCH_MLIR_ENABLE_JIT_IR_IMPORTER and TORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS by default (#3693) 2024-09-09 22:58:27 -07:00
write_env_file.sh Update PYTHONPATH in development.md (#2644) 2023-12-18 22:46:55 -08:00