Skip to content

Commit

Permalink
Attempt targeting again
Browse files Browse the repository at this point in the history
  • Loading branch information
casper-hansen committed Feb 15, 2024
1 parent 4f7773e commit 0573fc0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ jobs:
if ( $env:CUDA_VERSION -eq $env:PYPI_CUDA_VERSION ){
$env:PYPI_BUILD = 1
}
if (${{ runner.os }} -eq "Linux") { $platform_name = "manylinux2014_x86_64" } else {$platform_name = "win_amd64"}
python setup.py sdist bdist_wheel --plat-name $platform_name --python-version ${{ matrix.pyver }}
python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v3
if: runner.os == 'Linux'
Expand Down Expand Up @@ -238,13 +237,7 @@ jobs:
python --version
which python
if [[ "${{ runner.os }}" == "Linux" ]]; then
platform_name="manylinux2014_x86_64"
else
platform_name="win_amd64"
fi
ROCM_VERSION=${{ matrix.rocm }} python setup.py sdist bdist_wheel --plat-name $platform_name --python-version ${{ matrix.python }}
ROCM_VERSION=${{ matrix.rocm }} python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v3
if: runner.os == 'Linux'
Expand Down
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import requests
from pathlib import Path
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension
from torch.utils.cpp_extension import CUDAExtension


def get_latest_kernels_version(repo):
Expand Down Expand Up @@ -137,6 +137,11 @@ def get_kernels_whl_url(
"eval": ["lm_eval>=0.4.0", "tabulate", "protobuf", "evaluate", "scipy"],
"dev": ["black", "mkdocstrings-python", "mkdocs-material", "griffe-typingdoc"]
},
cmdclass={"build_ext": BuildExtension},
ext_modules=[
CUDAExtension(
name="kernels",
sources=[],
)
],
**common_setup_kwargs,
)

0 comments on commit 0573fc0

Please sign in to comment.