[cfe-dev] Set cuda path default

Simone Atzeni via cfe-dev cfe-dev at lists.llvm.org
Thu Feb 1 08:19:57 PST 2018


you are right, sorry for the confusion.
Your patch does what I needed.


On Thu, Feb 1, 2018 at 12:22 AM, Jonas Hahnfeld <hahnjo at hahnjo.de> wrote:

> Hi Simone,
> I don't think an environment variable was ever used in upstream trunk, I
> only remember seeing this in IBM's clang-ykt fork. However, I committed an
> improvement just yesterday: Clang will now try to find ptxas in $PATH and
> if it is in a directory called bin/, add that's parent directory as a
> candidate CUDA installation. I think this should work for most HPC systems
> that use environment modules to manage their CUDA installations...
> Unfortunately, I still have to write documentation about this mechanism so
> you'd have to refer to the source code for details.
> Cheers,
> Jonas
> Am 2018-01-31 23:07, schrieb Simone Atzeni via cfe-dev:
>> Hi,
>> I remember in older version of clang (e.g. 4.0), I could set the env
>> variable CUDAPATH=... to set the default path to cuda.
>> In newer version (I am using 6.0), I can use the flag
>> "--cuda-path=...", but I was wondering if there is a way to set that
>> path once to avoid to pass that flag everytime.
>> Thanks.
>> Simone
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180201/c461c744/attachment.html>

More information about the cfe-dev mailing list