-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This creates a wheel in the pypi test repository. It is OSX only (or whatever architecture you run it on) so it is not ready for prime time, but can be used for demos and gives the guts of what a real solution will look like.
- Loading branch information
Showing
6 changed files
with
79 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ __pycache__/ | |
*.so | ||
*.dSYM | ||
/.vscode/ | ||
.wheel/ |
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,25 @@ | ||
#!/bin/bash | ||
set -e -u -o pipefail | ||
trap "kill 0" SIGINT SIGTERM | ||
|
||
ROOT=$(dirname $(dirname $(readlink -f $0))) | ||
WHEEL_DIR=$ROOT/.wheel/klr | ||
rm -rf $WHEEL_DIR | ||
mkdir -p $WHEEL_DIR/klr/bin | ||
lake build | ||
cp $ROOT/.lake/build/bin/klr $WHEEL_DIR/klr/bin/klr | ||
cp -R $ROOT/interop/nki $WHEEL_DIR/klr/nki | ||
cp -R $ROOT/interop/klr $WHEEL_DIR/klr/klr | ||
cp $ROOT/LICENSE $WHEEL_DIR | ||
cp $ROOT/interop/README.md $WHEEL_DIR | ||
cp $ROOT/interop/pyproject.toml $WHEEL_DIR | ||
cp $ROOT/interop/MANIFEST.in $WHEEL_DIR | ||
|
||
cd $WHEEL_DIR | ||
python -m build | ||
|
||
# To upload the wheel, with the proper token in ~/.pypirc, run | ||
# | ||
# python3 -m twine upload --verbose --repository testpypi dist/* | ||
# | ||
# from .wheel/klr |
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 @@ | ||
include klr/bin/* |
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,5 @@ | ||
Python bindings for KLR | ||
|
||
# Usage | ||
|
||
TODO |
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,17 @@ | ||
[project] | ||
name = "klr" | ||
version = "0.0.2" | ||
description = "Intermediate langauge for tensor compilers" | ||
authors = [ | ||
{name = "Paul Govereau", email = "[email protected]"}, | ||
{name = "Sean McLaughlin", email = "[email protected]"}, | ||
] | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
keywords = ["trainium", "tpu", "pallas", "triton", "gpu"] | ||
dependencies = [ | ||
"numpy", | ||
] | ||
|
||
[project.urls] | ||
Repository = "https://github.com/leanprover/KLR" |