I've been using beignet since fc27, and now using fc30, I am using
beignet for fc29 on fc30. Fortunately so far so good. But I assume
this isn't good in the long run.
So I'm trying to build beignet myself, but in vain.
At first, I downloaded beignet source from
https://github.com/intel/beignet, installed llvm5.0 and clang5.0,
because original intel beignet supports up to llvm5.0 (am I correct?)
Then, tag of version 1.3.2, I made build directory and inside, I ran the
following (actually it's a shell script.)
---------------
cmake -DCOMPILER=GCC -DCMAKE_INSTALL_FULL_LIBDIR=/usr/lib64
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_C_CXX_FLAGS="-mavx2 -ftree-vectorize" -DENABLE_OPENCL_20=OFF
-DCAN_OPENCL_20=OFF
-DLLVM_CONFIG_EXECUTABLE=/usr/lib64/llvm5.0/bin/llvm-config ..
-----------------
Then, "make -j8" or something in build directory. It can compile up to
gbe compiler (with some warnings), but gbe_bin_generator doesn't seem to
work correctly. It dumps core during compilation as follows: (It's a
result of "make VERBOSE=1")
---------------------------------------
make[2]: Entering directory '/home/tetsuji/work/beignet-1.3.2/build'
[ 54%] Generating ../../src/kernels/cl_internal_built_in_kernel_str.c
cd /home/tetsuji/work/beignet-1.3.2/build/src && rm -rf
/home/tetsuji/work/beignet-1.3.2/src/kernels//cl_internal_built_in_kernel_str.c
cd /home/tetsuji/work/beignet-1.3.2/build/src && env
OCL_BITCODE_LIB_PATH=/home/tetsuji/work/beignet-1.3.2/build/backend/src/libocl//usr/lib64/beignet//beignet.bc
OCL_HEADER_FILE_DIR=/home/tetsuji/work/beignet-1.3.2/build/backend/src/libocl//usr/lib64/beignet//include/
OCL_PCH_PATH=/home/tetsuji/work/beignet-1.3.2/build/backend/src/libocl//usr/lib64/beignet//beignet.local.pch
OCL_BITCODE_LIB_20_PATH= OCL_PCH_20_PATH=
LD_LIBRARY_PATH=/home/tetsuji/work/beignet-1.3.2/build/backend/src
/home/tetsuji/work/beignet-1.3.2/build/backend/src/gbe_bin_generater -s
-o/home/tetsuji/work/beignet-1.3.2/src/kernels//cl_internal_built_in_kernel_str.c
/home/tetsuji/work/beignet-1.3.2/src/kernels//cl_internal_built_in_kernel.cl
make[2]: *** [src/CMakeFiles/cl.dir/build.make:274:
../src/kernels/cl_internal_built_in_kernel_str.c] Segmentation fault
(core dumped)
make[2]: Leaving directory '/home/tetsuji/work/beignet-1.3.2/build'
make[1]: *** [CMakeFiles/Makefile2:320: src/CMakeFiles/cl.dir/all] Error 2
make[1]: Leaving directory '/home/tetsuji/work/beignet-1.3.2/build'
make: *** [Makefile:152: all] Error 2
------------------------------------------
What can I do? Or anyone is making it?
Best regards,
-Tetsuji