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

Jonas Hahnfeld via Openmp-dev openmp-dev at lists.llvm.org
Thu Oct 1 05:17:16 PDT 2020


Am Donnerstag, den 01.10.2020, 06:54 +0900 schrieb Itaru Kitayama:
> 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.

Yes, that should be the relevant ones (plus maybe CPATH, but CMake
should add the include directory itself) - as I said nothing special.
The other variables are not actually required, but are set for user
convenience like CUDA_ROOT.

> 
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20201001/3d307a1e/attachment.sig>


More information about the Openmp-dev mailing list