[cfe-dev] Set cuda path default

Jonas Hahnfeld via cfe-dev cfe-dev at lists.llvm.org
Thu Feb 1 00:22:37 PST 2018


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



More information about the cfe-dev mailing list