- Set up the development environment by modifying the PATH and
LD_LIBRARY_PATH variables:
$ export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
$ export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64\
{LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
The above paragraph is extracted from CUDA Quick Start Guide, 4.1.5.1. Debian Installer.
I would to understand the following:
- 1. Do I need these environment settings on a new terminal every time I use CUDA, its libraries and other tool kits?
- 2. If answer to 1 is yes, can I just write them into my
```
.profile
```
or
.bashrc
or is there another better suited location to hard code it?
- 3. For the last command, should is be
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64\ {LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} in one line or in 2 sentences as shown above
- 4. Where are this variable stored after the
```
export
```
command is used? I can see them using e.g. echo $PATH I would like to make corrections using a text editor.