[Email protected] cl]# rebar Compile
==> cl (Compile)
Compiling C_SRC/CL_NIF.C
C_SRC/CL_NIF.C:40:19: Fatal error: cl/cl.h: no file or directory
#include <CL/cl.h>
^
Compile interrupts.
Error:compile failed while Processing/usr/local/erl_libs_file/cl:rebar_abort
Workaround:
First use the Whereis command to see if there is a cl.h header file in the system
[[email protected] CL] #whereis cl.h
If so, copy this file to the/usr/local/include directory
If not, since Cl.h is part of the OpenCL SDK, it is necessary to download its SDK from the OpenCL official website to extract
Locate the folder in which you want to include the header file Cl.h cl, copy it to/usr/include or/usr/local/include
In the recording can be
[[email protected] Download]# ls CL
Cl_ext.h cl_gl_ext.h cl_gl.h cl.h cl.hpp cl_platform.h opencl.h va_ext.h
[[email protected] Download]# CP cl-rf/usr/local/include
This article from "Dosom" blog, declined reprint!
CL_NIF.C:40:19: Fatal error: cl/cl.h: no file or directory