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

Add development container #1267

Draft
wants to merge 16 commits into
base: develop
Choose a base branch
from
Draft

Add development container #1267

wants to merge 16 commits into from

Conversation

upsj
Copy link
Member

@upsj upsj commented Feb 5, 2023

This adds a dockerfile that can be used to build all of Ginkgo, including a few development tools. My long-term goal is to keep an updated version of this container with up-to-date prebuilt Ginkgo around and update it with every develop merge to allow people to quickly start working on a new branch without having to rebuild everything every time.

See https://hub.docker.com/repositories/ginkgodev with unified and base containers containing the full image or just the APT packages

@upsj upsj self-assigned this Feb 5, 2023
@ginkgo-bot ginkgo-bot added the reg:helper-scripts This issue/PR is related to the helper scripts mainly concerned with development of Ginkgo. label Feb 5, 2023
Copy link
Member

@yhmtsai yhmtsai left a comment

Choose a reason for hiding this comment

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

Is it possible to separate the apt from docker and spack?
only spack or only docker works


RUN (echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-15 main" > /etc/apt/sources.list.d/llvm15.list) && \
(curl https://apt.llvm.org/llvm-snapshot.gpg.key > /etc/apt/trusted.gpg.d/apt.llvm.org.asc) && apt-get update && \
apt-get install -y --no-install-recommends clang-15 clang-tools-15 clang-15-doc clangd-15 clang-tidy-15 clang-format-15 \
Copy link
Member

Choose a reason for hiding this comment

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

should it use format 14 because we use clang-format-14 as our standard in repo

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we could install just clang-format-14 and use 15 for the rest, I would like to profit from the latest clang features

dev_tools/container/Dockerfile Outdated Show resolved Hide resolved
@@ -0,0 +1,63 @@
packages:
Copy link
Member

Choose a reason for hiding this comment

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

the packages listed here are installed from the apt, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, they are not detectable by spack (yet), so I need to specify their location manually

@upsj upsj added the 1:ST:ready-for-review This PR is ready for review label Jun 2, 2023
@upsj upsj marked this pull request as ready for review June 2, 2023 12:29
upsj and others added 5 commits July 2, 2023 10:00
- remove SYCL-specific headers from general builds
- disable failing tests for rocFFT
- disable DPC++ distributed tests
We cannot include nvcc in the spack environment
because we need to avoid collisions in the `thrust` include dir.
But we can make CMake find the CUDA toolkit that way.
@upsj upsj mentioned this pull request Jul 2, 2023
2 tasks
Comment on lines -127 to +128
lsum += Kokkos::Experimental::abs(
(v_u(i) - correct_u(xi)) /
Kokkos::Experimental::abs(correct_u(xi)));
lsum += Kokkos::abs((v_u(i) - correct_u(xi)) /
Kokkos::abs(correct_u(xi)));
Copy link
Member

Choose a reason for hiding this comment

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

I think we should then require Kokkos >= 3.7

@MarcelKoch
Copy link
Member

can you change the target branch to unified_build_fixes so we can filter out the changes from #1333?

@MarcelKoch MarcelKoch marked this pull request as draft July 11, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1:ST:ready-for-review This PR is ready for review reg:helper-scripts This issue/PR is related to the helper scripts mainly concerned with development of Ginkgo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants