Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Conversation

@brycelelbach
Copy link
Collaborator

  • Add support for local docker builds in a gpuCI-like environment.
  • Rename the existing ci/cpu/build.bash to ci/common/build.bash.
  • Create two new scripts, ci/{cpu,gpu}/build.bash, that source ci/common/build.bash.
  • Fix uses of the wrong Bash variable name.

@brycelelbach brycelelbach added this to the 1.11.0 milestone Oct 14, 2020
- Add support for local docker builds in a gpuCI-like environment.
- Rename the existing `ci/cpu/build.bash` to `ci/common/build.bash`.
- Create two new scripts, `ci/{cpu,gpu}/build.bash`, that source
  `ci/common/build.bash`.
- Fix uses of the wrong Bash variable name.
@brycelelbach brycelelbach force-pushed the feature/local-docker-builds branch from d516d5c to c9f60d1 Compare October 14, 2020 01:25
- Run `ldconfig` as root in local containerized builds to workaround issues with
  nvidia-docker2 and Debian.
- Add a "clean" option to local containzered builds.
- Stop using the "c++" and "cu++" symlinks, because NVCC doesn't like being
  symlinked to (it breaks nvcc.profile).
- Add script for determining parallelism, based on the one we used with DVS.
@brycelelbach brycelelbach force-pushed the feature/local-docker-builds branch from 82dade7 to bca02bf Compare October 14, 2020 04:59
Copy link
Collaborator

@alliepiper alliepiper left a comment

Choose a reason for hiding this comment

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

The multiconfig stuff needs to be fixed up for sure, the rest are just FYIs/suggestions.

I'm looking forward to trying this out!

`determine_build_parallelism.bash` for local builds.
- Use the gpuCI-provided BUILD_TYPE variable.
- `ci/local/build.bash`: Add -l/--local-image, which doesn't pull from Docker hub.
- Improve pre-commit and post-commit build workloads.
- Make the build directory, not the repository root, the starting directory
  in containers.
- Turn off C++17 mode for now until we have an easy way to say "use it if the
  compiler supports it" - see #1321.
- Make invocation with a specific test target work as intended.
- `ci/local/build.bash`: Don't print out build parallelism information if
  invoking in shell only mode.
fi

if [ ! -z "${@}" ]; then
CTEST_FLAGS="${CTEST_FLAGS} -R ^${@}$"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Two things to be aware of:

  1. This only supports a single target.
  2. This won't work with configuration metatargets because of the trailing $

@brycelelbach brycelelbach merged commit 42ae146 into main Oct 20, 2020
@brycelelbach brycelelbach deleted the feature/local-docker-builds branch October 20, 2020 18:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants