ocl module have some problem in the case to run on Apple OpenCL (Bug #1623)


Added by Yasuhiro Yoshimura about 13 years ago. Updated about 11 years ago.


Status:Cancelled Start date:2012-02-26
Priority:High Due date:
Assignee:yao wang % Done:

0%

Category:ocl
Target version:-
Affected version:2.4.0 - 2.4.6 Operating System:Mac OSX
Difficulty:Easy HW Platform:Any
Pull request:

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

Revision 119cdc57
Added by Roman Donchenko over 11 years ago

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

Also available in: Atom PDF