halide / Halide

a language for fast, portable data-parallel computation
https://halide-lang.org
Other
5.92k stars 1.07k forks source link

Failed to compile halide code using binaries #7586

Open Abderrahmene-KSM opened 1 year ago

Abderrahmene-KSM commented 1 year ago

I have built halide from sources , and I was able to compile my halide code, but when trying to compile the same code using halide binaries which I have download directly , it gives me this error : ( I think the problem is in libHalide.so):

/usr/bin/ld: /tmp/cc1uqcLx.o: in function void Halide::RDom::initialize_from_region<int, int&>(std::vector<Halide::Range, std::allocator<Halide::Range> >&, Halide::Expr const&, Halide::Expr const&, int&&, int&)': /home/kasmi/Documents/SGEMV/code/Halide.h:15309: undefined reference toHalide::RDom::validate_min_extent(Halide::Expr const&, Halide::Expr const&)' /usr/bin/ld: /tmp/cc1uqcLx.o: in function void Halide::RDom::initialize_from_region<>(std::vector<Halide::Range, std::allocator<Halide::Range> >&, Halide::Expr const&, Halide::Expr const&)': /home/kasmi/Documents/SGEMV/code/Halide.h:15309: undefined reference toHalide::RDom::validate_min_extent(Halide::Expr const&, Halide::Expr const&)' collect2: error: ld returned 1 exit status

I will be very grateful if some one can help me

abadams commented 1 year ago

It sounds like there's a mismatch between your Halide.h and your libHalide.so. It it possible that /home/kasmi/Documents/SGEMV/code/Halide.h does not correspond to the libHalide.so that you downloaded?

Abderrahmene-KSM commented 1 year ago

Actually I am using the Halide.h that came with the libHalide.so . I also noticed that I don't have this problem in another PC when halide is built from sources ( the problem happens with binary releases only)