I've been struggling with this for several days now, so I finally resorted to creating an account and posting. This is my first post, so please let me know if I'm not following conventions/good posting practice/etc..
I have been trying to get CUDA support for pyrit going, and I have tried several different tutorials. Currently I am the closest to it I have gotten so far but am running into a problem. NVIDIA-kernal-dkms is installed, glxinfo show direct rendering = yes, nouveau is not loaded, and I installed the nvidia-cuda-toolkit seemingly with no errors via apt-get. However when I try to build and install cpyrit, it says that "the CUDA compiler and headers required to build kernel were not found. Trying to continue anyway...". The paths added to $PATH and $LD_LIBRARY_PATH that are in every tutorial that I have found do not exist on my system, so I guess they were installed to different locations when I ran apt-get. Here is where synaptic says all my files were installed to:
Code:
/.
/etc
/etc/nvcc.profile
/usr
/usr/bin
/usr/bin/bin2c
/usr/bin/cuda-memcheck
/usr/bin/cudafe
/usr/bin/cudafe++
/usr/bin/cuobjdump
/usr/bin/fatbinary
/usr/bin/filehash
/usr/bin/nvcc
/usr/bin/nvdisasm
/usr/bin/nvlink
/usr/bin/nvprune
/usr/bin/ptxas
/usr/include
/usr/include/nvvm.h
/usr/lib
/usr/lib/nvidia-cuda-toolkit
/usr/lib/nvidia-cuda-toolkit/bin
/usr/lib/nvidia-cuda-toolkit/bin/cicc
/usr/lib/nvidia-cuda-toolkit/bin/crt
/usr/lib/nvidia-cuda-toolkit/bin/crt/link.stub
/usr/lib/nvidia-cuda-toolkit/bin/crt/prelink.stub
/usr/lib/nvidia-cuda-toolkit/bin/g++
/usr/lib/nvidia-cuda-toolkit/bin/gcc
/usr/lib/nvidia-cuda-toolkit/bin/nvcc
/usr/lib/nvidia-cuda-toolkit/bin/nvcc.profile
/usr/lib/nvidia-cuda-toolkit/libdevice
/usr/lib/nvidia-cuda-toolkit/libdevice/libdevice.compute_20.10.bc
/usr/lib/nvidia-cuda-toolkit/libdevice/libdevice.compute_30.10.bc
/usr/lib/nvidia-cuda-toolkit/libdevice/libdevice.compute_35.10.bc
/usr/lib/nvidia-cuda-toolkit/libdevice/libdevice.compute_50.10.bc
/usr/share
/usr/share/doc
/usr/share/doc/nvidia-cuda-toolkit
/usr/share/doc/nvidia-cuda-toolkit/README.Debian
/usr/share/doc/nvidia-cuda-toolkit/changelog.Debian.gz
/usr/share/doc/nvidia-cuda-toolkit/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/nvidia-cuda-toolkit
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/cuda-binaries.1.gz
/usr/share/man/man1/cuda-memcheck.1.gz
/usr/share/man/man1/cuobjdump.1.gz
/usr/share/man/man1/nvcc.1.gz
/usr/share/man/man1/nvdisasm.1.gz
/usr/share/man/man1/nvprune.1.gz
And here is my current values for $PATH and $LD_LIBRARY_PATH as I have added some based on the above listing:
Code:
PC:~/Desktop/CudaPyrit/cpyrit-cuda-0.4.0# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/nvidia-cuda-toolkit/bin:/usr/include
PC:~/Desktop/CudaPyrit/cpyrit-cuda-0.4.0# echo $LD_LIBRARY_PATH
/usr/lib:/usr/lib/nvidia-cuda-toolkit/libdevice
Could someone help me figure out what needs to be added to the environment variables to get cpyrit to find the CUDA toolkit resources?