-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
On a system that features the following:
- 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
an attempt to compile via:
nvcc -o cuESTARFM kernel.cu cuLayer.cpp cuESTARFM_util.cpp trans.cpp -lgdal
returns
cuLayer.h(23): warning: type qualifier on return type is meaningless
cuLayer.h(24): warning: type qualifier on return type is meaningless
cuLayer.h(25): warning: type qualifier on return type is meaningless
kernel.cu(65): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(65): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(65): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(69): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(69): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(70): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(71): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(72): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(72): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(73): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(73): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(106): warning: variable "sum" was set but never used
kernel.cu(114): warning: variable "wi" was declared but never referenced
kernel.cu(344): warning: variable "r1" was declared but never referenced
kernel.cu(344): warning: variable "s1" was declared but never referenced
kernel.cu(345): warning: variable "k_h" was declared but never referenced
kernel.cu(409): warning: variable "sum" was set but never used
kernel.cu(416): warning: variable "wi" was declared but never referenced
kernel.cu(919): warning: variable "i" was declared but never referenced
kernel.cu(919): warning: variable "j" was declared but never referenced
kernel.cu(919): warning: variable "m" was declared but never referenced
kernel.cu(964): warning: result of call is not used
kernel.cu(977): warning: result of call is not used
kernel.cu(990): warning: result of call is not used
kernel.cu(1003): warning: result of call is not used
kernel.cu(1017): warning: result of call is not used
kernel.cu(1022): warning: conversion from a string literal to "char *" is deprecated
kernel.cu(1042): warning: result of call is not used
cuLayer.h(23): warning: type qualifier on return type is meaningless
cuLayer.h(24): warning: type qualifier on return type is meaningless
cuLayer.h(25): warning: type qualifier on return type is meaningless
kernel.cu(65): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(65): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(65): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(69): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(69): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(70): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(71): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(72): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(72): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(73): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(73): warning: reference is to variable "ii"
(44): here -- under old for-init scoping rules it would have been variable "ii"
(57): here
kernel.cu(964): warning: result of call is not used
kernel.cu(977): warning: result of call is not used
kernel.cu(990): warning: result of call is not used
kernel.cu(1003): warning: result of call is not used
kernel.cu(1017): warning: result of call is not used
kernel.cu(1022): warning: conversion from a string literal to "char *" is deprecated
kernel.cu(1042): warning: result of call is not used
kernel.cu: In function ‘void Re_fusion2(const char*, const char*, const char*, const char*, const char*, const char*, int, int, float, float)’:
kernel.cu:964:19: warning: ignoring return value of ‘CPLErr GDALRasterBand::RasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, GSpacing, GSpacing, GDALRasterIOExtraArg*)’, declared with attribute warn_unused_result [-Wunused-result]
hInBand1->RasterIO(GF_Read,0,0,width,height,BufferLandsat_0[k],width,height,GDT_Float32,0,0);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel.cu:977:19: warning: ignoring return value of ‘CPLErr GDALRasterBand::RasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, GSpacing, GSpacing, GDALRasterIOExtraArg*)’, declared with attribute warn_unused_result [-Wunused-result]
hInBand1->RasterIO(GF_Read,0,0,width,height,BufferModis_0[k],width,height,GDT_Float32,0,0);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel.cu:990:19: warning: ignoring return value of ‘CPLErr GDALRasterBand::RasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, GSpacing, GSpacing, GDALRasterIOExtraArg*)’, declared with attribute warn_unused_result [-Wunused-result]
hInBand1->RasterIO(GF_Read,0,0,width,height,BufferLandsat_1[k],width,height,GDT_Float32,0,0);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel.cu:1003:19: warning: ignoring return value of ‘CPLErr GDALRasterBand::RasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, GSpacing, GSpacing, GDALRasterIOExtraArg*)’, declared with attribute warn_unused_result [-Wunused-result]
hInBand1->RasterIO(GF_Read,0,0,width,height,BufferModis_1[k],width,height,GDT_Float32,0,0);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel.cu:1017:19: warning: ignoring return value of ‘CPLErr GDALRasterBand::RasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, GSpacing, GSpacing, GDALRasterIOExtraArg*)’, declared with attribute warn_unused_result [-Wunused-result]
hInBand1->RasterIO(GF_Read,0,0,width,height,BufferModis_2[k],width,height,GDT_Float32,0,0);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel.cu:1042:15: warning: ignoring return value of ‘CPLErr GDALRasterBand::RasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, GSpacing, GSpacing, GDALRasterIOExtraArg*)’, declared with attribute warn_unused_result [-Wunused-result]
HOut->RasterIO(GF_Write,0,0,width,height,BufferOutColor[b],width,height,GDT_Float32,0,0);
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cuLayer.cpp: In function ‘char* findImageTypeGDAL(std::__cxx11::string)’:
cuLayer.cpp:253:38: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (dstExtension == "bmp") Gtype = "BMP";
^~~~~
cuLayer.cpp:254:43: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
else if (dstExtension == "jpg") Gtype = "JPEG";
^~~~~~
cuLayer.cpp:255:43: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
else if (dstExtension == "png") Gtype = "PNG";
^~~~~
cuLayer.cpp:256:43: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
else if (dstExtension == "tif") Gtype = "GTiff";
^~~~~~~
cuLayer.cpp:257:43: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
else if (dstExtension == "gif") Gtype = "GIF";
^~~~~
cuLayer.cpp: In member function ‘int CuLayer::Write(std::__cxx11::string, std::__cxx11::string)’:
cuLayer.cpp:306:17: warning: ignoring return value of ‘CPLErr GDALRasterBand::RasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, GSpacing, GSpacing, GDALRasterIOExtraArg*)’, declared with attribute warn_unused_result [-Wunused-result]
HOut->RasterIO(GF_Write,0,0,this->m_width,this->m_height,this->m_data[b],this->m_width,this->m_height,GDT_Float32,0,0);
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cuLayer.cpp:312:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cuESTARFM_util.cpp: In function ‘int parseParameters(char*, CuLayer*, PARAMETER*)’:
cuESTARFM_util.cpp:31:22: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
char *separator = "= ,";
^~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgeos-3.7.0.so: undefined reference to `std::runtime_error::runtime_error(std::runtime_error&&)@GLIBCXX_3.4.26'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/lib/libgdal.so: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()@GLIBCXX_3.4.26'
collect2: error: ld returned 1 exit status
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels