Coder Social home page Coder Social logo

Comments (6)

rlguy avatar rlguy commented on August 20, 2024

Hello ivince,

It looks like the OpenCL headers were not found. This could be because the OpenCL header directory is not in your search path or your machine does not have the required cl.hpp header file. What directory are your OpenCL headers in, and does that directory contain the file cl.hpp?

In the case that the OpenCL header directory is not on the search path, you may edit the OPENCLINCLUDEPATH variable in theMakefile to point to the directory that contains your OpenCL header files.

#Example:
OPENCLINCLUDEPATH=-I"path_to_headers"

The -I flag will add the path_to_headers directory to the include search path.

In the case that your machine is missing the cl.hpp header, you can download cl.hpp from khronos.org and place it in the OpenCL header directory. You will need the cl.hpp file version that matches the version of OpenCL on your machine. To find out what version of OpenCL you have, locate the cl.h header and look for largest version number listed under the /* OpenCL Version */ section.

Let me know if this solves the issue for you.

Best Regards,
Ryan

from gridfluidsim3d.

ivince avatar ivince commented on August 20, 2024

@rlguy i am not solve this issue, my environment is: windows7, nvidia k4000.
i do as follow:

  1. installed MinGW, then installed packages 'g++' and 'make' from MinGW Installation Manager
  2. installed nvidia drivers
  3. download cuta-toolkit from https://developer.nvidia.com/cuda-toolkit-31-downloads and install to the directory "C:\CUDA", which include "include" and "lib" subdirectory
    i found directory "C:\CUDA\include\CL" do not include "cl.hpp"
  4. so i download openCL 1.2's cl.hpp from https://www.khronos.org/registry/cl/ and move it to "C:\CUDA\include\CL"
  5. edit the project file 'Makefile':
OPENCLINCLUDEPATH=-I"C:\CUDA\include"
OPENCLLIBPATH=-L"C:\CUDA\lib"

in the project directory type: mingw32-make
2016-06-01_123502

can you help me?

from gridfluidsim3d.

rlguy avatar rlguy commented on August 20, 2024

Hello ivince,

I have added the CL_USE_DEPRECATED_OPENCL_1_1_APIS declaration to the Makefile in this commit, which is a fix described in this thread: "* has not been declared" when including cl.hpp.

Let me know if this solves the issue that you are encountering.

Best Regards,
Ryan

from gridfluidsim3d.

ivince avatar ivince commented on August 20, 2024

hello @rlguy,
An error has occurred
2016-06-02_143701

from gridfluidsim3d.

rlguy avatar rlguy commented on August 20, 2024

Hello ivince,

Sorry to hear that you are still getting errors. I am not sure why this is happening.

I have only been able to test with OpenCL 1.1 headers. I would suggest trying to replace your cl.hpp file with the 1.1 version instead of 1.2. If the program still give errors like above, try downgrading your OpenCL headers to version 1.1 by replacing the headers in _C:\CUDA\include\CL_ with the 1.1 versions from khronos. Make sure to backup your current headers before trying this.

Best Regards,
Ryan

from gridfluidsim3d.

ivince avatar ivince commented on August 20, 2024

Hello rlguy,

it make success when i repaced the headers with version 1.1.

thank you

from gridfluidsim3d.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.