Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Grundkiewicz <rgrundkiewicz@gmail.com>2020-08-21 20:50:07 +0300
committerGitHub <noreply@github.com>2020-08-21 20:50:07 +0300
commita21e48fb4f0beec0f83987112ff61b23a0140080 (patch)
tree6f4888d6e35e70e953853d327320ef4abe53a5d1 /.github/workflows/macos-cpu.yml
parentc4c4b79f29fc78b2ef65b939677997896ce9624e (diff)
Add GitHub workflows with CUDA and MKL (#700)
* Add GitHub workflows with CUDA * Install MKL on Windows * Upload CPU-only executables from Windows and Ubuntu as artifacts * Clean up workflows
Diffstat (limited to '.github/workflows/macos-cpu.yml')
-rw-r--r--.github/workflows/macos-cpu.yml51
1 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/macos-cpu.yml b/.github/workflows/macos-cpu.yml
new file mode 100644
index 00000000..07f2a9dd
--- /dev/null
+++ b/.github/workflows/macos-cpu.yml
@@ -0,0 +1,51 @@
+name: macOS CPU-only
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: macos-10.15
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ submodules: recursive
+
+ - name: Install dependencies
+ run: brew install openblas protobuf
+
+ # Openblas location is exported explicitly because openblas is keg-only,
+ # which means it was not symlinked into /usr/local/.
+ # CMake cannot find BLAS on GitHub runners if Marian is being compiled
+ # statically, hence USE_STATIC_LIBS=off
+ - name: Configure CMake
+ run: |
+ export LDFLAGS="-L/usr/local/opt/openblas/lib"
+ export CPPFLAGS="-I/usr/local/opt/openblas/include"
+ mkdir -p build
+ cd build
+ cmake .. -DCOMPILE_CPU=on -DCOMPILE_CUDA=off -DCOMPILE_EXAMPLES=on -DCOMPILE_SERVER=on -DCOMPILE_TESTS=on \
+ -DUSE_FBGEMM=on -DUSE_SENTENCEPIECE=on -DUSE_STATIC_LIBS=off
+
+ - name: Compile
+ working-directory: build
+ run: make -j2
+
+ - name: Run unit tests
+ working-directory: build
+ run: make test
+
+ - name: Print versions
+ working-directory: build
+ run: |
+ ./marian --version
+ ./marian-decoder --version
+ ./marian-scorer --version
+ ./spm_encode --version
+