Closed mxochicale closed 2 months ago
cublasGemmEx.cu:4:10: fatal error: helper_cuda.h: No such file or directory
4 | #include "helper_cuda.h"
| ^~~~~~~~~~~~~~~
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
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
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
INCLUDES = -I${CUDA_PATH}/samples/common/inc $(shell pkg-config opencv4 --cflags)
#INCLUDES = -I${CUDA_PATH}/samples/common/inc -I/usr/local/include/opencv4
https://github.com/PacktPublishing/Learn-CUDA-Programming