This is an archive of the discontinued LLVM Phabricator instance.

[HIP] Use nul instead of /dev/null when running on windows
ClosedPublic

Authored by yaxunl on Jan 2 2019, 2:12 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

yaxunl created this revision.Jan 2 2019, 2:12 PM
rjmccall added inline comments.Jan 4 2019, 8:44 AM
lib/Driver/ToolChains/HIP.cpp
210 ↗(On Diff #179941)

How hard would it be to just implement the TODO and get away from a reliance on a null file?

yaxunl marked an inline comment as done.Jan 10 2019, 7:07 AM
yaxunl added inline comments.
lib/Driver/ToolChains/HIP.cpp
210 ↗(On Diff #179941)

I tried to make clang-offloader-bundler work without host target but it is not easy. Since it is shared with other languages e.g. OpenMP, it has a fundamental assumption that there is one host target. To make it work without host target may result in format changes that affecting HIP runtime, which is something I would like to avoid for now.

rjmccall accepted this revision.Jan 10 2019, 10:34 AM
rjmccall added inline comments.
lib/Driver/ToolChains/HIP.cpp
210 ↗(On Diff #179941)

Okay, if this is the only reasonable way you can find to do it, it's fine.

This revision is now accepted and ready to land.Jan 10 2019, 10:34 AM
This revision was automatically updated to reflect the committed changes.