Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on Ubuntu ARM #2

Closed
kraiskil opened this issue Apr 29, 2014 · 4 comments
Closed

Build failure on Ubuntu ARM #2

kraiskil opened this issue Apr 29, 2014 · 4 comments

Comments

@kraiskil
Copy link

clpeak does not build on Ubuntu 13.10 ARM out-of-the box:
kraiskil@notdroid:/opencl/clpeak/build$ cmake ..
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Setting build type to Release
-- Selected OpenCL includes from /usr/include
-- Selected OpenCL lib /usr/lib/arm-linux-gnueabihf/libOpenCL.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kraiskil/opencl/clpeak/build
kraiskil@notdroid:
/opencl/clpeak/build$ make
Scanning dependencies of target clpeak
[ 11%] Building CXX object CMakeFiles/clpeak.dir/src/common.cpp.o
In file included from /home/kraiskil/opencl/clpeak/src/include/common.h:7:0,
from /home/kraiskil/opencl/clpeak/src/common.cpp:1:
/usr/include/CL/cl.hpp:216:23: fatal error: emmintrin.h: No such file or directory
#include <emmintrin.h>
^
compilation terminated.
make[2]: *** [CMakeFiles/clpeak.dir/src/common.cpp.o] Error 1
make[1]: *** [CMakeFiles/clpeak.dir/all] Error 2
make: *** [all] Error 2

The cl.hpp is installed via Ubuntu repositories, the opencl-headers package version 1.2-2013.06.28-2. Updating to latest khronos.org cl.hpp does not help or change the error.

@krrishnarraj
Copy link
Owner

This is a known issue in cl.hpp for ARM systems. I had raised an issue in khronos http://www.khronos.org/message_boards/showthread.php/9190-1-2-cl-hpp-on-ARM-systems but no one seems to be bothered!

emmintrin.h is x86 related sse header. It should not be included for arm systems. pocl has a patch for it https://github.com/pocl/pocl/blob/master/tools/patches/khronos_cl.hpp.patch

@krrishnarraj
Copy link
Owner

Its fixed now for arm. Uses a local copy of cl.hpp for arm systems
@kraiskil please verify once from your side

@kraiskil
Copy link
Author

Now it compiles, but seems the floating point test spinns. Scalar float test has not produced an output for a while, and cpu is running at 400%. I only have pocl available to test against on this machine, so it could be an issue with pocl, not clpeak. I'll dig around a bit.

@krrishnarraj
Copy link
Owner

closing this thread. Original issue has been resolved I believe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants