[HIPIFY][fix] cmake: NO_DEFAULT_PATH is strongly needed in find_package for LLVM#230
[HIPIFY][fix] cmake: NO_DEFAULT_PATH is strongly needed in find_package for LLVM#230emankov merged 1 commit intoROCm:masterfrom emankov:master
Conversation
…ge for LLVM Otherwise LLVM will be searched in system folders.
|
What's wrong with finding llvm in system folders? Plenty of distros (most of them!) ship an LLVM that's compatible with hipify now, so this should work fine. Why require users to go to the extra hassle of manually unpacking llvm somewhere? That made sense when hipify only worked with a specific version of llvm. But now I think it's just unhelpful..? |
Well, actually we've got a mess here:
We specify an exact path to LLVM to be used, but actually the found LLVM might be different.
It was so from a very beginning: we were supporting only LLVM 3.8 and later 3.9. Now with your contribution in supporting of newest LLVM versions, we can think about eliminating LLVM specifying requirement, but not right now. Let's merge all the rest of your pull requests and ensure that all is build and work as it was before (or even, I believe, better), ok? :-).
Right, answered above :-) |
The I agree that having a The concept is that For this reason, having a project-specific "exact location of LLVM" variable is flawed. If you really want to specify a specific LLVM for it to use, you can just prepend its path to
The note of caution certainly has merit, especially given that everything caught fire yesterday. 😉 However, the proposed change has no effect on which version of LLVM it looks for, it just restricts where it looks. If you want to force it to keep using version 3.8 or 3.9, add a version argument to the Note, however, that such version pinning comes with some downsides:
In general, I think what we want to do is:
Sorry for the long post. Hopefully I explained myself better now... If you really want to do it this way, I'll keep a local reversion for my work and hopefully we can come up with something neater later on. |
|
Well... Will try to be laconic.
Right, it only demands to search LLVM only in the path provided.
I think more or less the same, but ... let it be the next small incremental steps. |
…DEV-541096_addEventWaitExternal Auto-submit by Jenkins
Otherwise LLVM will be searched in system folders.