Skip to content

compile sgm failed  #12

@DrZreXZH

Description

@DrZreXZH

Halide version 12.0.1

In file included from ../../include/Element/FixedPoint.h:5:0,
                 from ../../include/Element.h:5,
                 from sgm_generator.cc:2:
../../include/Element/Reduction.h:28:10: error: conflicting return type specified for ‘virtual void Halide::Element::{anonymous}::FindFreeVars::visit(const Halide::Internal::Let*)’
     void visit(const Let *op) {
          ^~~~~
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:30031:18: error:   overriding ‘virtual Halide::Expr Halide::Internal::IRMutator::visit(const Halide::Internal::Let*)’
     virtual Expr visit(const Let *);
                  ^~~~~
In file included from ../../include/Element/FixedPoint.h:5:0,
                 from ../../include/Element.h:5,
                 from sgm_generator.cc:2:
../../include/Element/Reduction.h:41:10: error: conflicting return type specified for ‘virtual void Halide::Element::{anonymous}::FindFreeVars::visit(const Halide::Internal::Variable*)’
     void visit(const Variable *v) {
          ^~~~~
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:30009:18: error:   overriding ‘virtual Halide::Expr Halide::Internal::IRMutator::visit(const Halide::Internal::Variable*)’
     virtual Expr visit(const Variable *);
                  ^~~~~
In file included from ../../include/Element/FixedPoint.h:5:0,
                 from ../../include/Element.h:5,
                 from sgm_generator.cc:2:
../../include/Element/Reduction.h: In member function ‘virtual void Halide::Element::{anonymous}::FindFreeVars::visit(const Halide::Internal::Let*)’:
../../include/Element/Reduction.h:35:13: error: ‘expr’ was not declared in this scope
             expr = op;
             ^~~~
../../include/Element/Reduction.h:35:13: note: suggested alternative: ‘exp’
             expr = op;
             ^~~~
             exp
../../include/Element/Reduction.h:37:13: error: ‘expr’ was not declared in this scope
             expr = Let::make(op->name, value, body);
             ^~~~
../../include/Element/Reduction.h:37:13: note: suggested alternative: ‘exp’
             expr = Let::make(op->name, value, body);
             ^~~~
             exp
../../include/Element/Reduction.h: In member function ‘virtual void Halide::Element::{anonymous}::FindFreeVars::visit(const Halide::Internal::Variable*)’:
../../include/Element/Reduction.h:44:9: error: ‘expr’ was not declared in this scope
         expr = v;
         ^~~~
../../include/Element/Reduction.h:44:9: note: suggested alternative: ‘exp’
         expr = v;
         ^~~~
         exp
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::gaussian(Halide::Func, int32_t, int32_t, int32_t, int32_t, Halide::Param<double>)’:
../../include/Element/ImageProcessing.h:117:75: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func clamped = BoundaryConditions::repeat_edge(in, 0, width, 0, height);
                                                                           ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:117:75: note:   candidate expects 2 arguments, 5 provided
     Func clamped = BoundaryConditions::repeat_edge(in, 0, width, 0, height);
                                                                           ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:117:75: note:   candidate expects 1 argument, 5 provided
     Func clamped = BoundaryConditions::repeat_edge(in, 0, width, 0, height);
                                                                           ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::convolution(Halide::Func, int32_t, int32_t, Halide::Func, int32_t, int32_t)’:
../../include/Element/ImageProcessing.h:142:75: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func bounded = BoundaryConditions::repeat_edge(in, 0, width, 0, height);
                                                                           ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:142:75: note:   candidate expects 2 arguments, 5 provided
     Func bounded = BoundaryConditions::repeat_edge(in, 0, width, 0, height);
                                                                           ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:142:75: note:   candidate expects 1 argument, 5 provided
     Func bounded = BoundaryConditions::repeat_edge(in, 0, width, 0, height);
                                                                           ^
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::bilateral(Halide::Func, int32_t, int32_t, Halide::Expr, Halide::Expr, Halide::Expr) [with T = unsigned char; int32_t = int]’:
../../include/Element/ImageProcessing.h:649:76: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func clamped = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                            ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:649:76: note:   candidate expects 2 arguments, 5 provided
     Func clamped = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                            ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:649:76: note:   candidate expects 1 argument, 5 provided
     Func clamped = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                            ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::bilateral(Halide::Func, int32_t, int32_t, Halide::Expr, Halide::Expr, Halide::Expr) [with T = short unsigned int; int32_t = int]’:
../../include/Element/ImageProcessing.h:690:76: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func clamped = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                            ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:690:76: note:   candidate expects 2 arguments, 5 provided
     Func clamped = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                            ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:690:76: note:   candidate expects 1 argument, 5 provided
     Func clamped = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                            ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::scale_NN(Halide::Func, int32_t, int32_t, int32_t, int32_t)’:
../../include/Element/ImageProcessing.h:723:82: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func clamped = BoundaryConditions::repeat_edge(src, 0, in_width, 0, in_height);
                                                                                  ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:723:82: note:   candidate expects 2 arguments, 5 provided
     Func clamped = BoundaryConditions::repeat_edge(src, 0, in_width, 0, in_height);
                                                                                  ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:723:82: note:   candidate expects 1 argument, 5 provided
     Func clamped = BoundaryConditions::repeat_edge(src, 0, in_width, 0, in_height);
                                                                                  ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::scale_bicubic(Halide::Func, int32_t, int32_t, int32_t, int32_t)’:
../../include/Element/ImageProcessing.h:787:82: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func clamped = BoundaryConditions::repeat_edge(src, 0, in_width, 0, in_height);
                                                                                  ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:787:82: note:   candidate expects 2 arguments, 5 provided
     Func clamped = BoundaryConditions::repeat_edge(src, 0, in_width, 0, in_height);
                                                                                  ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:787:82: note:   candidate expects 1 argument, 5 provided
     Func clamped = BoundaryConditions::repeat_edge(src, 0, in_width, 0, in_height);
                                                                                  ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::warp_map_NN(Halide::Func, Halide::Func, Halide::Func, int32_t, Halide::Expr, int32_t, int32_t)’:
../../include/Element/ImageProcessing.h:823:75: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func type1 = BoundaryConditions::repeat_edge(src0, 0, width, 0, height);
                                                                           ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:823:75: note:   candidate expects 2 arguments, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src0, 0, width, 0, height);
                                                                           ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:823:75: note:   candidate expects 1 argument, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src0, 0, width, 0, height);
                                                                           ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::warp_map_bilinear(Halide::Func, Halide::Func, Halide::Func, int32_t, Halide::Expr, int32_t, int32_t)’:
