Skip to content

Commit

Permalink
use src-layout (fix #12)
Browse files Browse the repository at this point in the history
  • Loading branch information
abcdabcd987 committed Nov 22, 2023
1 parent 0d12336 commit eb3cd4d
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/gpu-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
jobs:
gpu-test:
strategy:
fail-fast: false
matrix:
include:
- { arch: sm80, torch: "2.1.0", cuda_major: 12, cuda_minor: 1 }
Expand All @@ -36,7 +37,7 @@ jobs:
-e PUNICA_CI_CUDA_MAJOR=${{ matrix.cuda_major }} \
-e PUNICA_CI_CUDA_MINOR=${{ matrix.cuda_minor }} \
--user $CI_UID:$CI_GID \
nvidia/cuda:12.1.0-devel-ubuntu22.04 \
nvidia/cuda:${{ matrix.cuda_major }}.${{ matrix.cuda_minor }}.0-devel-ubuntu22.04 \
bash /app/ci/run-ci-gpu-tests.bash
- name: Upload coverage to Codecov
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ recursive-include csrc *
recursive-include third_party/cutlass/include *
prune benchmarks

recursive-include licenses *
prune */__pycache__
global-exclude *.so
5 changes: 2 additions & 3 deletions ci/run-ci-gpu-tests.bash
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ echo "::endgroup::"
echo "::group::Install Punica"
cd "$PROJECT_ROOT"
pip install ninja numpy
# pip install -v --no-build-isolation .[dev]
pip install -v -e .[dev]
pip install -v --no-build-isolation -e .[dev]
echo "::endgroup::"


echo "::group::Punica pytest"
pytest --cov=punica --cov-report=xml
pytest --cov=src --cov-report=xml
echo "::endgroup::"
17 changes: 0 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,6 @@ dev = [
"textual",
]

[tool.setuptools.packages.find]
include = ["punica*"]
exclude = [
"assets",
"benchmarks",
"csrc",
"data",
"dist",
"examples",
"test",
"third_party",
"tmp",
"*__pycache__*",
]
namespaces = false


[tool.yapf]
based_on_style = "yapf"

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def remove_unwanted_pytorch_nvcc_flags():
))

setuptools.setup(
version=get_version(root / "punica/__init__.py"),
version=get_version(root / "src/punica/__init__.py"),
ext_modules=ext_modules,
cmdclass={"build_ext": torch_cpp_ext.BuildExtension},
)
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.

0 comments on commit eb3cd4d

Please sign in to comment.