Skip to content
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

Shrinking cuda install, add all assets to attach #352

Merged
merged 10 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 9 additions & 2 deletions .github/workflows/attach-release-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,15 @@ jobs:
bladebit-v${BB_VERSION}-windows-x86-64.zip
bladebit-v${BB_VERSION}-macos-arm64.tar.gz
bladebit-v${BB_VERSION}-macos-x86-64.tar.gz
green_reaper-v${BB_VERSION}-ubuntu-x86-64.tar.gz
green_reaper-v${BB_VERSION}-centos-x86-64.tar.gz
bladebit-cuda-v${BB_VERSION}-ubuntu-x86-64.tar.gz
bladebit-cuda-v${BB_VERSION}-centos-x86-64.tar.gz
bladebit-cuda-v${BB_VERSION}-ubuntu-arm64.tar.gz
bladebit-cuda-v${BB_VERSION}-windows-x86-64.zip
green_reaper-v${BB_VERSION}-linux-x86-64.tar.gz
green_reaper-v${BB_VERSION}-linux-ARM64.tar.gz
green_reaper-v${BB_VERSION}-macos-x86-64.tar.gz
green_reaper-v${BB_VERSION}-macos-arm64.tar.gz
green_reaper-v${BB_VERSION}-windows-x86-64.zip
)

mkdir -p bin
Expand Down
83 changes: 27 additions & 56 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build-harvester-linux-x86-64:
runs-on: ubuntu-20.04
container:
image: quay.io/pypa/manylinux2014_x86_64
image: ghcr.io/chia-network/build-images/manylinux2014_cuda_x86_64:sha-1caf046d5ff19b7c743de2a106dd86928794032b
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand All @@ -28,19 +28,6 @@ jobs:
yum group install -y "Development Tools"
yum install -y sudo make git wget subscription-manager

- name: Setup CUDA
uses: Jimver/cuda-toolkit@v0.2.10
id: cuda-toolkit
with:
cuda: '12.1.0'

- name: Verify CUDA
shell: bash
run: |
echo "Installed cuda version is: ${{ steps.cuda-toolkit.outputs.cuda }}"
echo "Cuda install location: ${{ steps.cuda-toolkit.outputs.CUDA_PATH }}"
nvcc -V

- name: Build Harvester
shell: bash
run: |
Expand All @@ -52,7 +39,7 @@ jobs:
- name: Upload Harvester Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.harvester_artifact_name }}.zip
name: ${{ env.harvester_artifact_name }}
path: ${{ env.harvester_artifact_path }}
if-no-files-found: error

Expand All @@ -75,10 +62,11 @@ jobs:
choco install -y sed

- name: Setup CUDA
uses: Jimver/cuda-toolkit@v0.2.10
uses: Jimver/cuda-toolkit@v0.2.11
id: cuda-toolkit
with:
cuda: '12.1.0'
method: network

- name: Verify CUDA
shell: bash
Expand All @@ -98,14 +86,14 @@ jobs:
- name: Upload Harvester Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.harvester_artifact_name }}.zip
name: ${{ env.harvester_artifact_name }}
path: ${{ env.harvester_artifact_path }}
if-no-files-found: error

build-harvester-linux-arm64:
runs-on: [ARM64, Linux]
container:
image: quay.io/pypa/manylinux2014_aarch64
image: ghcr.io/chia-network/build-images/manylinux2014_cuda_aarch64:sha-1caf046d5ff19b7c743de2a106dd86928794032b
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -141,21 +129,6 @@ jobs:
dnf group install -y "Development Tools"
dnf install -y gmp-devel numactl-devel make git wget sed

- name: Setup CUDA
run: |
set -eo pipefail
module_platform_id=platform:el9
export MODULE_PLATFORM_ID=platform:el9
export PLATFORM_ID=platform:el9
dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel9/$(uname -i)/cuda-rhel9.repo
dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel9/sbsa/cuda-rhel9.repo
dnf makecache
#dnf install -y cuda.aarch64
dnf install -y cuda-toolkit
ls -la /usr/local/
ls -la /usr/local/cuda*
export PATH=/usr/local/cuda-12.1/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-12.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
- name: Build Harvester
shell: bash
run: |
Expand All @@ -167,7 +140,7 @@ jobs:
- name: Upload Harvester Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.harvester_artifact_name }}.zip
name: ${{ env.harvester_artifact_name }}
path: ${{ env.harvester_artifact_path }}
if-no-files-found: error

Expand Down Expand Up @@ -195,7 +168,7 @@ jobs:
- name: Upload Harvester Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.harvester_artifact_name }}.zip
name: ${{ env.harvester_artifact_name }}
path: ${{ env.harvester_artifact_path }}
if-no-files-found: error

Expand Down Expand Up @@ -223,7 +196,7 @@ jobs:
- name: Upload Harvester Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.harvester_artifact_name }}.zip
name: ${{ env.harvester_artifact_name }}
path: ${{ env.harvester_artifact_path }}
if-no-files-found: error

