-
Notifications
You must be signed in to change notification settings - Fork 797
[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
Conversation
Signed-off-by: JackAKirk <[email protected]>
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try it.
There was a problem hiding this comment.
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>
There was a problem hiding this 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 :)
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]>
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:
If the above issues were not caused by the gcc version uplift, then this patch should also reveal that.