This is an archive of the discontinued LLVM Phabricator instance.

[libomptarget][nfc] Use cuda variable wrappers from support.h
ClosedPublic

Authored by JonChesterfield on Nov 13 2019, 8:07 AM.

Details

Summary

[libomptarget][nfc] Use cuda variable wrappers from support.h
Reimplementation of D69693, after the revert of D69885

Use the wrappers in support.h for cuda builtin variables at all call sites.
Localises use of cuda and removes WARPSIZE==32 assumption in debug.h.

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptNov 13 2019, 8:07 AM
jdoerfert accepted this revision.Nov 13 2019, 8:12 AM

LGTM. (I think pure NFC cleanups like this you can commit w/o review.)

This revision is now accepted and ready to land.Nov 13 2019, 8:12 AM

LGTM. (I think pure NFC cleanups like this you can commit w/o review.)

Need to check that it does not break the build, give me some time.

JonChesterfield added a comment.EditedNov 13 2019, 8:44 AM

Thanks. In general I agree re: NFC. At present I'm being cautious after the non-reproducible build errors of last week.

The missing symbols were root caused - __forceinline__ is not equal to always_inline - but duplicate symbols have me at a loss, especially when the supporti.h => support.cu patch didn't show the issue. Hopefully Alexey will run into them again on one of the subdivided patches.

Thanks. In general I agree re: NFC. At present I'm being cautious after the non-reproducible build errors of last week.

The missing symbols were root caused - __forceinline__ is not equal to always_inline - but duplicate symbols have me at a loss, especially when the supporti.h => support.cu patch didn't show the issue. Hopefully Alexey will run into them again on one of the subdivided patches.

Tested, works fine.

Thanks. In general I agree re: NFC. At present I'm being cautious after the non-reproducible build errors of last week.

The missing symbols were root caused - __forceinline__ is not equal to always_inline - but duplicate symbols have me at a loss, especially when the supporti.h => support.cu patch didn't show the issue. Hopefully Alexey will run into them again on one of the subdivided patches.

Tested, works fine.

Thx!

This revision was automatically updated to reflect the committed changes.