This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Consider LIBRARY_PATH when selecting library paths for NVPTX targets in OpenMP mode.
AbandonedPublic

Authored by gtbercea on Feb 7 2017, 8:21 AM.

Details

Summary

Consider LIBRARY_PATH when selecting library paths for NVPTX targets in OpenMP device offloading mode.

Diff Detail

Repository
rL LLVM

Event Timeline

gtbercea created this revision.Feb 7 2017, 8:21 AM
gtbercea added a subscriber: cfe-commits.
gtbercea updated this revision to Diff 93188.Mar 27 2017, 3:40 PM

Update patch to reflect latest source code changes.

tstellar edited edge metadata.Apr 6 2017, 7:59 AM

Why is this necessary?

ABataev added inline comments.Apr 6 2017, 11:02 AM
test/Driver/openmp-offload.c
622

Will it work on Windows?

hfinkel edited edge metadata.Jun 21 2017, 6:31 PM

Why is this necessary?

To put it another way, what is special about LIBRARY_PATH in this regard? Do we already pass paths specified with -L? I'm also slightly concerned here with the custom parsing code. Can the logic from tools::addDirectoryList not be reused here?

lib/Driver/ToolChains/Cuda.cpp
405 ↗(On Diff #93188)

A comment is needed here explaining why this is necessary/desirable.

412 ↗(On Diff #93188)

Is this the only use of this variable? How is this not dead code?

test/Driver/openmp-offload.c
626

Can this be a little more specific so that you actually make sure you're getting the offloading linking step here?

gtbercea abandoned this revision.Jun 28 2017, 9:07 AM

Not needed.
These changes are related to looking up the .bc library for inlining purposes. I believe @arpith-jacob has already handled this in trunk. Therefore this is obsolete code.