-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: Expand CUDA Toolkit Matrix (#1111)
* (ci) build with wider CUDA version matrix * (ci) build with wider CUDA version matrix * (ci) skip sm_89 target on CUDA 11.7 * (ci) skip sm_90 target on CUDA 11.8 * modify workflow to publish to test.pypi * (build) Test for manylinux_2_24 build on GH actions * (build) got that backwards. * try fixing manual triggering condition for testpypi * try if Ubuntu 18.04 is an easy fix to allow for `manylinux_2_24` compatibility * hardcode publish step to run to test publishing * set ubuntu to newest supported version * try statically linking libstdc++ to achieve manylinux_2_18 * last commit only brought us to manylinux_2_34, reverse * add misssing permission for publishing to pypi * snake case deprecated in favor of kebab * downgrade cuda ubuntu aiming for manylinux_2_24 * add step to upgrade cmake due to old Ubuntu for CUDA build * adjust path to prefer pip installed cmake * (cmake) set CMAKE_BUILD_TYPE=Release if unspecified * default to CMAKE_BUILD_TYPE Release for optimized releases and better many_linux compatibility * (build) back to ubuntu22.04 docker images * verify Cmake in separte step * add clarifying comment about Python version compatibility * (build) we don't need cmake for wheel step * fixup testpypi publish to run in PR for testing * add pypi publishing when tagged on main * add functionality to rewrite platform tags * (ci) adjust platform tags for wheels * fix for windows, get order right. * fix for windows, get order right. * (build) slim down those fatbins on windows cuda * sloppy * remove broken PyPi upload for now --------- Co-authored-by: Titus von Koeller <9048635+Titus-von-Koeller@users.noreply.github.com>
- Loading branch information
1 parent
ac5d6ee
commit 1cfc277
Showing
3 changed files
with
64 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import argparse | ||
import platform | ||
import sys | ||
|
||
|
||
def get_platform_tag(architecture): | ||
system = platform.system() | ||
|
||
if system == "Linux": | ||
tag = ( | ||
"manylinux_2_24_x86_64" if architecture == "x86_64" else "manylinux_2_24_aarch64" | ||
) | ||
elif system == "Darwin": | ||
tag = "macosx_13_1_x86_64" if architecture == "x86_64" else "macosx_13_1_arm64" | ||
elif system == "Windows": | ||
tag = "win_amd64" if architecture == "x86_64" else "win_arm64" | ||
else: | ||
sys.exit(f"Unsupported system: {system}") | ||
|
||
return tag | ||
|
||
|
||
def main(): | ||
parser = argparse.ArgumentParser(description="Determine platform tag.") | ||
parser.add_argument("arch", type=str, help="Architecture (e.g., x86_64, aarch64)") | ||
args = parser.parse_args() | ||
|
||
tag = get_platform_tag(args.arch) | ||
|
||
print(tag) # This will be captured by the GitHub Actions workflow | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |