Skip to content

Commit

Permalink
Enable mps backend on arm64 runner
Browse files Browse the repository at this point in the history
  • Loading branch information
pfxuan committed Apr 15, 2024
1 parent 8bbba79 commit 5edd0dd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: OpenSplat (MacOS X86 and ARM)
on:
push:
branches:
- main
- mps-build
pull_request:
types: [ assigned, opened, synchronize, reopened ]
release:
Expand Down Expand Up @@ -95,13 +95,21 @@ jobs:
set -x
mkdir build
cd build
if [[ "${{ matrix.arch }}" == "arm64" ]]; then
export GPU_RUNTIME=MPS
else
export GPU_RUNTIME=CPU
fi
cmake .. \
-G${CMAKE_GENERATOR} \
-DCMAKE_BUILD_TYPE=${{ matrix.cmake-build-type }} \
-DCMAKE_C_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_PREFIX_PATH=${{ github.workspace }}/libtorch \
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install \
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install \
-DGPU_RUNTIME=${GPU_RUNTIME} \
-DOPENSPLAT_BUILD_SIMPLE_TRAINER=ON
ninja
ls -l .
Expand Down

0 comments on commit 5edd0dd

Please sign in to comment.