[llvm-dev] Default Location of CUDA headers in Windows and macOS
Michael Kruse via llvm-dev
llvm-dev at lists.llvm.org
Mon May 22 05:31:52 PDT 2017
Never hardcode paths on Windows, they can change per system
configuration, Windows language or the user might change them to any
arbitrary location. Look them up using the APIs for this or from the
registry.
In this case, look for the environment variables "CUDA_PATH" and
"CUDA_PATH_V8_0" (or some different version) contains the path.
Michael
2017-05-22 7:06 GMT+02:00 SANJAY SRIVALLABH SINGAPURAM via llvm-dev
<llvm-dev at lists.llvm.org>:
> The paths I found for Windows were dependent on the version of the SDK, e.g.
> C:\Program Files\NVIDIA GPU
> Computing Toolkit\CUDA\v8.0 or \v7.5. is there a path that's independent of
> the version ? (/usr/local/cuda for Linux)
>
> On Mon 22 May, 2017, 9:58 AM SANJAY SRIVALLABH SINGAPURAM,
> <llvmresch_int01 at iith.ac.in> wrote:
>>
>> Hello,
>>
>> Can anyone help me with the default installation locations of CUDA headers
>> in Windows and macOS ? e.g. /usr/local/cuda/include is the default for
>> Linux.
>>
>> Thanks,
>> Sanjay
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
More information about the llvm-dev
mailing list