Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 15/01/2016, à 07:40

IKH

Compatibilité CUDA & Lemon ou problème de configuration ?!

Bonjour tout le monde,

Etant nouveau dans la programmation sur GPU, j'ai suivi les étapes concernant l'installation de CUDA et j'ai pu exécuter les programmes Samples proposés avec l'outil...

Mais en essayant de compiler mon algorithme (qui marche à la perfection sous Code::Blocks) qui utilise les librairies Lemon, Thread et mutex aussi (gérés par c++11) j'ai eu des messages d'erreur que je qualifie en Bizarres! lol...

J'ai essayé de changer d'IDE et utiliser Nsight ... et même avec les makefiles d'un sample que j'ai essayé de modifier moi même mais rien ne marche même sans pour autant que j'ai commencé à utiliser CUDA dedant...

Les messages d'erreur:

from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:1609:3: note: constexpr float std::round(float)
round(float __x)
^
/usr/include/c++/4.8/cmath:1613:3: note: constexpr long double std::round(long double)
round(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1624:33: error: call of overloaded ‘sqrt(double)’ is ambiguous
_M_s1 = std::sqrt(__np * __1p) * (1 + _M_d1 / (4 * __np));
^
/usr/include/c++/4.8/bits/random.tcc:1624:33: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float)
sqrt(float __x)
^
/usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1625:33: error: call of overloaded ‘sqrt(double)’ is ambiguous
_M_s2 = std::sqrt(__np * __1p) * (1 + _M_d2 / (4 * _M_t * __1p));
^
/usr/include/c++/4.8/bits/random.tcc:1625:33: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float)
sqrt(float __x)
^
/usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1627:25: error: call of overloaded ‘exp(double&)’ is ambiguous
_M_a1 = std::exp(_M_c) * _M_s1 * __spi_2;
^
/usr/include/c++/4.8/bits/random.tcc:1627:25: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:241:3: note: constexpr float std::exp(float)
exp(float __x)
^
/usr/include/c++/4.8/cmath:245:3: note: constexpr long double std::exp(long double)
exp(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1632:48: error: call of overloaded ‘exp(double)’ is ambiguous
* std::exp(-_M_d1 * _M_d1 / (2 * __s1s)));
^
/usr/include/c++/4.8/bits/random.tcc:1632:48: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:241:3: note: constexpr float std::exp(float)
exp(float __x)
^
/usr/include/c++/4.8/cmath:245:3: note: constexpr long double std::exp(long double)
exp(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1635:44: error: call of overloaded ‘exp(double)’ is ambiguous
* std::exp(-_M_d2 * _M_d2 / (2 * __s2s)));
^
/usr/include/c++/4.8/bits/random.tcc:1635:44: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:241:3: note: constexpr float std::exp(float)
exp(float __x)
^
/usr/include/c++/4.8/cmath:245:3: note: constexpr long double std::exp(long double)
exp(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1636:33: error: call of overloaded ‘lgamma(double)’ is ambiguous
_M_lf = (std::lgamma(__np + 1)
^
/usr/include/c++/4.8/bits/random.tcc:1636:33: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:1406:3: note: constexpr float std::lgamma(float)
lgamma(float __x)
^
/usr/include/c++/4.8/cmath:1410:3: note: constexpr long double std::lgamma(long double)
lgamma(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1638:34: error: call of overloaded ‘log(double)’ is ambiguous
_M_lp1p = std::log(__pa / __1p);
^
/usr/include/c++/4.8/bits/random.tcc:1638:34: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:357:3: note: constexpr float std::log(float)
log(float __x)
^
/usr/include/c++/4.8/cmath:361:3: note: constexpr long double std::log(long double)
log(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1640:46: error: call of overloaded ‘log(double)’ is ambiguous
_M_q = -std::log(1 - (__p12 - __pa) / __1p);
^
/usr/include/c++/4.8/bits/random.tcc:1640:46: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:357:3: note: constexpr float std::log(float)
log(float __x)
^
/usr/include/c++/4.8/cmath:361:3: note: constexpr long double std::log(long double)
log(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1644:28: error: call of overloaded ‘log(double)’ is ambiguous
_M_q = -std::log(1 - __p12);
^
/usr/include/c++/4.8/bits/random.tcc:1644:28: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:357:3: note: constexpr float std::log(float)
log(float __x)
^
/usr/include/c++/4.8/cmath:361:3: note: constexpr long double std::log(long double)
log(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc: In member function ‘std::binomial_distribution<_IntType>::result_type std::binomial_distribution<_IntType>::operator()(_UniformRandomNumberGenerator&, const std::binomial_distribution<_IntType>::param_type&)’:
/usr/include/c++/4.8/bits/random.tcc:1732:24: error: call of overloaded ‘floor(const double&)’ is ambiguous
__x = std::floor(__y);
^
/usr/include/c++/4.8/bits/random.tcc:1732:24: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:279:3: note: constexpr float std::floor(float)
floor(float __x)
^
/usr/include/c++/4.8/cmath:283:3: note: constexpr long double std::floor(long double)
floor(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1744:25: error: call of overloaded ‘floor(double)’ is ambiguous
__x = std::floor(-__y);
^
/usr/include/c++/4.8/bits/random.tcc:1744:25: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:279:3: note: constexpr float std::floor(float)
floor(float __x)
^
/usr/include/c++/4.8/cmath:283:3: note: constexpr long double std::floor(long double)
floor(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1755:27: error: call of overloaded ‘floor(const double&)’ is ambiguous
__x = std::floor(__y);
^
/usr/include/c++/4.8/bits/random.tcc:1755:27: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:279:3: note: constexpr float std::floor(float)
floor(float __x)
^
/usr/include/c++/4.8/cmath:283:3: note: constexpr long double std::floor(long double)
floor(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1767:28: error: call of overloaded ‘floor(double)’ is ambiguous
__x = std::floor(-__y);
^
/usr/include/c++/4.8/bits/random.tcc:1767:28: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:279:3: note: constexpr float std::floor(float)
floor(float __x)
^
/usr/include/c++/4.8/cmath:283:3: note: constexpr long double std::floor(long double)
floor(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc:1776:35: error: call of overloaded ‘lgamma(double)’ is ambiguous
std::lgamma(__np + __x + 1)
^
/usr/include/c++/4.8/bits/random.tcc:1776:35: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:1406:3: note: constexpr float std::lgamma(float)
lgamma(float __x)
^
/usr/include/c++/4.8/cmath:1410:3: note: constexpr long double std::lgamma(long double)
lgamma(long double __x)
^
In file included from /usr/include/c++/4.8/random:52:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/bits/random.tcc: In member function ‘std::piecewise_linear_distribution<_RealType>::result_type std::piecewise_linear_distribution<_RealType>::operator()(_UniformRandomNumberGenerator&, const std::piecewise_linear_distribution<_RealType>::param_type&)’:
/usr/include/c++/4.8/bits/random.tcc:3289:33: error: call of overloaded ‘sqrt(const double&)’ is ambiguous
__x += 0.5 * (std::sqrt(__d) - __b) / __a;
^
/usr/include/c++/4.8/bits/random.tcc:3289:33: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float)
sqrt(float __x)
^
/usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
In file included from ../src/MyHybridGPUAlgo.cpp:13:0:
/home/-/Desktop/lemon-1.3.1/lemon/network_simplex.h: In constructor ‘lemon::NetworkSimplex<GR, V, C>::BlockSearchPivotRule::BlockSearchPivotRule(lemon::NetworkSimplex<GR, V, C>&)’:
/home/-/Desktop/lemon-1.3.1/lemon/network_simplex.h:373:70: error: call of overloaded ‘sqrt(double)’ is ambiguous
std::sqrt(double(_search_arc_num))),
^
/home/-/Desktop/lemon-1.3.1/lemon/network_simplex.h:373:70: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float)
sqrt(float __x)
^
/usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
In file included from ../src/MyHybridGPUAlgo.cpp:13:0:
/home/-/Desktop/lemon-1.3.1/lemon/network_simplex.h: In constructor ‘lemon::NetworkSimplex<GR, V, C>::CandidateListPivotRule::CandidateListPivotRule(lemon::NetworkSimplex<GR, V, C>&)’:
/home/-/Desktop/lemon-1.3.1/lemon/network_simplex.h:450:71: error: call of overloaded ‘sqrt(double)’ is ambiguous
std::sqrt(double(_search_arc_num))),
^
/home/-/Desktop/lemon-1.3.1/lemon/network_simplex.h:450:71: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float)
sqrt(float __x)
^
/usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
In file included from ../src/MyHybridGPUAlgo.cpp:13:0:
/home/-/Desktop/lemon-1.3.1/lemon/network_simplex.h: In constructor ‘lemon::NetworkSimplex<GR, V, C>::AlteringListPivotRule::AlteringListPivotRule(lemon::NetworkSimplex<GR, V, C>&)’:
/home/-/Desktop/lemon-1.3.1/lemon/network_simplex.h:567:70: error: call of overloaded ‘sqrt(double)’ is ambiguous
std::sqrt(double(_search_arc_num))),
^
/home/-/Desktop/lemon-1.3.1/lemon/network_simplex.h:567:70: note: candidates are:
In file included from /home/-/Desktop/lemon-1.3.1/lemon/math.h:30:0,
from /usr/include/c++/4.8/cmath:44,
from /usr/include/c++/4.8/random:38,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/local/include/lemon/core.h:23,
from /usr/local/include/lemon/list_graph.h:26,
from ../src/../include/../include/graph.h:6,
from ../src/../include/functions.h:7,
from ../src/MyHybridGPUAlgo.cpp:8:
/usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float)
sqrt(float __x)
^
/usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
make: *** [src/MyHybridGPUAlgo.o] Error 1

17:52:00 Build Finished (took 1s.271ms)

Alors s'il vous plait, y-t-il quelqu'un qui peut m'aider même pour m'expliquer les raisons pour lesquelles ça marche pas?

Je vous remercie d'avance,
Cordialement.

Hors ligne