Skip to content

Commit

Permalink
Enable CUDA + install MAGMA
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Nov 12, 2024
1 parent cb9b6f4 commit 8f0c4aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/libtorch-linux-cuda-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
- name: Conda deps
run: |
conda install cmake ninja python git zip
- name: Install MAGMA
run: |
conda install -c pytorch magma-cuda${{ matrix.cuda }}
- name: Clone
run: |
git clone -b ${{ github.event.inputs.branch }} --recurse-submodule https://github.com/pytorch/pytorch.git
Expand All @@ -54,7 +57,7 @@ jobs:
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DBUILD_PYTHON=OFF \
-DUSE_CUDA=OFF \
-DUSE_CUDA=ON \
-DCMAKE_INSTALL_PREFIX:PATH=../libtorch \
../pytorch
cmake --build . --target install --parallel 4
Expand Down

0 comments on commit 8f0c4aa

Please sign in to comment.