cuFSDAF icon indicating copy to clipboard operation
cuFSDAF copied to clipboard

Software and driver requirements for a successful compilation

Open NikosAlexandris opened this issue 4 years ago • 3 comments

Dear cuFSDAF authors,

is there a specific version of CUDA required for the source to compile/run? Would you recommend a specific Linux dsitribution/version?

Is a specific NVIDIA-driver version required?

Thank you

(ps- Sorry for the noise, I have posted an identical question for cuSTARFM: https://github.com/HPSCIL/cuSTARFM/issues/6#issue-656696040)

NikosAlexandris avatar Jul 14 '20 15:07 NikosAlexandris

  • Graphics card: Quadro K2000D (see https://www.nvidia.com/en-us/design-visualization/previous-quadro-desktop-gpus/)
  • gcc
(Funtoo 8.3.1-r8) 8.3.1 20190503
  • nvcc
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Fri_Feb__8_19:08:17_PST_2019
Cuda compilation tools, release 10.1, V10.1.105
  • GDAL
GDAL 3.0.4, released 2020/01/28

Trying to compile...

nvcc -o cuFSDAF main.cpp FSDAF.cpp kernel.cu -lgdal -lalglib

returns right away a missing file:

FSDAF.cpp:7:9: fatal error: dataanalysis.h: No such file or directory
 #include"dataanalysis.h"
         ^~~~~~~~~~~~~~~~
compilation terminated.

NikosAlexandris avatar Jul 15 '20 11:07 NikosAlexandris

nvcc -o cuFSDAF main.cpp FSDAF.cpp kernel.cu -lgdal -lalglib


returns right away a missing file:

FSDAF.cpp:7:9: fatal error: dataanalysis.h: No such file or directory #include"dataanalysis.h" ^~~~~~~~~~~~~~~~ compilation terminated.

The file "dataanalysis.h" is the head file of alglib. You may add the include path of alglib in your Makefile or command line:

nvcc -std=c++11 -o cuFSDAF main.cpp FSDAF.cpp kernel.cu -lgdal -lalglib -I /your-alglib-include-path

I am so sorry that I forgot to add "-std=c++11" in the command, and you should add it when compiling. Besides, I modified and updated the README.md of cuFSDAF. You'd better read the README.md and try to compile cuFSDAF again.

GaoHuanCUG avatar Jul 30 '20 08:07 GaoHuanCUG

Dear cuFSDAF authors,

is there a specific version of CUDA required for the source to compile/run? Would you recommend a specific Linux dsitribution/version?

Is a specific NVIDIA-driver version required?

Thank you

(ps- Sorry for the noise, I have posted an identical question for cuSTARFM: HPSCIL/cuSTARFM#6 (comment))

There is no specific version of CUDA/NVIDIA-driver for cuFSDAF and cuSTARFM to compile/run. The CUDA versions we used on Linux to compile cuFSDAF include CUDA 8.0, 9.1 and 10.0, and they all compile/run well. You could choose the versions we used or any other versions you like. As for the NVIDIA-driver version, you may refer to the following link: https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html

GaoHuanCUG avatar Jul 30 '20 08:07 GaoHuanCUG