This is an archive of the discontinued LLVM Phabricator instance.

Fixed bug using string stream by including missing header
ClosedPublic

Authored by Pascal on May 26 2021, 8:46 PM.

Details

Summary

Compilation bug for openmp project and AMDGPU target

Diff Detail

Event Timeline

Pascal created this revision.May 26 2021, 8:46 PM
Pascal requested review of this revision.May 26 2021, 8:46 PM
Herald added a project: Restricted Project. · View Herald Transcript
JonChesterfield requested changes to this revision.May 27 2021, 2:47 AM

Didn't realize we were using string stream. Probably don't want to, but thanks for the fix in the meantime

This revision now requires changes to proceed.May 27 2021, 2:47 AM
JonChesterfield accepted this revision.May 27 2021, 2:47 AM
This revision is now accepted and ready to land.May 27 2021, 2:47 AM

@Pascal should I land this on your behalf?

Hi @JonChesterfield, yes go ahead. I am curious as to why clang-tidy reported gelf.h not found. It is just part of the libelf. I assume this diagnostic error has shown up before and has been ignored?

Apologies, this change landed as part of D104923 on June 30.

Re: clang-tidy, it doesn't run in the same environment as compilation. This is particularly noticeable for the device runtime, where clang-tidy warns about a lot of unrecognised intrinsics because it makes a wrong assumption about the target architecture. gelf.h may be a problem in practice when this builds by default, though it's also used by generic-elf-64bit so hopefully not. I'm not sure offhand what we're using from gelf.h.