Skip to content

Commit

Permalink
Merge pull request #14 from rickardp/nocublaslt
Browse files Browse the repository at this point in the history
Build nocublaslt versions
  • Loading branch information
rickardp authored Feb 3, 2024
2 parents e2e8f87 + 2ba8be3 commit 7ed6a01
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 171 deletions.
159 changes: 0 additions & 159 deletions .github/workflows/cmake.yml

This file was deleted.

26 changes: 14 additions & 12 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,20 @@ jobs:
set -ex
build_os=${{ matrix.os }}
build_arch=${{ matrix.arch }}
if [ ${build_os:0:6} == ubuntu ]; then
image=nvidia/cuda:${{ matrix.cuda_version }}-devel-ubuntu22.04
echo "Using image $image"
docker run --platform linux/$build_arch -i -w /src -v $PWD:/src $image sh -c \
"apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cmake \
&& cmake -DCOMPUTE_BACKEND=cuda . \
&& make"
else
cmake -DCOMPUTE_BACKEND=cuda .
pwsh -Command "msbuild bitsandbytes.vcxproj /property:Configuration=Release"
fi
for NO_CUBLASLT in ON OFF; do
if [ ${build_os:0:6} == ubuntu ]; then
image=nvidia/cuda:${{ matrix.cuda_version }}-devel-ubuntu22.04
echo "Using image $image"
docker run --platform linux/$build_arch -i -w /src -v $PWD:/src $image sh -c \
"apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cmake \
&& cmake -DCOMPUTE_BACKEND=cuda -DNO_CUBLASLT=${NO_CUBLASLT} . \
&& make"
else
cmake -DCOMPUTE_BACKEND=cuda -DNO_CUBLASLT=${NO_CUBLASLT} .
pwsh -Command "msbuild bitsandbytes.vcxproj /property:Configuration=Release"
fi
done
mkdir -p output/${{ matrix.os }}/${{ matrix.arch }}
( shopt -s nullglob && cp bitsandbytes/*.{so,dylib,dll} output/${{ matrix.os }}/${{ matrix.arch }}/ )
- name: Upload build artifact
Expand Down

0 comments on commit 7ed6a01

Please sign in to comment.