Skip to content

chore(setup): rewrite packaging #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Jul 10, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
a70220e
chore(setup): rewrite packaging
XuehaiPan Jul 7, 2022
0a1ccb8
chore: fix file modes
XuehaiPan Jul 7, 2022
01df51e
docs(README): update README
XuehaiPan Jul 7, 2022
c5d6b80
style: format code with yapf
XuehaiPan Jul 7, 2022
fbe3b12
style: reindent license
XuehaiPan Jul 7, 2022
fdf5077
chore(workflow): install CUDA Toolkit in GitHub Action
XuehaiPan Jul 7, 2022
857338a
feat(workflow): build PyPI wheels for Python 3.7 / 3.8 / 3.9 / 3.10
XuehaiPan Jul 7, 2022
b9f9ebe
refactor(setup): use pybind11 PyPI package rather than git submodule
XuehaiPan Jul 7, 2022
ca92f9f
chore(setup): add dependency `typing-extensions`
XuehaiPan Jul 7, 2022
294f7ed
chore(workflow): update workflow trigger
XuehaiPan Jul 7, 2022
bf14292
docs: use HTTPS URL for git clone
XuehaiPan Jul 7, 2022
2e80b67
fix(tests): update requirements.txt
XuehaiPan Jul 7, 2022
4ab4efa
chore(setup): remove deprecated dependency `distutils`
XuehaiPan Jul 7, 2022
9580a96
test: disable CUDA tests if no GPU available
XuehaiPan Jul 8, 2022
8640b81
chore(workflow): use Python 3.7 in tests
XuehaiPan Jul 8, 2022
9730748
refactor(Makefile): update Makefile
XuehaiPan Jul 8, 2022
3dcd29c
style: format CXX code
XuehaiPan Jul 8, 2022
2f4e44f
chore(tests): test with CUDA Toolkit 11.3
XuehaiPan Jul 8, 2022
ad069a4
feat(CMakeLists.txt): auto detect nvcc arch flags
XuehaiPan Jul 8, 2022
bce754b
chore(workflow): set timeout
XuehaiPan Jul 8, 2022
2dba710
docs: update sphinx docs
XuehaiPan Jul 8, 2022
de1bb87
chore: use CamelCased URL paths
XuehaiPan Jul 9, 2022
5597da7
chore: add conda recipe
XuehaiPan Jul 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore(workflow): use Python 3.7 in tests
  • Loading branch information
XuehaiPan committed Jul 8, 2022
commit 8640b814d6d1e37fddffbb79448741c5520d8064
5 changes: 3 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ jobs:
submodules: "recursive"
fetch-depth: 1

- name: Set up Python 3.8
- name: Set up Python 3.7 # the lowest version we support
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.7"
update-environment: true

- name: Setup CUDA Toolkit
uses: Jimver/cuda-toolkit@v0.2.7
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ jobs:
submodules: "recursive"
fetch-depth: 1

- name: Set up Python 3.8
- name: Set up Python 3.7 # the lowest version we support
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.7"
update-environment: true

- name: Setup CUDA Toolkit
uses: Jimver/cuda-toolkit@v0.2.7
Expand Down
5 changes: 4 additions & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
-r ../requirements.txt

pytest
torchvision
functorch

pytest
pytest_cov
pytest_xdist
2 changes: 1 addition & 1 deletion tests/unit/high_level/test_high_level_inplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def test_accelerated_adam_cpu(self) -> None:
mse = F.mse_loss(b, b_ref)
self.assertAlmostEqual(float(mse), 0)

@pytest.mark.skipIf(not torch.cuda.is_available(), reason='No CUDA device available.')
@pytest.mark.skipif(not torch.cuda.is_available(), reason='No CUDA device available.')
def test_accelerated_adam_cuda(self) -> None:
self.model.cuda()
self.model_ref.cuda()
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/low_level/test_low_level_inplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_accelerated_adam_cpu(self) -> None:
mse = F.mse_loss(b, b_ref)
self.assertAlmostEqual(float(mse), 0)

@pytest.mark.skipIf(not torch.cuda.is_available(), reason='No CUDA device available.')
@pytest.mark.skipif(not torch.cuda.is_available(), reason='No CUDA device available.')
def test_accelerated_adam_cuda(self) -> None:
self.model.cuda()
self.model_ref.cuda()
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy