Skip to content

[CI][HIP] Install libstdc++-12-dev without gcc12. #13752

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

Merged
merged 1 commit into from
May 10, 2024

Conversation

JackAKirk
Copy link
Contributor

@JackAKirk JackAKirk commented May 10, 2024

This partially reverts the changes made in #13619 to use libstdc++-12-dev without gcc12.
This also seems to work fine to build dpc++ within the docker. But should come without the CI failures that might have been induced by the gcc uplift:

@JackAKirk JackAKirk marked this pull request as ready for review May 10, 2024 16:22
@JackAKirk JackAKirk requested a review from a team as a code owner May 10, 2024 16:22
apt-get install -yqq gcc-12 g++-12 libstdc++-12-dev && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100
apt-get install -yqq libstdc++-12-dev
Copy link
Contributor

Choose a reason for hiding this comment

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

Can it be just libstdc++-dev to match the system gcc installation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll try it.

Copy link
Contributor Author

@JackAKirk JackAKirk May 10, 2024

Choose a reason for hiding this comment

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

Unfortunately it doesn't work with libstdc++-11-dev: you get the old

/llvm/libdevice/imf_impl_utils.hpp:12:10: fatal error: 'cstddef' file not found
   12 | #include <cstddef>

Copy link
Contributor

@aelovikov-intel aelovikov-intel left a comment

Choose a reason for hiding this comment

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

While questionable, it's isolated to HIP/CUDA so I'll let you experiment :)

@aelovikov-intel aelovikov-intel merged commit b155c18 into intel:sycl May 10, 2024
sarnex pushed a commit that referenced this pull request May 13, 2024
Switch to using apt packages instead of amdgpu-install.
This uses c++-11-dev libraries so hopefully avoids the problems caused
by #13752

Signed-off-by: JackAKirk <[email protected]>
aelovikov-intel pushed a commit that referenced this pull request May 14, 2024
This PR reverts back to latest docker image from changes made in
- #13618
- #13606

#13752 fixed
#13736 and
#13735 was fixed by
#13771
This means we can now use this "latest" docker image in the main CI
testing.

Signed-off-by: JackAKirk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants