CL_NIF.C:40:19: Fatal error: cl/cl.h: no file or directory

Source: Internet
Author: User

[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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.