[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 13:59:28 PST 2023


srj added a comment.

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

> In D141861#4091897 <https://reviews.llvm.org/D141861#4091897>, @srj wrote:
>
>> It's finding a 64-bit CUDAToolkit, which it can't link against because the rest of the build is 32-bit.
>
> Wondering why it didn't find it before then. But that's definitely a weird configuration. Not sure what a good generic solution is. We could always make it `dlopen` all the time.

Crosscompiling to x86-32 on an x86-64 host doesn't strike me as particularly weird at all (especially on Windows), but apparently it is quite weird for LLVM at this point in time as we keep getting a lot of different things broken there :-)


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