../../include/Element/ImageProcessing.h:852:75: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func type1 = BoundaryConditions::repeat_edge(src0, 0, width, 0, height);
                                                                           ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:852:75: note:   candidate expects 2 arguments, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src0, 0, width, 0, height);
                                                                           ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:852:75: note:   candidate expects 1 argument, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src0, 0, width, 0, height);
                                                                           ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::warp_map_bicubic(Halide::Func, Halide::Func, Halide::Func, int32_t, Halide::Expr, int32_t, int32_t)’:
../../include/Element/ImageProcessing.h:891:75: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func type1 = BoundaryConditions::repeat_edge(src0, 0, width, 0, height);
                                                                           ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:891:75: note:   candidate expects 2 arguments, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src0, 0, width, 0, height);
                                                                           ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:891:75: note:   candidate expects 1 argument, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src0, 0, width, 0, height);
                                                                           ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::warp_affine_NN(Halide::Func, int32_t, Halide::Expr, Halide::Func, int32_t, int32_t)’:
../../include/Element/ImageProcessing.h:951:74: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:951:74: note:   candidate expects 2 arguments, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:951:74: note:   candidate expects 1 argument, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::warp_affine_bilinear(Halide::Func, int32_t, Halide::Expr, Halide::Func, int32_t, int32_t)’:
../../include/Element/ImageProcessing.h:983:74: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:983:74: note:   candidate expects 2 arguments, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:983:74: note:   candidate expects 1 argument, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::warp_affine_bicubic(Halide::Func, int32_t, Halide::Expr, Halide::Func, int32_t, int32_t)’:
../../include/Element/ImageProcessing.h:1026:74: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:1026:74: note:   candidate expects 2 arguments, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:1026:74: note:   candidate expects 1 argument, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::warp_perspective_NN(Halide::Func, int32_t, Halide::Expr, Halide::Func, int32_t, int32_t)’:
../../include/Element/ImageProcessing.h:1149:74: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:1149:74: note:   candidate expects 2 arguments, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:1149:74: note:   candidate expects 1 argument, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::warp_perspective_bilinear(Halide::Func, int32_t, Halide::Expr, Halide::Func, int32_t, int32_t)’:
../../include/Element/ImageProcessing.h:1183:74: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:1183:74: note:   candidate expects 2 arguments, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:1183:74: note:   candidate expects 1 argument, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
../../include/Element/ImageProcessing.h: In function ‘Halide::Func Halide::Element::{anonymous}::warp_perspective_bicubic(Halide::Func, int32_t, Halide::Expr, Halide::Func, int32_t, int32_t)’:
../../include/Element/ImageProcessing.h:1226:74: error: no matching function for call to ‘repeat_edge(Halide::Func&, int, int32_t&, int, int32_t&)’
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18595:6: note: candidate: Halide::Func Halide::BoundaryConditions::repeat_edge(const Halide::Func&, const Region&)
 Func repeat_edge(const Func &source, const Region &bounds);
      ^~~~~~~~~~~
/usr/local/include/Halide.h:18595:6: note:   candidate expects 2 arguments, 5 provided
/usr/local/include/Halide.h:18598:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&, const Region&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like, const Region &bounds) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18598:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:1226:74: note:   candidate expects 2 arguments, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
In file included from sgm_generator.cc:1:0:
/usr/local/include/Halide.h:18603:33: note: candidate: template<class T> Halide::Func Halide::BoundaryConditions::repeat_edge(const T&)
 HALIDE_NO_USER_CODE_INLINE Func repeat_edge(const T &func_like) {
                                 ^~~~~~~~~~~
/usr/local/include/Halide.h:18603:33: note:   template argument deduction/substitution failed:
In file included from ../../include/Element.h:6:0,
                 from sgm_generator.cc:2:
../../include/Element/ImageProcessing.h:1226:74: note:   candidate expects 1 argument, 5 provided
     Func type1 = BoundaryConditions::repeat_edge(src, 0, width, 0, height);
                                                                          ^
../../common.mk:48: recipe for target 'sgm_gen' failed
make: *** [sgm_gen] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions