Default Location of CUDA headers in Windows and macOS

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

Hi Sanjay,

please do not cross-post two multiple lists.

Check e.g. this document:

In the optimal case you just get a windows virtual machine and try it
out yourself.

Best,
Tobias

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)

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)

I never installed CUDA on Windows. Can you try to find out?

Best,
Tobias

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)

I never installed CUDA on Windows. Can you try to find out?

Alright.

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

Here are the Default locations,

(# is a placeholder for a number ; #.# is the CUDA version number )

Windows : %ProgramFile%\NVIDI GPU Computing Toolkit\CUDA\v#.#

Linux : /usr/local/cuda-#.# ( /usr/local/cuda is a symlink to the latest version )

macOS : /Developer/NVIDIA/CUDA-#.#

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.

It’s new to me that the system language can affect paths.

In this case, look for the environment variables “CUDA_PATH” and
“CUDA_PATH_V8_0” (or some different version) contains the path.

Thank You Michael !