mxochicale / code

:computer: :school_satchel: code
0 stars 0 forks source link

Testing Learn-CUDA-Programming #13

Closed mxochicale closed 2 months ago

mxochicale commented 2 years ago

https://github.com/PacktPublishing/Learn-CUDA-Programming

mxochicale commented 1 year ago

cufft.mgpu.cu:7:10: fatal error: helper_cuda.h: No such file or directory 7 | #include "helper_cuda.h" | ^~~~~~~ compilation terminated. make: *** [Makefile:36: cufft.mgpu] Error 1


Realised that cuda paths  don't contain `samples/common/inc` 

16387349 lrwxrwxrwx 1 root root 22 Nov 5 17:00 cuda -> /etc/alternatives/cuda 16387350 lrwxrwxrwx 1 root root 25 Nov 5 17:00 cuda-11 -> /etc/alternatives/cuda-11 17565544 drwxr-xr-x 15 root root 4.0K Nov 5 17:00 cuda-11.8


Solutions: https://stackoverflow.com/questions/19352941/trying-to-get-cuda-working-sample-cant-find-helper-cuda-h 
mxochicale commented 1 year ago
imageFilter.cpp:7:10: fatal error: FreeImage.h: No such file or directory
    7 | #include <FreeImage.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:25: imageFilter] Error 1

potential solution https://stackoverflow.com/questions/1898837/include-freeimage-h-not-found > sudo apt-get install libfreeimage3 libfreeimage-dev > https://forums.developer.nvidia.com/t/freeimage-is-not-set-up-correctly-please-ensure-freeimae-is-set-up-correctly/66950/2

mxochicale commented 1 year ago
g++     test.cpp   -o test
test.cpp:2:10: fatal error: opencv2/opencv.hpp: No such file or directory
    2 | #include "opencv2/opencv.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: test] Error 1