This is an archive of the discontinued LLVM Phabricator instance.

[HIP] Fix spack detection
ClosedPublic

Authored by yaxunl on May 15 2021, 10:22 AM.

Details

Summary

Missing or duplicate spack package should not cause error, since
users may only installed llvm/clang package, or users may installed
duplicate HIP package but will use environment variable or compiler
option to choose HIP path.

The message about missing or duplicate spack package is for informational
and will be emitted only when -v is specified.

Diff Detail

Event Timeline

yaxunl created this revision.May 15 2021, 10:22 AM
yaxunl requested review of this revision.May 15 2021, 10:22 AM
tra accepted this revision.May 17 2021, 9:13 AM

LGTM with a test nit.

clang/test/Driver/rocm-detect.hip
115

Nit: I'd match the version with a regex. Otherwise this test would continue passing even if compiler were to report hip-some.other.version not found

This revision is now accepted and ready to land.May 17 2021, 9:13 AM
yaxunl marked an inline comment as done.May 17 2021, 9:46 AM
yaxunl added inline comments.
clang/test/Driver/rocm-detect.hip
115

will do

This revision was automatically updated to reflect the committed changes.
yaxunl marked an inline comment as done.
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2021, 10:24 AM