Giter Club home page Giter Club logo

paralution's Introduction

paralution

Paralution

paralution's People

Contributors

prudhomm avatar

Stargazers

 avatar Truong Dang avatar Jeremie Vandenplas avatar

Watchers

 avatar James Cloos avatar Vincent Chabannes avatar  avatar  avatar

paralution's Issues

unable to compile the example paralution (laplace)

Hi ,
I was trying to compile the example .
Cuda 10.2 ans Centos 7

https://www.paralution.com/downloads/paralution-um.pdf

I export the lib paths and necessary steps ( make files and options)

$cat Make/files
Laplace.C
../../../../build/inc/plug-ins/OpenFOAM/laplace/solver/paralution_PCG.C
EXE = ./Laplace

$ cat Make/options
EXE_INC =
-I$(LIB_SRC)/finiteVolume/lnInclude
-I../../../../build/inc

EXE_LIBS =
-lfiniteVolume
-lOpenFOAM
-fopenmp
../../../../build/lib/libparalution.so

I was unable to compile the examples.

Can you please provide the details steps to compile sample programs.

here is the error log

             from /usr/local/include/c++/8.1.0/bits/postypes.h:40,
             from /usr/local/include/c++/8.1.0/iosfwd:40,
             from /usr/local/include/c++/8.1.0/ios:38,
             from /usr/local/include/c++/8.1.0/ostream:38,
             from /usr/local/include/c++/8.1.0/iostream:39,
             from ../../../../build/inc/base/backend_manager.hpp:37,
             from ../../../../build/inc/paralution.hpp:38,
             from Laplace.C:2:

