2021-03-20 01:54:34 +01:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
|
|
# Wait for up to a minute for previous run to complete, abort if not done by then
|
|
|
|
pre-ci:
|
|
|
|
runs-on: self-hosted
|
|
|
|
timeout-minutes: 1
|
|
|
|
steps:
|
|
|
|
- name: 'Block Concurrent Executions'
|
|
|
|
uses: softprops/turnstyle@v1
|
|
|
|
with:
|
|
|
|
poll-interval-seconds: 10
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
linux-x86_64:
|
|
|
|
needs: pre-ci
|
|
|
|
runs-on: [self-hosted]
|
|
|
|
steps:
|
|
|
|
- uses: AutoModality/action-clean@v1
|
|
|
|
- name: Cancel Previous Runs
|
|
|
|
uses: styfle/cancel-workflow-action@0.8.0
|
|
|
|
with:
|
|
|
|
access_token: ${{ github.token }}
|
|
|
|
- uses: ./.github/actions/download-dl4j-test-resources-linux
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Run cpu tests
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
run: |
|
|
|
|
export PATH="/opt/protobuf/bin:/usr/local/cuda-11.2/bin:$PATH"
|
|
|
|
nvcc --version
|
|
|
|
mvn --version
|
|
|
|
cmake --version
|
|
|
|
protoc --version
|
|
|
|
export OMP_NUM_THREADS=1
|
2021-03-25 15:35:29 +01:00
|
|
|
mvn -DexcludedGroups="long-running-tests, large-resources" -DskipTestResourceEnforcement=true -Ptestresources -Pintegration-tests -Pnd4j-tests-cuda clean test --fail-never
|
|
|
|
mvn -Ptestresources -Pnd4j-tests-cuda -Dtest.offheap.size=14g -Dtest.heap.size=6g test --fail-never
|
2021-03-20 01:54:34 +01:00
|
|
|
|