Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU CI Setup #1045

Merged
merged 13 commits into from
Sep 3, 2020
2 changes: 1 addition & 1 deletion .github/workflows/analysis_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
cmake --build . \
--target install \
--config Release \
-- -j2
-- -j$(nproc)
working-directory: _build
- name: Test
run: ctest -V
Expand Down
24 changes: 22 additions & 2 deletions .github/workflows/ci_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,32 @@ jobs:
cmake --build . \
--target install \
--config ${{ matrix.build-type }} \
-- -j2
-- -j$(nproc)
working-directory: _build
- name: Test
run: ctest -V
working-directory: _build

# ---------------------------------------------------------------------------
# Linux GPU (AWS CodeBuild)
# ---------------------------------------------------------------------------

linux_gpu:
name: 'Linux CentOS 7 VFX CY2020 GPU <GCC 6.3.1>'
runs-on: ubuntu-latest
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.CODEBUILD_ID }}
aws-secret-access-key: ${{ secrets.CODEBUILD_SECRET }}
aws-region: us-west-2
- name: Run CodeBuild
uses: aws-actions/[email protected]
with:
project-name: OpenColorIO_GPU_CI
buildspec-override: buildspec.yml

# ---------------------------------------------------------------------------
# macOS
# ---------------------------------------------------------------------------
Expand Down Expand Up @@ -307,7 +327,7 @@ jobs:
cmake --build . \
--target install \
--config ${{ matrix.build-type }} \
-- -j2
-- -j$(sysctl -n hw.ncpu)
working-directory: _build
- name: Test
run: ctest -V
Expand Down
38 changes: 38 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: 0.2

env:
variables:
CXX: "g++"
CC: "gcc"
exported-variables:
- CXX
- CC

phases:
pre_build:
commands:
- git clone https://github.com/$GITHUB_REPOSITORY OpenColorIO
- cd OpenColorIO
- git checkout $GITHUB_SHA
- mkdir _install _build
- cd _build
build:
commands:
- |
cmake ../. \
-DCMAKE_INSTALL_PREFIX=../_install \
-DOCIO_BUILD_APPS=ON \
-DOCIO_BUILD_DOCS=OFF \
-DOCIO_BUILD_TESTS=ON \
-DOCIO_BUILD_GPU_TESTS=ON \
-DOCIO_BUILD_PYTHON=ON \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file is dedicated to the AWS GPU build so, the Python build & test could be disabled.

-DOCIO_INSTALL_EXT_PACKAGES=ALL \
-DOCIO_WARNING_AS_ERROR=ON \
-DPYTHON_EXECUTABLE=$(which python)
- |
cmake --build . \
--target install \
-- -j$(nproc)
post_build:
commands:
- ctest -V