Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes related to distro's filesystems #83

Merged
merged 2 commits into from Jun 15, 2023
Merged

Conversation

Mystro256
Copy link
Contributor

When packaging hipamd with Fedora, these are some issues that came up.

They seem generic to most distros, so we should pull them in if there's no issue.

This is a resubmit of:
ROCm/HIP#3239

Using:
$HIP_CLANG_PATH."/../lib/clang/".$HIP_CLANG_VERSION;

Isn't always correct, as the library and resource directory can be
customized at build time in LLVM.

E.g. Fedora, RHEL, and SLE uses "lib64/clang" instead of "lib/clang".

So it's better to ask clang where its resource directory is instead.

Change-Id: I026b245735af5e5310b9ee6188f3f080fac6eb51
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Instead of checking for windows, it seems better to detect the location
of the clang binary. Normally distros put clang bin in the same
directory as hipcc, so this will improve the experience there too.

Change-Id: I506faa15c8cc69500436f2dec3cdfd3f86356fab
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
@Mystro256
Copy link
Contributor Author

Update: I added the fix for clang detection to hipcc.bin as well

Copy link
Contributor

@david-salinas david-salinas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@david-salinas david-salinas merged commit af17f63 into ROCm:develop Jun 15, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants