[Openmp-dev] Building and Using LLVM/Clang 7.0 with OpenMP Offloading to NVIDIA GPUs

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Wed Sep 30 14:54:52 PDT 2020


Jonas,
Could you tell me how the module file is written, removing
system-specific information, but
leaving relevant for the CUDA Toolkit installation? The path to binary
needs to be in PATH,
and libraries in LD_LIBRARY_PATH I suppose, but not sure if there
needs to be other than that.

On Wed, Sep 30, 2020 at 10:54 PM Jonas Hahnfeld <hahnjo at hahnjo.de> wrote:
>
> Am Sonntag, den 27.09.2020, 07:28 +0900 schrieb Itaru Kitayama via
> Openmp-dev:
> > Jonas,
>
> If addressing me, please include my email address to make sure it ends
> up in my inbox. Otherwise messages sent only to the mailing lists get
> filtered into folders that I may read / scroll over from time to time.
>
> > I’m re-reading your instructions and now am wondering what env vars related to CUDA Toolkit installations are required when building Clang?
>
> None that I'm aware of, at least I didn't set any in addition to those
> by our 'module'. IIRC Clang detects CUDA installations by looking for
> the first 'ptxas' in PATH. Unless that changed, make sure that clang -v
> prints the right installation and you should be good.
>
> Jonas


More information about the Openmp-dev mailing list