Skip to content

[libclc] Update build instructions in readme #111369

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

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

DavidSpickett
Copy link
Collaborator

The configure Python script was removed by
d6e0e6d / https://reviews.llvm.org/D69966.

The readme was never updated with the cmake way to do it. I couldn't find any dedicated buildbots for this so I'm making an educated guess. This is what built locally for me.

The configure Python script was removed by
d6e0e6d / https://reviews.llvm.org/D69966.

The readme was never updated with the cmake way to do it.
I couldn't find any dedicated buildbots for this so I'm making
an educated guess. This is what built locally for me.
@DavidSpickett
Copy link
Collaborator Author

One "andrew-podko" did request this get updated but that was in October 2020, so I expect they're not around anymore.

@DavidSpickett DavidSpickett added the libclc libclc OpenCL library label Oct 7, 2024
Copy link
Contributor

@frasercrmck frasercrmck left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! I've had something like this at the back of my mind for a while.

Copy link
Contributor

@frasercrmck frasercrmck left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@DavidSpickett
Copy link
Collaborator Author

DavidSpickett commented Oct 8, 2024

Also do you know if libclc has any tests worth running in CI? It doesn't have a check-libclc so I'm not sure if that's because there's not much to run, or running the tests requires a GPU or something else.

Context is I've been looking at the pipeline we use for PRs and it doesn't know what to do with libclc so it uses check-all, ideally it would have a specific target because check-all can lead to us running more tests than we need to.

@frasercrmck
Copy link
Contributor

Also do you know if libclc has any tests worth running in CI? It doesn't have a check-libclc so I'm not sure if that's because there's not much to run, or running the tests requires a GPU or something else.

Context is I've been looking at the pipeline we use for PRs and it doesn't know what to do with libclc so it uses check-all, ideally it would have a specific target because check-all can lead to us running more tests than we need to.

No, there aren't any tests. Well I think there are some CTest tests but I seriously doubt those work. I think even check-all might not build libclc? I might be wrong there. We have added tests downstream but they aren't ready for upstreaming.

I did start adding some tests in #87989 but didn't get very far before I switched focus. Part of the problem is that it can be built out of tree, or with an unknown version of clang, and it's hard to know what other downstreams are doing with it.

@DavidSpickett
Copy link
Collaborator Author

Thankyou! So I think in CI we can not add any extra testing targets if libclc is included in the build.

If you have some in future I'm happy to help enable them.

@DavidSpickett DavidSpickett merged commit 64f7e1b into llvm:main Oct 8, 2024
6 of 8 checks passed
@DavidSpickett DavidSpickett deleted the libclc-readme branch October 8, 2024 15:23
DavidSpickett added a commit to DavidSpickett/llvm-project that referenced this pull request Oct 8, 2024
According to llvm#111369 (comment)
there is no testing to be done here.

Adding "check-all" only risks duplicating tests
if other project specific "check-" targets are
also added.
DavidSpickett added a commit that referenced this pull request Oct 9, 2024
According to
#111369 (comment)
there is no testing to be done here.

Adding "check-all" only risks duplicating tests if other project
specific "check-" targets are also added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libclc libclc OpenCL library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants