[PATCH] D141861: [nvptx-arch] Dynamically load the CUDA runtime if not found during the build

Steven Johnson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 30 15:59:42 PST 2023


srj added a comment.

In D141861#4092190 <https://reviews.llvm.org/D141861#4092190>, @jhuber6 wrote:

> In D141861#4092182 <https://reviews.llvm.org/D141861#4092182>, @srj wrote:
>
>> In D141861#4092096 <https://reviews.llvm.org/D141861#4092096>, @srj wrote:
>>
>>> Update: I may have a way to make this work from my side; testing now.
>>
>> Alas, that didn't work, stlll broken.
>
> Interesting. It's definitely a bad problem that we find the 64-bit version and try to link with it for a cross-compile. I don't want to revert the code because the old `FIND_CUDA` is officially deprecated. I figured there was surely a way to check if LLVM was cross compiling.

I'll see if I can get our CMake expert to weigh in :-)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141861/new/

https://reviews.llvm.org/D141861



More information about the cfe-commits mailing list