ocl module have some problem in the case to run on Apple OpenCL (Bug #1623)
Description
I checked the latest ocl module(branches/ocl rev7391) implementation.
So, I found some problem in the case to run on Apple OpenCL.
[problem 1]
The following sources describe "#include <CL/cl.h>" to include OpenCL's header.
ocl.hpp
precomp.hpp
safe_call.hpp
But, Apple OpenCL does not have this header.
So, I think that it should be changed as follows:
#ifdef APPLE
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif
[problem 2]
Some kernel files(*.cl) and kernels.cpp use double2, double4, convert_double.
But, this function does not supported. So, it occurs kernel build error.
Associated revisions
Merge pull request #1623 from ImAlsoGreg:2.4-pkgconfig-dash-l
History
Updated by Kirill Kornyakov about 13 years ago
- Category set to ocl
Updated by Kirill Kornyakov about 13 years ago
- Assignee set to yao wang
Updated by Ilya Lavrenov about 11 years ago
I'm sure that the problem solved. Closed.
- Status changed from Open to Cancelled
- HW Platform set to Any
- Operating System set to Mac OSX
- Difficulty set to Easy
- Affected version set to 2.4.0 - 2.4.6