/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.1.0/include/stddef.h:216:23: note: ‘size_t’
typedef SIZE_TYPE size_t;
^~~~~~
In file included from /usr/local/include/c++/8.1.0/bits/move.h:55,
from /usr/local/include/c++/8.1.0/bits/nested_exception.h:40,
from /usr/local/include/c++/8.1.0/exception:144,
from /usr/local/include/c++/8.1.0/ios:39,
from /usr/local/include/c++/8.1.0/ostream:38,
from /usr/local/include/c++/8.1.0/iostream:39,
from ../../../../build/inc/base/backend_manager.hpp:37,
from ../../../../build/inc/paralution.hpp:38,
from Laplace.C:2:
/usr/local/include/c++/8.1.0/type_traits:1300:61: error: template argument 1 is invalid
: public integral_constant<std::size_t, alignof(_Tp)> { };
^
/usr/local/include/c++/8.1.0/type_traits:1300:61: note: invalid template non-type parameter
/usr/local/include/c++/8.1.0/type_traits:1305:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, 0> { };
^~~~~~
/usr/local/include/c++/8.1.0/type_traits:1305:37: note: suggested alternative:
In file included from /usr/include/wchar.h:51,
from /usr/local/include/c++/8.1.0/cwchar:44,
from /usr/local/include/c++/8.1.0/bits/postypes.h:40,
from /usr/local/include/c++/8.1.0/iosfwd:40,
from /usr/local/include/c++/8.1.0/ios:38,
from /usr/local/include/c++/8.1.0/ostream:38,
from /usr/local/include/c++/8.1.0/iostream:39,
from ../../../../build/inc/base/backend_manager.hpp:37,
from ../../../../build/inc/paralution.hpp:38,
from /usr/local/include/c++/8.1.0/iostream:40,
from ../../../../build/inc/base/backend_manager.hpp:37,
from ../../../../build/inc/paralution.hpp:38,
from Laplace.C:2:
/usr/local/include/c++/8.1.0/bits/istream.tcc:501:12: error: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’ is not a static data member of ‘class std::basic_istream<_CharT, _Traits>’
ignore(streamsize __n)
^~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc:501:12: error: template definition of non-template ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’
/usr/local/include/c++/8.1.0/bits/istream.tcc:501:12: error: ‘streamsize’ was not declared in this scope
/usr/local/include/c++/8.1.0/bits/istream.tcc:501:12: note: suggested alternative: ‘streambuf’
ignore(streamsize __n)
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/istream.tcc:563:12: error: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’ is not a static data member of ‘class std::basic_istream<_CharT, _Traits>’
ignore(streamsize __n, int_type __delim)
^~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc:563:12: error: template definition of non-template ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’
/usr/local/include/c++/8.1.0/bits/istream.tcc:563:12: error: ‘streamsize’ was not declared in this scope
/usr/local/include/c++/8.1.0/bits/istream.tcc:563:12: note: suggested alternative: ‘streambuf’
ignore(streamsize __n, int_type __delim)
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/istream.tcc:563:37: error: expected primary-expression before ‘__delim’
ignore(streamsize __n, int_type __delim)
^~~~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::peek()’:
/usr/local/include/c++/8.1.0/bits/istream.tcc:631:7: error: ‘_M_gcount’ was not declared in this scope
_M_gcount = 0;
^~~~~~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc:631:7: note: suggested alternative: ‘_S_out’
_M_gcount = 0;
^~~~~~~~~
_S_out
/usr/local/include/c++/8.1.0/bits/istream.tcc: At global scope:
/usr/local/include/c++/8.1.0/bits/istream.tcc:658:26: error: ‘streamsize’ has not been declared
read(char_type* __s, streamsize __n)
^~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::read(std::basic_istream<_CharT, _Traits>::char_type*, int)’:
/usr/local/include/c++/8.1.0/bits/istream.tcc:660:7: error: ‘_M_gcount’ was not declared in this scope
_M_gcount = 0;
^~~~~~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc:660:7: note: suggested alternative: ‘_S_out’
_M_gcount = 0;
^~~~~~~~~
_S_out
/usr/local/include/c++/8.1.0/bits/istream.tcc: At global scope:
/usr/local/include/c++/8.1.0/bits/istream.tcc:685:5: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
streamsize
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::putback(std::basic_istream<_CharT, _Traits>::char_type)’:
/usr/local/include/c++/8.1.0/bits/istream.tcc:723:7: error: ‘_M_gcount’ was not declared in this scope
_M_gcount = 0;
^~~~~~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc:723:7: note: suggested alternative: ‘_S_out’
_M_gcount = 0;
^~~~~~~~~
_S_out
/usr/local/include/c++/8.1.0/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::unget()’:
/usr/local/include/c++/8.1.0/bits/istream.tcc:758:7: error: ‘_M_gcount’ was not declared in this scope
_M_gcount = 0;
^~~~~~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc:758:7: note: suggested alternative: ‘_S_out’
_M_gcount = 0;
^~~~~~~~~
_S_out
/usr/local/include/c++/8.1.0/bits/istream.tcc: In function ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)’:
/usr/local/include/c++/8.1.0/bits/istream.tcc:971:7: error: ‘streamsize’ was not declared in this scope
streamsize __extracted = 0;
^~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc:971:7: note: suggested alternative: ‘streambuf’
streamsize __extracted = 0;
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/istream.tcc:979:18: error: expected ‘;’ before ‘__num’
streamsize __num = __in.width();
^~~~~~
;
/usr/local/include/c++/8.1.0/bits/istream.tcc:980:12: error: ‘__num’ was not declared in this scope
if (__num <= 0)
^~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc:980:12: note: suggested alternative: ‘enum’
if (__num <= 0)
^~~~~
enum
/usr/local/include/c++/8.1.0/bits/istream.tcc:981:49: error: type/value mismatch at argument 1 in template parameter list for ‘template struct __gnu_cxx::__numeric_traits’
__num = __gnu_cxx::__numeric_traits::__max;
^
/usr/local/include/c++/8.1.0/bits/istream.tcc:981:49: note: expected a type, got ‘streamsize’
/usr/local/include/c++/8.1.0/bits/istream.tcc:989:15: error: ‘__extracted’ was not declared in this scope
while (__extracted < __num - 1
^~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc:989:15: note: suggested alternative: ‘__traitor’
while (__extracted < __num - 1
^~~~~~~~~~~
__traitor
/usr/local/include/c++/8.1.0/bits/istream.tcc:989:29: error: ‘__num’ was not declared in this scope
while (__extracted < __num - 1
^~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc:989:29: note: suggested alternative: ‘enum’
while (__extracted < __num - 1
^~~~~
enum
/usr/local/include/c++/8.1.0/bits/istream.tcc:1014:12: error: ‘__extracted’ was not declared in this scope
if (!__extracted)
^~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/istream.tcc:1014:12: note: suggested alternative: ‘__traitor’
if (!__extracted)
^~~~~~~~~~~
__traitor
In file included from /usr/local/include/c++/8.1.0/fstream:42,
from ../../../../build/inc/base/backend_manager.hpp:38,
from ../../../../build/inc/paralution.hpp:38,
from Laplace.C:2:
/usr/local/include/c++/8.1.0/x86_64-pc-linux-gnu/bits/basic_file.h: At global scope:
/usr/local/include/c++/8.1.0/x86_64-pc-linux-gnu/bits/basic_file.h:107:7: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
streamsize
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/x86_64-pc-linux-gnu/bits/basic_file.h:110:7: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
streamsize
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/x86_64-pc-linux-gnu/bits/basic_file.h:114:7: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
streamsize
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/x86_64-pc-linux-gnu/bits/basic_file.h:123:7: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
streamsize
^~~~~~~~~~
streambuf
In file included from ../../../../build/inc/base/backend_manager.hpp:38,
from ../../../../build/inc/paralution.hpp:38,
from Laplace.C:2:
/usr/local/include/c++/8.1.0/fstream:183:7: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
streamsize _M_ext_buf_size;
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/fstream:355:15: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
virtual streamsize
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/fstream:382:42: error: ‘streamsize’ has not been declared
_M_convert_to_external(char_type*, streamsize);
^~~~~~~~~~
/usr/local/include/c++/8.1.0/fstream:397:30: error: ‘streamsize’ has not been declared
setbuf(char_type* __s, streamsize __n);
^~~~~~~~~~
/usr/local/include/c++/8.1.0/fstream:420:15: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
virtual streamsize
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/fstream:423:15: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
virtual streamsize
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/fstream:443:21: error: ‘streamsize’ has not been declared
_M_set_buffer(streamsize __off)
^~~~~~~~~~
In file included from /usr/local/include/c++/8.1.0/fstream:1169,
from ../../../../build/inc/base/backend_manager.hpp:38,
from ../../../../build/inc/paralution.hpp:38,
from Laplace.C:2:
/usr/local/include/c++/8.1.0/bits/fstream.tcc: In member function ‘void std::basic_filebuf<_CharT, _Traits>::_M_destroy_internal_buffer()’:
/usr/local/include/c++/8.1.0/bits/fstream.tcc:73:7: error: ‘_M_ext_buf_size’ was not declared in this scope
_M_ext_buf_size = 0;
^~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:73:7: note: suggested alternative: ‘_M_buf_size’
_M_ext_buf_size = 0;
^~~~~~~~~~~~~~~
_M_buf_size
/usr/local/include/c++/8.1.0/bits/fstream.tcc: In constructor ‘std::basic_filebuf<_CharT, _Traits>::basic_filebuf()’:
/usr/local/include/c++/8.1.0/bits/fstream.tcc:85:35: error: class ‘std::basic_filebuf<_CharT, _Traits>’ does not have any field named ‘_M_ext_buf_size’
_M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0),
^~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc: In constructor ‘std::basic_filebuf<_CharT, _Traits>::basic_filebuf(std::basic_filebuf<_CharT, _Traits>&&)’:
/usr/local/include/c++/8.1.0/bits/fstream.tcc:113:5: error: class ‘std::basic_filebuf<_CharT, _Traits>’ does not have any field named ‘_M_ext_buf_size’
_M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)),
^~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc: In member function ‘std::basic_filebuf<_CharT, _Traits>& std::basic_filebuf<_CharT, _Traits>::operator=(std::basic_filebuf<_CharT, _Traits>&&)’:
/usr/local/include/c++/8.1.0/bits/fstream.tcc:137:7: error: ‘_M_ext_buf_size’ was not declared in this scope
_M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0);
^~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:137:7: note: suggested alternative: ‘_M_buf_size’
_M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0);
^~~~~~~~~~~~~~~
_M_buf_size
/usr/local/include/c++/8.1.0/bits/fstream.tcc: In member function ‘void std::basic_filebuf<_CharT, _Traits>::swap(std::basic_filebuf<_CharT, _Traits>&)’:
/usr/local/include/c++/8.1.0/bits/fstream.tcc:165:17: error: ‘_M_ext_buf_size’ was not declared in this scope
std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size);
^~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:165:17: note: suggested alternative: ‘_M_buf_size’
std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size);
^~~~~~~~~~~~~~~
_M_buf_size
/usr/local/include/c++/8.1.0/bits/fstream.tcc: At global scope:
/usr/local/include/c++/8.1.0/bits/fstream.tcc:261:5: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
streamsize
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/fstream.tcc: In member function ‘virtual std::basic_filebuf<_CharT, _Traits>::int_type std::basic_filebuf<_CharT, _Traits>::underflow()’:
/usr/local/include/c++/8.1.0/bits/fstream.tcc:316:4: error: ‘streamsize’ was not declared in this scope
streamsize __ilen = 0;
^~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:316:4: note: suggested alternative: ‘streambuf’
streamsize __ilen = 0;
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/fstream.tcc:320:8: error: ‘__ilen’ was not declared in this scope
__ilen = _M_file.xsgetn(reinterpret_cast<char*>(this->eback()),
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:320:8: note: suggested alternative: ‘_M_file’
__ilen = _M_file.xsgetn(reinterpret_cast<char*>(this->eback()),
^~~~~~
_M_file
/usr/local/include/c++/8.1.0/bits/fstream.tcc:320:25: error: ‘std::basic_filebuf<_CharT, _Traits>::__file_type’ {aka ‘class std::__basic_file’} has no member named ‘xsgetn’
__ilen = _M_file.xsgetn(reinterpret_cast<char*>(this->eback()),
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:330:18: error: expected ‘;’ before ‘__blen’
streamsize __blen; // Minimum buffer size.
^~~~~~~
;
/usr/local/include/c++/8.1.0/bits/fstream.tcc:331:18: error: expected ‘;’ before ‘__rlen’
streamsize __rlen; // Number of chars to read.
^~~~~~~
;
/usr/local/include/c++/8.1.0/bits/fstream.tcc:333:3: error: ‘__blen’ was not declared in this scope
__blen = __rlen = __buflen * __enc;
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:333:3: note: suggested alternative: ‘mblen’
__blen = __rlen = __buflen * __enc;
^~~~~~
mblen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:333:12: error: ‘__rlen’ was not declared in this scope
__blen = __rlen = __buflen * __enc;
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:333:12: note: suggested alternative: ‘mbrlen’
__blen = __rlen = __buflen * __enc;
^~~~~~
mbrlen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:336:5: error: ‘__blen’ was not declared in this scope
__blen = __buflen + _M_codecvt->max_length() - 1;
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:336:5: note: suggested alternative: ‘mblen’
__blen = __buflen + _M_codecvt->max_length() - 1;
^~~~~~
mblen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:337:5: error: ‘__rlen’ was not declared in this scope
__rlen = __buflen;
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:337:5: note: suggested alternative: ‘mbrlen’
__rlen = __buflen;
^~~~~~
mbrlen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:339:14: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
const streamsize __remainder = _M_ext_end - _M_ext_next;
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/fstream.tcc:340:8: error: ‘__rlen’ was not declared in this scope
__rlen = __rlen > __remainder ? __rlen - __remainder : 0;
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:340:8: note: suggested alternative: ‘mbrlen’
__rlen = __rlen > __remainder ? __rlen - __remainder : 0;
^~~~~~
mbrlen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:340:26: error: ‘__remainder’ was not declared in this scope
__rlen = __rlen > __remainder ? __rlen - __remainder : 0;
^~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:349:12: error: ‘_M_ext_buf_size’ was not declared in this scope
if (_M_ext_buf_size < __blen)
^~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:349:12: note: suggested alternative: ‘_M_buf_size’
if (_M_ext_buf_size < __blen)
^~~~~~~~~~~~~~~
_M_buf_size
/usr/local/include/c++/8.1.0/bits/fstream.tcc:349:30: error: ‘__blen’ was not declared in this scope
if (_M_ext_buf_size < __blen)
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:349:30: note: suggested alternative: ‘mblen’
if (_M_ext_buf_size < __blen)
^~~~~~
mblen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:373:48: error: ‘_M_ext_buf_size’ was not declared in this scope
if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size)
^~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:373:48: note: suggested alternative: ‘_M_buf_size’
if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size)
^~~~~~~~~~~~~~~
_M_buf_size
/usr/local/include/c++/8.1.0/bits/fstream.tcc:379:19: error: expected ‘;’ before ‘__elen’
streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen);
^~~~~~~
;
/usr/local/include/c++/8.1.0/bits/fstream.tcc:380:13: error: ‘__elen’ was not declared in this scope
if (__elen == 0)
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:380:13: note: suggested alternative: ‘__lg’
if (__elen == 0)
^~~~~~
__lg
/usr/local/include/c++/8.1.0/bits/fstream.tcc:384:23: error: ‘__elen’ was not declared in this scope
_M_ext_end += __elen;
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:384:23: note: suggested alternative: ‘__lg’
_M_ext_end += __elen;
^~~~~~
__lg
/usr/local/include/c++/8.1.0/bits/fstream.tcc:396:9: error: ‘__ilen’ was not declared in this scope
__ilen = std::min(__avail, __buflen);
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:396:9: note: suggested alternative: ‘__iend’
__ilen = std::min(__avail, __buflen);
^~~~~~
__iend
/usr/local/include/c++/8.1.0/bits/fstream.tcc:403:7: error: ‘__ilen’ was not declared in this scope
__ilen = __iend - this->eback();
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:403:7: note: suggested alternative: ‘__iend’
__ilen = __iend - this->eback();
^~~~~~
__iend
/usr/local/include/c++/8.1.0/bits/fstream.tcc:413:15: error: ‘__ilen’ was not declared in this scope
while (__ilen == 0 && !__got_eof);
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:413:15: note: suggested alternative: ‘_M_file’
while (__ilen == 0 && !__got_eof);
^~~~~~
_M_file
/usr/local/include/c++/8.1.0/bits/fstream.tcc:416:8: error: ‘__ilen’ was not declared in this scope
if (__ilen > 0)
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:416:8: note: suggested alternative: ‘_M_file’
if (__ilen > 0)
^~~~~~
_M_file
/usr/local/include/c++/8.1.0/bits/fstream.tcc: At global scope:
/usr/local/include/c++/8.1.0/bits/fstream.tcc:572:44: error: ‘streamsize’ has not been declared
_M_convert_to_external(_CharT* __ibuf, streamsize __ilen)
^~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc: In member function ‘bool std::basic_filebuf<_CharT, _Traits>::_M_convert_to_external(_CharT*, int)’:
/usr/local/include/c++/8.1.0/bits/fstream.tcc:575:7: error: ‘streamsize’ was not declared in this scope
streamsize __elen;
^~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:575:7: note: suggested alternative: ‘streambuf’
streamsize __elen;
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/fstream.tcc:576:17: error: expected ‘;’ before ‘__plen’
streamsize __plen;
^~~~~~~
;
/usr/local/include/c++/8.1.0/bits/fstream.tcc:579:4: error: ‘__elen’ was not declared in this scope
__elen = _M_file.xsputn(reinterpret_cast<char*>(__ibuf), __ilen);
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:579:4: note: suggested alternative: ‘__ilen’
__elen = _M_file.xsputn(reinterpret_cast<char*>(__ibuf), __ilen);
^~~~~~
__ilen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:579:21: error: ‘std::basic_filebuf<_CharT, _Traits>::__file_type’ {aka ‘class std::__basic_file’} has no member named ‘xsputn’
__elen = _M_file.xsputn(reinterpret_cast<char*>(__ibuf), __ilen);
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:580:4: error: ‘__plen’ was not declared in this scope
__plen = __ilen;
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:580:4: note: suggested alternative: ‘__ilen’
__plen = __ilen;
^~~~~~
__ilen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:586:14: error: expected ‘;’ before ‘__blen’
streamsize __blen = __ilen * _M_codecvt->max_length();
^~~~~~~
;
/usr/local/include/c++/8.1.0/bits/fstream.tcc:587:54: error: ‘__blen’ was not declared in this scope
char* __buf = static_cast<char*>(__builtin_alloca(__blen));
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:587:54: note: suggested alternative: ‘__ilen’
char* __buf = static_cast<char*>(__builtin_alloca(__blen));
^~~~~~
__ilen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:607:4: error: ‘__elen’ was not declared in this scope
__elen = _M_file.xsputn(__buf, __blen);
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:607:4: note: suggested alternative: ‘__ilen’
__elen = _M_file.xsputn(__buf, __blen);
^~~~~~
__ilen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:607:21: error: ‘std::basic_filebuf<_CharT, _Traits>::__file_type’ {aka ‘class std::__basic_file’} has no member named ‘xsputn’
__elen = _M_file.xsputn(__buf, __blen);
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:608:4: error: ‘__plen’ was not declared in this scope
__plen = __blen;
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:608:4: note: suggested alternative: ‘__ilen’
__plen = __blen;
^~~~~~
__ilen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:614:18: error: expected ‘;’ before ‘__rlen’
streamsize __rlen = this->pptr() - __iend;
^~~~~~~
;
/usr/local/include/c++/8.1.0/bits/fstream.tcc:616:21: error: ‘__rlen’ was not declared in this scope
__iresume + __rlen, __iend, __buf,
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:616:21: note: suggested alternative: ‘__ilen’
__iresume + __rlen, __iend, __buf,
^~~~~~
__ilen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:621:22: error: ‘std::basic_filebuf<_CharT, _Traits>::__file_type’ {aka ‘class std::__basic_file’} has no member named ‘xsputn’
__elen = _M_file.xsputn(__buf, __rlen);
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:629:14: error: ‘__elen’ was not declared in this scope
return __elen == __plen;
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:629:14: note: suggested alternative: ‘__ilen’
return __elen == __plen;
^~~~~~
__ilen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:629:24: error: ‘__plen’ was not declared in this scope
return __elen == __plen;
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:629:24: note: suggested alternative: ‘__ilen’
return __elen == __plen;
^~~~~~
__ilen
/usr/local/include/c++/8.1.0/bits/fstream.tcc: At global scope:
/usr/local/include/c++/8.1.0/bits/fstream.tcc:633:5: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
streamsize
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/fstream.tcc:719:5: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
streamsize
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/fstream.tcc:769:28: error: ‘streamsize’ has not been declared
setbuf(char_type* __s, streamsize __n)
^~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc: In member function ‘bool std::basic_filebuf<_CharT, _Traits>::_M_terminate_output()’:
/usr/local/include/c++/8.1.0/bits/fstream.tcc:938:4: error: ‘streamsize’ was not declared in this scope
streamsize __ilen = 0;
^~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:938:4: note: suggested alternative: ‘streambuf’
streamsize __ilen = 0;
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/fstream.tcc:950:5: error: ‘__ilen’ was not declared in this scope
__ilen = __next - __buf;
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:950:5: note: suggested alternative: ‘__blen’
__ilen = __next - __buf;
^~~~~~
__blen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:953:15: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
const streamsize __elen = _M_file.xsputn(__buf, __ilen);
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/fstream.tcc:954:13: error: ‘__elen’ was not declared in this scope
if (__elen != __ilen)
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:954:13: note: suggested alternative: ‘__blen’
if (__elen != __ilen)
^~~~~~
__blen
/usr/local/include/c++/8.1.0/bits/fstream.tcc:959:43: error: ‘__ilen’ was not declared in this scope
while (__r == codecvt_base::partial && __ilen > 0 && __testvalid);
^~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:959:43: note: suggested alternative: ‘__blen’
while (__r == codecvt_base::partial && __ilen > 0 && __testvalid);
^~~~~~
__blen
/usr/local/include/c++/8.1.0/bits/fstream.tcc: In member function ‘virtual void std::basic_filebuf<_CharT, _Traits>::imbue(const std::locale&)’:
/usr/local/include/c++/8.1.0/bits/fstream.tcc:1027:15: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
const streamsize __remainder = _M_ext_end - _M_ext_next;
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/bits/fstream.tcc:1028:13: error: ‘__remainder’ was not declared in this scope
if (__remainder)
^~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/fstream.tcc:1032:35: error: ‘__remainder’ was not declared in this scope
_M_ext_end = _M_ext_buf + __remainder;
^~~~~~~~~~~
In file included from /usr/local/include/c++/8.1.0/complex:45,
from ../../../../build/inc/base/base_paralution.hpp:39,
from ../../../../build/inc/base/operator.hpp:37,
from ../../../../build/inc/paralution.hpp:40,
from Laplace.C:2:
/usr/local/include/c++/8.1.0/sstream: At global scope:
/usr/local/include/c++/8.1.0/sstream:211:15: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
virtual streamsize
^~~~~~~~~~
streambuf
/usr/local/include/c++/8.1.0/sstream:244:30: error: ‘streamsize’ has not been declared
setbuf(char_type* __s, streamsize __n)
^~~~~~~~~~
In file included from /usr/local/include/c++/8.1.0/bits/basic_string.h:40,
from /usr/local/include/c++/8.1.0/string:52,
from /usr/local/include/c++/8.1.0/bits/locale_classes.h:40,
from /usr/local/include/c++/8.1.0/bits/ios_base.h:41,
from /usr/local/include/c++/8.1.0/ios:42,
from /usr/local/include/c++/8.1.0/ostream:38,
from /usr/local/include/c++/8.1.0/iostream:39,
from ../../../../build/inc/base/backend_manager.hpp:37,
from ../../../../build/inc/paralution.hpp:38,
from Laplace.C:2:
/usr/local/include/c++/8.1.0/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocatorparalution::ParalutionObj*, paralution::ParalutionObj*>’:
/usr/local/include/c++/8.1.0/bits/stl_vector.h:84:21: required from ‘struct std::_Vector_base<paralution::ParalutionObj*, std::allocatorparalution::ParalutionObj* >’
/usr/local/include/c++/8.1.0/bits/stl_vector.h:339:11: required from ‘class std::vectorparalution::ParalutionObj*’
../../../../build/inc/base/base_paralution.hpp:62:37: required from here
/usr/local/include/c++/8.1.0/ext/alloc_traits.h:61:53: error: no type named ‘size_type’ in ‘struct std::allocator_traits<std::allocatorparalution::ParalutionObj* >’
typedef typename _Base_type::size_type size_type;
^~~~~~~~~
/usr/local/include/c++/8.1.0/ext/alloc_traits.h:62:53: error: no type named ‘difference_type’ in ‘struct std::allocator_traits<std::allocatorparalution::ParalutionObj* >’
typedef typename _Base_type::difference_type difference_type;
^~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/ext/alloc_traits.h:70:23: error: no members matching ‘__gnu_cxx::__alloc_traits<std::allocatorparalution::ParalutionObj*, paralution::ParalutionObj*>::_Base_type {aka std::allocator_traits<std::allocatorparalution::ParalutionObj* >}::max_size’ in ‘__gnu_cxx::__alloc_traits<std::allocatorparalution::ParalutionObj*, paralution::ParalutionObj*>::_Base_type’ {aka ‘struct std::allocator_traits<std::allocatorparalution::ParalutionObj* >’}
using _Base_type::max_size;
^~~~~~~~
/usr/local/include/c++/8.1.0/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator, double>’:
/usr/local/include/c++/8.1.0/bits/stl_vector.h:84:21: required from ‘struct std::_Vector_base<double, std::allocator >’
/usr/local/include/c++/8.1.0/bits/stl_vector.h:339:11: required from ‘class std::vector’
../../../../build/inc/solvers/iter_ctrl.hpp:163:23: required from here
/usr/local/include/c++/8.1.0/ext/alloc_traits.h:61:53: error: no type named ‘size_type’ in ‘struct std::allocator_traits<std::allocator >’
typedef typename _Base_type::size_type size_type;
^~~~~~~~~
/usr/local/include/c++/8.1.0/ext/alloc_traits.h:62:53: error: no type named ‘difference_type’ in ‘struct std::allocator_traits<std::allocator >’
typedef typename _Base_type::difference_type difference_type;
^~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/ext/alloc_traits.h:70:23: error: no members matching ‘__gnu_cxx::__alloc_traits<std::allocator, double>::_Base_type {aka std::allocator_traits<std::allocator >}::max_size’ in ‘__gnu_cxx::__alloc_traits<std::allocator, double>::_Base_type’ {aka ‘struct std::allocator_traits<std::allocator >’}
using _Base_type::max_size;
^~~~~~~~
In file included from Laplace.C:7:
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/setRootCase.H: In function ‘int main(int, char**)’:
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/setRootCase.H:1:1: error: ‘Foam’ has not been declared
Foam::argList args(argc, argv);
^~~~
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/setRootCase.H:2:6: error: ‘args’ was not declared in this scope
if (!args.checkRootCase())
^~~~
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/setRootCase.H:2:6: note: suggested alternative: ‘argc’
if (!args.checkRootCase())
^~~~
argc
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/setRootCase.H:4:5: error: ‘Foam’ has not been declared
Foam::FatalError.exit();
^~~~
In file included from Laplace.C:9:
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/createTime.H:1:1: error: ‘Foam’ has not been declared
Foam::Info<< "Create time\n" << Foam::endl;
^~~~
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/createTime.H:1:33: error: ‘Foam’ has not been declared
Foam::Info<< "Create time\n" << Foam::endl;
^~~~
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/createTime.H:3:1: error: ‘Foam’ has not been declared
Foam::Time runTime(Foam::Time::controlDictName, args);
^~~~
In file included from Laplace.C:10:
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/createMesh.H:1:1: error: ‘Foam’ has not been declared
Foam::Info
^~~~
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/createMesh.H:3:8: error: ‘runTime’ was not declared in this scope
<< runTime.timeName() << Foam::nl << Foam::endl;
^~~~~~~
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/createMesh.H:3:8: note: suggested alternative: ‘rename’
<< runTime.timeName() << Foam::nl << Foam::endl;
^~~~~~~
rename
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/createMesh.H:3:30: error: ‘Foam’ has not been declared
<< runTime.timeName() << Foam::nl << Foam::endl;
^~~~
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/createMesh.H:3:42: error: ‘Foam’ has not been declared
<< runTime.timeName() << Foam::nl << Foam::endl;
^~~~
/home/tcs/sreevalli/openfoam/OpenFOAM-7/src/OpenFOAM/lnInclude/createMesh.H:5:1: error: ‘Foam’ has not been declared
Foam::fvMesh mesh
^~~~
In file included from Laplace.C:11:
createFields.H:1:5: error: ‘Info’ was not declared in this scope
Info<< "Reading field T\n" << endl;
^~~~
createFields.H:1:5: note: suggested alternative: ‘ynf’
Info<< "Reading field T\n" << endl;
^~~~
ynf
createFields.H:1:35: error: ‘endl’ was not declared in this scope
Info<< "Reading field T\n" << endl;
^~~~
createFields.H:1:35: note: suggested alternative:
In file included from /usr/local/include/c++/8.1.0/iostream:39,
from ../../../../build/inc/base/backend_manager.hpp:37,
from ../../../../build/inc/paralution.hpp:38,
from Laplace.C:2:
/usr/local/include/c++/8.1.0/ostream:590:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
In file included from Laplace.C:11:
createFields.H:3:5: error: ‘volScalarField’ was not declared in this scope
volScalarField T
^~~~~~~~~~~~~~
createFields.H:18:5: error: ‘IOdictionary’ was not declared in this scope
IOdictionary transportProperties
^~~~~~~~~~~~
createFields.H:33:5: error: ‘dimensionedScalar’ was not declared in this scope
dimensionedScalar DT
^~~~~~~~~~~~~~~~~
In file included from /usr/local/include/c++/8.1.0/string:52,
from /usr/local/include/c++/8.1.0/bits/locale_classes.h:40,
from /usr/local/include/c++/8.1.0/bits/ios_base.h:41,
from /usr/local/include/c++/8.1.0/ios:42,
from /usr/local/include/c++/8.1.0/ostream:38,
from /usr/local/include/c++/8.1.0/iostream:39,
from ../../../../build/inc/base/backend_manager.hpp:37,
from ../../../../build/inc/paralution.hpp:38,
from Laplace.C:2:
/usr/local/include/c++/8.1.0/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’:
/usr/local/include/c++/8.1.0/system_error:189:40: required from here
/usr/local/include/c++/8.1.0/bits/basic_string.h:542:24: error: ‘class std::__cxx11::basic_string’ has no member named ‘_M_allocated_capacity’; did you mean ‘_S_local_capacity’?
_M_capacity(__str._M_allocated_capacity);
~~~~~~^~~~~~~~~~~~~~~~~~~~~
_S_local_capacity
/usr/local/include/c++/8.1.0/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’:
/usr/local/include/c++/8.1.0/system_error:351:50: required from here
/usr/local/include/c++/8.1.0/bits/basic_string.h:5968:33: error: ‘class std::__cxx11::basic_string’ has no member named ‘size’
const auto __size = __lhs.size() + __rhs.size();
~~~~~~^~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:5968:48: error: ‘class std::__cxx11::basic_string’ has no member named ‘size’
const auto __size = __lhs.size() + __rhs.size();
~~~~~~^~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:5969:43: error: ‘class std::__cxx11::basic_string’ has no member named ‘capacity’
const bool __cond = (__size > __lhs.capacity()
~~~~~~^~~~~~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:5970:26: error: ‘class std::__cxx11::basic_string’ has no member named ‘capacity’
&& __size <= __rhs.capacity());
~~~~~~^~~~~~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:5971:32: error: no matching function for call to ‘std::__cxx11::basic_string::insert(int, std::__cxx11::basic_string&)’
return __cond ? std::move(__rhs.insert(0, __lhs))
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:1558:9: note: candidate: ‘template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; = ; _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’
insert(const_iterator __p, _InputIterator __beg, _InputIterator __end)
^~~~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:1558:9: note: template argument deduction/substitution failed:
/usr/local/include/c++/8.1.0/bits/basic_string.h:5971:32: note: candidate expects 3 arguments, 2 provided
return __cond ? std::move(__rhs.insert(0, __lhs))
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:1592:7: note: candidate: ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator, std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*]’
insert(iterator __p, initializer_list<_CharT> __l)
^~~~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:1592:7: note: no known conversion for argument 1 from ‘int’ to ‘std::__cxx11::basic_string::iterator’ {aka ‘__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string >’}
/usr/local/include/c++/8.1.0/bits/basic_string.h:1719:7: note: candidate: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::const_pointer = const char*]’
insert(__const_iterator __p, _CharT __c)
^~~~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:1719:7: note: no known conversion for argument 1 from ‘int’ to ‘std::__cxx11::basic_string::__const_iterator’ {aka ‘__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string >’}
/usr/local/include/c++/8.1.0/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’:
/usr/local/include/c++/8.1.0/system_error:354:51: required from here
/usr/local/include/c++/8.1.0/bits/basic_string.h:5979:23: error: no matching function for call to ‘std::__cxx11::basic_string::insert(int, const char*&)’
{ return std::move(__rhs.insert(0, __lhs)); }
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:1558:9: note: candidate: ‘template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; = ; _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’
insert(const_iterator __p, _InputIterator __beg, _InputIterator __end)
^~~~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:1558:9: note: template argument deduction/substitution failed:
/usr/local/include/c++/8.1.0/bits/basic_string.h:5979:23: note: candidate expects 3 arguments, 2 provided
{ return std::move(__rhs.insert(0, __lhs)); }
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:1592:7: note: candidate: ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator, std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*]’
insert(iterator __p, initializer_list<_CharT> __l)
^~~~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:1592:7: note: no known conversion for argument 1 from ‘int’ to ‘std::__cxx11::basic_string::iterator’ {aka ‘__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string >’}
/usr/local/include/c++/8.1.0/bits/basic_string.h:1719:7: note: candidate: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::const_pointer = const char*]’
insert(__const_iterator __p, _CharT __c)
^~~~~~
/usr/local/include/c++/8.1.0/bits/basic_string.h:1719:7: note: no known conversion for argument 1 from ‘int’ to ‘std::__cxx11::basic_string::__const_iterator’ {aka ‘__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string >’}
/usr/local/include/c++/8.1.0/bits/basic_string.h: In instantiation of ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_dispose() [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’:
/usr/local/include/c++/8.1.0/bits/basic_string.h:647:9: required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’
/usr/local/include/c++/8.1.0/system_error:189:40: required from here
/usr/local/include/c++/8.1.0/bits/basic_string.h:221:15: error: using invalid field ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::::_M_allocated_capacity’
_M_destroy(_M_allocated_capacity);
^~~~~~~~~~~~~~~~~~~~~
make: *** [Make/linux64GccDPInt32Opt/Laplace.o] Error 1

Regards,
Srinivas

paralution_fortran.cpp example falling

Hi ,

I am trying to compile sample programs in paralution (1.0) and Cuda 10.2 and Centos 7.
I was getting below error .

can you please suggest the steps or what is the problem ?
make
gfortran -o paralution_solver mmio.o paralution_fortran.o paralution_solver.o ../../../build/lib/libparalution.so -O3 -lstdc++ -fopenmp -lcudart -lcusparse -lcublas -lOpenCL -L/usr/local/cuda/lib64 -Wall
paralution_fortran.o: In function paralution_fortran_solve_coo': paralution_fortran.cpp:(.text+0x2235): undefined reference to paralution::LocalVector::SetDataPtr(double**, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int)'
paralution_fortran.cpp:(.text+0x22e2): undefined reference to paralution::LocalVector<double>::SetDataPtr(double**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)' paralution_fortran.cpp:(.text+0x25dd): undefined reference to paralution::LocalMatrix::SetDataPtrCOO(int**, int**, double**, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, int, int)'
paralution_fortran.o: In function paralution_fortran_solve_csr': paralution_fortran.cpp:(.text+0x2b31): undefined reference to paralution::LocalVector::SetDataPtr(double**, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int)'
paralution_fortran.cpp:(.text+0x2be3): undefined reference to paralution::LocalVector<double>::SetDataPtr(double**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)' paralution_fortran.cpp:(.text+0x2ec2): undefined reference to paralution::LocalMatrix::SetDataPtrCSR(int**, int**, double**, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, int, int)'
collect2: error: ld returned 1 exit status
make: *** [paralution_solver] Error 1

Regards,
Srinivas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.