xxd -i mmc_core.cl | sed 's/\([0-9a-f]\)$/\0, 0x00/' > mmc_core.clh
Building built/mmc_rand_xorshift128p.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMATLAB_MEX_FILE -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_rand_xorshift128p.o  mmc_rand_xorshift128p.c
Building built/mmc_mesh.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMATLAB_MEX_FILE -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_mesh.o  mmc_mesh.c
Building built/mmc_raytrace.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMATLAB_MEX_FILE -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_raytrace.o  mmc_raytrace.c
Building built/mmc_utils.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMATLAB_MEX_FILE -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_utils.o  mmc_utils.c
Building built/mmc_tictoc.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMATLAB_MEX_FILE -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_tictoc.o  mmc_tictoc.c
Building built/mmc_host.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMATLAB_MEX_FILE -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_host.o  mmc_host.c
Building built/mmc_highorder.o
g++ -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMATLAB_MEX_FILE -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -std=c++11 -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_highorder.o  mmc_highorder.cpp
Building built/mmc_bench.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMATLAB_MEX_FILE -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_bench.o  mmc_bench.c
Building built/mmc_cl_utils.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMATLAB_MEX_FILE -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_cl_utils.o  mmc_cl_utils.c
Building built/mmc_cl_host.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMATLAB_MEX_FILE -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_cl_host.o  mmc_cl_host.c
Building ../bin/mmc
mex  CC='cc' CXX='g++' LINKLIBS="-L"\$MATLABROOT/extern/lib/\$ARCH" -L"\$MATLABROOT/bin/\$ARCH" -lmx -lmex  -static-libstdc++ -static-libgcc -fopenmp" COMPFLAGS='' DEFINES='' CXXLIBS='$CXXLIBS -static-libstdc++ -static-libgcc -fopenmp -lOpenCL ' CXXFLAGS='$CXXFLAGS -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMATLAB_MEX_FILE -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT'  -cxx -outdir ../mmclab mmclab.cpp -I../src -I../src/zmat/easylzma -I../src/ubj  -output ../bin/mmc built/mmc_rand_xorshift128p.o built/mmc_mesh.o built/mmc_raytrace.o built/mmc_utils.o built/mmc_tictoc.o built/mmc_host.o built/mmc_highorder.o built/mmc_bench.o built/mmc_cl_utils.o built/mmc_cl_host.o  
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status

    mex: link of ' "../mmclab/mmc.mexa64"' failed.

../commons/Makefile_common.mk:293: recipe for target '../bin/mmc' failed
make: *** [../bin/mmc] Error 1
Building built/mmc_rand_xorshift128p.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_rand_xorshift128p.o  mmc_rand_xorshift128p.c
Building built/mmc_mesh.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_mesh.o  mmc_mesh.c
Building built/mmc_raytrace.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_raytrace.o  mmc_raytrace.c
Building built/mmc_utils.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_utils.o  mmc_utils.c
Building built/mmc_tictoc.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_tictoc.o  mmc_tictoc.c
Building built/mmc_host.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_host.o  mmc_host.c
Building built/mmc_highorder.o
g++ -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -std=c++11 -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_highorder.o  mmc_highorder.cpp
Building built/mmc_bench.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_bench.o  mmc_bench.c
Building built/mmc_cl_utils.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_cl_utils.o  mmc_cl_utils.c
Building built/mmc_cl_host.o
cc -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -I../src -I../src/zmat/easylzma -I../src/ubj  -o built/mmc_cl_host.o  mmc_cl_host.c
Building ../bin/mmc
CC=cc CXX=g++ LFLAGS='-lOpenCL' LDFLAGS=' -fopenmp -lOpenCL -fopenmp' CPPFLAGS='-c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -std=c++11'  mkoctfile -v  --mex -DMATLAB_MEX_FILE mmclab.cpp -I../src -I../src/zmat/easylzma -I../src/ubj  -o ../bin/mmc built/mmc_rand_xorshift128p.o built/mmc_mesh.o built/mmc_raytrace.o built/mmc_utils.o built/mmc_tictoc.o built/mmc_host.o built/mmc_highorder.o built/mmc_bench.o built/mmc_cl_utils.o built/mmc_cl_host.o -o ../mmclab/mmc 
warning: LFLAGS is deprecated and will be removed in a future version of Octave, use LDFLAGS instead
g++ -c -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing -m64 -DMMC_USE_SSE -DHAVE_SSE2 -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -fopenmp  -fPIC -DMCX_CONTAINER -DUSE_OS_TIMER -DUSE_OPENCL -DMMC_XORSHIFT -std=c++11 -fPIC -I/usr/local/include/octave-5.2.0/octave/.. -I/usr/local/include/octave-5.2.0/octave -I/usr/local/include  -pthread -fopenmp -g -O2   -I. -I../src -I../src/zmat/easylzma -I../src/ubj  -DMATLAB_MEX_FILE -DMEX_DEBUG mmclab.cpp -o /tmp/oct-quSKAE.o
g++ -std=gnu++11 -I/usr/local/include/octave-5.2.0/octave/.. -I/usr/local/include/octave-5.2.0/octave -I/usr/local/include  -pthread -fopenmp -g -O2 -shared -Wl,-Bsymbolic  -fopenmp -lOpenCL -fopenmp  -o ../mmclab/mmc.mex  built/mmc_rand_xorshift128p.o built/mmc_mesh.o built/mmc_raytrace.o built/mmc_utils.o built/mmc_tictoc.o built/mmc_host.o built/mmc_highorder.o built/mmc_bench.o built/mmc_cl_utils.o built/mmc_cl_host.o /tmp/oct-quSKAE.o   -lOpenCL   
/usr/bin/ld: cannot find -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
../commons/Makefile_common.mk:293: recipe for target '../bin/mmc' failed
make: *** [../bin/mmc] Error 1
Build Octave MMCLAB Failed
