Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt generate binary build matrix to call via main (#1088)
Following improvements/modifications are done: Related to this PR: pytorch/pytorch#88997 1. Adopt to use passs arguments via main so we can call the script in this way: ``` for osys in OperatingSystem: release_matrix[osys] = {} for package in PackageType: command=["--channel", CHANNEL, "--operating-system", osys.value, "--package-type", package.value] if osys == OperatingSystem.MACOS_ARM64 and package == PackageType.LIBTORCH: continue elif osys == OperatingSystem.LINUX and package == PackageType.WHEEL: command+=["--with-py311", ENABLE, "--with-pypi-cudnn", ENABLE] f = io.StringIO() with redirect_stdout(f): generate_binary_build_matrix.main(command) release_matrix[osys][package] = json.loads(f.getvalue())["include"] ``` 2. Pass with-pypi-cudnn and with-py311 only to generate wheel. Since these parameter are for wheel only. 3. Add with-pypi-cudnn argument to main 4. Fix MacOS abi_versions = [PRE_CXX11_ABI, CXX11_ABI] , since we do have these builds [HUD](https://hud.pytorch.org/hud/pytorch/pytorch/nightly/1?per_page=50&name_filter=macos-binary-lib)
- Loading branch information