This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] Fix two failed test cases using --cuda-path-ignore-env
ClosedPublic

Authored by gaijiading on Sep 18 2018, 9:46 PM.
Tokens
"Cup of Joe" token, awarded by gaijiading.

Diff Detail

Repository
rC Clang

Event Timeline

gaijiading created this revision.Sep 18 2018, 9:46 PM
tra added a comment.Sep 19 2018, 1:08 PM

The patch does not seem to match the description and appears to have nothing to do with rearranging include paths. Could you check if these are the changes you intended to send for review.

Apologies for having uploaded the wrong patch in my original review request. Please help review this version instead. Thanks.

IMO the current logic makes sense for the end user, prioritizing the environment guess over default paths. I think the tests should be fixed using --cuda-path-ignore-env, I remember I added this parameter to fix the failing tests when I wrote the code.

gaijiading retitled this revision from [CUDA] Rearrange search path ordering to fix two test case failures to [CUDA] Fix two failed test cases using --cuda-path-ignore-env.
gaijiading edited the summary of this revision. (Show Details)

Thanks for the comments. Revised the patch to fix them using --cuda-path-ignore-env.

tra accepted this revision.Sep 25 2018, 9:36 AM

It's unfortunate that lit does not scrub the environment in order to make tests hermetic.

This revision is now accepted and ready to land.Sep 25 2018, 9:36 AM
This revision was automatically updated to reflect the committed changes.