Include problem involving blas3.hpp
by Robert Sawko
Hi,
I would like to try to reproduce some of the results of this paper
http://rspb.royalsocietypublishing.org/content/470/2171/20140080
and looked at Hedge as an interesting blend between C++ and python. I
have run into some compilation problem though. I've tried many things.
My best approach so far was to follow the guidelines here:
http://wiki.tiker.net/DevEnvironmentHowto?action=show&redirect=Repo
After doing
repo init -u http://gitlab.tiker.net/inducer/akprojects.git -m hedge.xml
and exluding pycuda I got the project compiled. However, when I run an
example I get an error (see below). Looks like a simple dependency
problem. The file definitley exists in boost-numeric-bindings, but I
don't know how to tell hedge to look there.
Also I am running it all on Arch and python3 is the default one there. I
think am managing it and I don't it's related to the error but I am
mentioning it just in case.
Please let know if you have any suggestions,
Robert
In file included from /home/robert/.cache/codepy/codepy-compiler-cache-v5-py2.7.8.final.0/ee2d4eb9c9db65cba2e1a2e6e339d74d/module.cpp:2:0:
/home/robert/download/hedge/hedge/hedge/include/hedge/volume_operators.hpp:31:49: fatal error: boost/numeric/bindings/blas/blas3.hpp: No such file or directory
#include <boost/numeric/bindings/blas/blas3.hpp>
^
compilation terminated.
FAILED compiler invocation: g++ -pthread -fno-strict-aliasing -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -O3 -DNDEBUG -march=native -mtune=native -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro -Xlinker -export-dynamic -DNDEBUG -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -I/home/robert/download/hedge/pyublas/pyublas/include -I/home/robert/download/hedge/hedge/hedge/include /home/robert/.cache/codepy/codepy-compiler-cache-v5-py2.7.8.final.0/ee2d4eb9c9db65cba2e1a2e6e339d74d/module.cpp -L/usr/lib -lboost_python -lpython2.7 -lpthread -ldl -lutil -o /home/robert/.cache/codepy/codepy-compiler-cache-v5-py2.7.8.final.0/ee2d4eb9c9db65cba2e1a2e6e339d74d/module.so
Traceback (most recent call last):
File "burgers.py", line 229, in <module>
main()
File "burgers.py", line 170, in main
rhs = op.bind(discr)
File "/home/robert/download/hedge/hedge/hedge/models/burgers.py", line 140, in bind
self.op_template(with_sensor=sensor is not None))
File "/home/robert/download/hedge/hedge/hedge/discretization/__init__.py", line 1295, in compile
type_hints)
File "/home/robert/download/hedge/hedge/hedge/backends/jit/__init__.py", line 412, in __init__
[self.diff_builtin, JitDifferentiator(discr)])
File "/home/robert/download/hedge/hedge/hedge/backends/jit/__init__.py", line 408, in pick_faster_func
for f in choices)
File "/usr/lib/python2.7/site-packages/pytools/__init__.py", line 896, in argmin2
for arg, item in it:
File "/home/robert/download/hedge/hedge/hedge/backends/jit/__init__.py", line 408, in <genexpr>
for f in choices)
File "/home/robert/download/hedge/hedge/hedge/backends/jit/__init__.py", line 407, in <genexpr>
(f, min(benchmark(f) for i in range(attempts)))
File "/home/robert/download/hedge/hedge/hedge/backends/jit/__init__.py", line 385, in bench_diff
for i in range(discr.dimensions)], test_field)
File "/home/robert/download/hedge/hedge/hedge/backends/jit/diff.py", line 225, in __call__
matrices[0].shape)
File "/usr/lib/python2.7/site-packages/pytools/__init__.py", line 469, in wrapper
result = method(self, *args, **kwargs)
File "/home/robert/download/hedge/hedge/hedge/backends/jit/diff.py", line 186, in make_diff
compiled_func = mod.compile(self.discr.toolchain).diff
File "/home/robert/download/hedge/codepy/codepy/bpl.py", line 169, in compile
str(self.generate())+"\n", **kwargs)
File "/home/robert/download/hedge/codepy/codepy/jit.py", line 178, in extension_from_string
False)
File "/home/robert/download/hedge/codepy/codepy/jit.py", line 385, in compile_from_string
toolchain.build_extension(ext_file, [source_path], debug=debug)
File "/home/robert/download/hedge/codepy/codepy/toolchain.py", line 192, in build_extension
raise CompileError, "module compilation failed"
codepy.CompileError: module compilation failed
--
Another offspring of the axiom of choice
http://en.wikipedia.org/wiki/Banach–Tarski_paradox
4 years, 10 months