-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
67 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.lake/** | ||
\.lake/ | ||
__pycache__/ | ||
*.so | ||
*.dSYM | ||
/.vscode/ | ||
.wheel/ | ||
.vscode/ | ||
/.wheel/ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,2 @@ | ||
# All files must be below the python project root | ||
include bin/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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// A dummy file to trick Python's `build` into makeing an arch-specific wheel. | ||
|
||
#include <stdio.h> | ||
|
||
int main() { | ||
|
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 |
---|---|---|
@@ -1,12 +1,18 @@ | ||
# NB: All this setuptools stuff took about 1000 hours to figure out so never delete this. | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "klr" | ||
version = "0.0.2" | ||
description = "Intermediate langauge for tensor compilers" | ||
version = "0.0.3" | ||
authors = [ | ||
{name = "Paul Govereau", email = "[email protected]"}, | ||
{name = "Sean McLaughlin", email = "[email protected]"}, | ||
] | ||
description = "Intermediate langauge for tensor compilers" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = { file = "LICENSE" } | ||
keywords = ["trainium", "tpu", "pallas", "triton", "gpu"] | ||
|
||
|
@@ -21,31 +27,18 @@ dependencies = [ | |
"numpy", | ||
] | ||
|
||
[project.urls] | ||
Repository = "https://github.com/leanprover/KLR" | ||
|
||
[tool.pytest.ini_options] | ||
pythonpath = "." # Needed for tests to pass | ||
testpaths = [ | ||
"test", | ||
] | ||
|
||
# NB: All this setuptools stuff took about 1000 hours to figure out so never delete this. | ||
[tool.setuptools] | ||
# This makes it ok for there to be both klr and wheelhouse (where we generates wheels on github actions) in the same directory | ||
#packages = ["klr"] | ||
# This tricks setuptools into knowing this is a binary wheel | ||
# The output says this is experimental and likely to change in future releases, but | ||
# we will keep our fingers crossed. Pretty sure we can make a setup.py file that does | ||
# this and it won't be that different. | ||
#ext-modules = [ | ||
# {name = "klr.noop", sources = ["noop.c"]} | ||
#] | ||
packages = ["bin", "klr", "nki", 'nki.isa', 'nki.language'] # Required to have 2 top level packages | ||
|
||
[[tool.setuptools.ext-modules]] | ||
name = "noop" | ||
sources = ["noop.c"] | ||
|
||
[tool.setuptools.package-data] | ||
# This part is essential to get the binary bin/klr included in the wheel | ||
klr = ["bin/klr"] | ||
|
||
[project.urls] | ||
Repository = "https://github.com/leanprover/KLR" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
ROOT=$(dirname $(dirname $(readlink -f $0))) | ||
|
||
$ROOT/.lake/build/bin/klr $@ | ||
$ROOT/Lean/.lake/build/bin/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
This file was deleted.
Oops, something went wrong.