Expand All @@ -246,30 +219,28 @@ jobs:
- name: Build Bladebit
run: .github/actions/build-asset-unix.sh --artifact ${{ env.BB_ARTIFACT_NAME }} --version ${{env.BB_VERSION}}

- name: Install CUDA Prerequisites
run: |
distro=ubuntu2004
arch=x86_64
sudo apt-key del 7fa2af80
wget https://developer.download.nvidia.com/compute/cuda/repos/$distro/$arch/cuda-keyring_1.0-1_all.deb
sudo dpkg -i cuda-keyring_1.0-1_all.deb
sudo apt-get update
sudo apt-get install cuda
- name: Setup CUDA
uses: Jimver/cuda-toolkit@v0.2.11
id: cuda-toolkit
with:
cuda: '12.1.0'
method: network
linux-local-args: '["--toolkit"]'

- name: Build Bladebit CUDA
run: .github/actions/build-asset-unix.sh --cuda --artifact ${{ env.BB_ARTIFACT_NAME_CUDA }} --version ${{env.BB_VERSION}}

- name: Upload Bladebit Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.BB_ARTIFACT_NAME }}.zip
name: ${{ env.BB_ARTIFACT_NAME }}
path: ${{ github.workspace }}/bin/${{ env.BB_ARTIFACT_NAME }}
if-no-files-found: error

- name: Upload Bladebit CUDA Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.BB_ARTIFACT_NAME_CUDA }}.zip
name: ${{ env.BB_ARTIFACT_NAME_CUDA }}
path: ${{ github.workspace }}/bin/${{ env.BB_ARTIFACT_NAME_CUDA }}
if-no-files-found: error

Expand All @@ -289,7 +260,7 @@ jobs:
run: |
set -eo pipefail
dnf install -y gcc-toolset-9-gcc gcc-toolset-9-gcc-c++ \
gmp-devel numactl-devel make git wget subscription-manager
gmp-devel numactl-devel make git wget subscription-manager

bash .github/actions/install-cmake-linux.sh

Expand All @@ -303,7 +274,6 @@ jobs:
distro=rhel8
arch=x86_64
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/$distro/$arch/cuda-$distro.repo
dnf clean expire-cache
dnf module install -y nvidia-driver:latest-dkms
Expand All @@ -319,14 +289,14 @@ jobs:
- name: Upload Bladebit Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.BB_ARTIFACT_NAME }}.zip
name: ${{ env.BB_ARTIFACT_NAME }}
path: ${{ github.workspace }}/bin/${{ env.BB_ARTIFACT_NAME }}
if-no-files-found: error

- name: Upload Bladebit CUDA Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.BB_ARTIFACT_NAME_CUDA }}.zip
name: ${{ env.BB_ARTIFACT_NAME_CUDA }}
path: ${{ github.workspace }}/bin/${{ env.BB_ARTIFACT_NAME_CUDA }}
if-no-files-found: error

Expand Down Expand Up @@ -366,7 +336,7 @@ jobs:
- name: Upload Artifact Ubuntu ARM64
uses: actions/upload-artifact@v3
with:
name: ${{ env.BB_ARTIFACT_NAME }}.zip
name: ${{ env.BB_ARTIFACT_NAME }}
path: ${{ github.workspace }}/bin/${{ env.BB_ARTIFACT_NAME }}
if-no-files-found: error

Expand All @@ -376,7 +346,7 @@ jobs:
- name: Upload Bladebit CUDA Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.BB_ARTIFACT_NAME_CUDA }}.zip
name: ${{ env.BB_ARTIFACT_NAME_CUDA }}
path: ${{ github.workspace }}/bin/${{ env.BB_ARTIFACT_NAME_CUDA }}
if-no-files-found: error

Expand Down Expand Up @@ -420,7 +390,7 @@ jobs:
- name: Upload Bladebit Artifact Windows x86-64
uses: actions/upload-artifact@v3
with:
name: ${{ env.BB_ARTIFACT_NAME }}.zip
name: ${{ env.BB_ARTIFACT_NAME }}
path: ${{ github.workspace }}/bin/${{ env.BB_ARTIFACT_NAME }}
if-no-files-found: error

Expand All @@ -443,10 +413,11 @@ jobs:
choco install -y sed

- name: Setup CUDA
uses: Jimver/cuda-toolkit@v0.2.10
uses: Jimver/cuda-toolkit@v0.2.11
id: cuda-toolkit
with:
cuda: '12.1.0'
method: network

- name: Verify CUDA
shell: bash
Expand Down Expand Up @@ -484,6 +455,6 @@ jobs:
- name: Upload Bladebit CUDA Artifact Windows x86-64
uses: actions/upload-artifact@v3
with:
name: ${{ env.BB_ARTIFACT_NAME_CUDA }}.zip
name: ${{ env.BB_ARTIFACT_NAME_CUDA }}
path: ${{ github.workspace }}/bin/${{ env.BB_ARTIFACT_NAME_CUDA }}
if-no-files-found: error
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
3.0.0
alpha4
rc1