Comments (6)
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.
@rlguy i am not solve this issue, my environment is: windows7, nvidia k4000.
i do as follow:
- installed MinGW, then installed packages 'g++' and 'make' from MinGW Installation Manager
- installed nvidia drivers
- 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" - so i download openCL 1.2's cl.hpp from https://www.khronos.org/registry/cl/ and move it to "C:\CUDA\include\CL"
- edit the project file 'Makefile':
OPENCLINCLUDEPATH=-I"C:\CUDA\include"
OPENCLLIBPATH=-L"C:\CUDA\lib"
in the project directory type: mingw32-make
can you help me?
from gridfluidsim3d.
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.
hello @rlguy,
An error has occurred
from gridfluidsim3d.
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.
Hello rlguy,
it make success when i repaced the headers with version 1.1.
thank you
from gridfluidsim3d.
Related Issues (18)
- Addition of a build system generator HOT 3
- cannot import name FluidSimulation HOT 2
- Python mode? HOT 2
- Vector subscript out of range when running the basic example HOT 2
- unable to load library HOT 6
- The drop ball excample works not good HOT 2
- Using GridFluidSim3D to simulate liquid in a STL (mesh)
- How to improve the efficiency of simulation for fluid on surface? HOT 1
- issues with compilation HOT 2
- Building for windows! HOT 2
- OpenCL error -37 (CL_INVALID_HOST_PTR) HOT 9
- How can i define a scene? HOT 3
- Building on OSX HOT 28
- Is it possible to generate particle map instead of meshes? HOT 6
- Compilation error HOT 1
- error: '_hypot' was not declared in this scope {return (float)(_hypot));} HOT 2
- Catch exceptions in main()? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gridfluidsim3d.