PATH lists the locations of where executables can be found and LD_LIBRARY_PATH is for where shared libraries
are to looked for. In both cases, earlier entries have priority over the later ones. : is used to separate multiple
entries.
Now, to tell the build program where to find the specific CUDA toolkit, insert the desired paths to be listed first by
doing:
bash
export PATH=/usr/local/cuda-10.2/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64:$LD_LIBRARY_PATH
Note that we aren't overwriting the existing values, but prepending instead.
Of course, adjust the version number, the full path if need be. Check that the directories you assign actually do
exist. lib64 sub-directory is where the various CUDA .so objects, like libcudart.so reside, it's unlikely
that your system will have it named differently, but if it is adjust it to reflect your reality.
