Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to Compile Against OpenCL 1.1 Headers #2

Open
thibaudh opened this issue Jan 30, 2015 · 7 comments
Open

Fail to Compile Against OpenCL 1.1 Headers #2

thibaudh opened this issue Jan 30, 2015 · 7 comments

Comments

@thibaudh
Copy link

It looks like some #ifdefs are missing:

In file included from ../src/cl_checks.cc:1:0:
../src/cl_checks.h: In function ‘bool webcl::validateMemFlags(int)’:
../src/cl_checks.h:19:46: error: ‘CL_MEM_HOST_NO_ACCESS’ was not declared in this scope
   return (value>=CL_MEM_READ_WRITE && value<=CL_MEM_HOST_NO_ACCESS && value!=(1<<6));
                                              ^
../src/cl_checks.cc: In function ‘int webcl::getChannelCount(int)’:
../src/cl_checks.cc:147:10: error: ‘CL_DEPTH’ was not declared in this scope
     case CL_DEPTH:
          ^
../src/cl_checks.cc:148:10: error: ‘CL_DEPTH_STENCIL’ was not declared in this scope
     case CL_DEPTH_STENCIL:
          ^
make: *** [Release/obj.target/webcl/src/cl_checks.o] Error 1
@mikeseven
Copy link
Owner

This looks like you have outdated OpenCL headers in your system.
Make sure you have OpenCL 1.2 headers.

-- Mike

From: Thibaud [email protected]
Reply-To: mikeseven/node-webcl
<reply+000c582ca68ea55fb5041a47d7934fccc7856a6d654e008392cf0000000110e373b39
[email protected]>
Date: Friday, January 30, 2015 at 8:30 AM
To: mikeseven/node-webcl [email protected]
Subject: [node-webcl] Fail to Compile Against OpenCL 1.1 Headers (#2)

It looks like some #ifdefs are missing:
In file included from ../src/cl_checks.cc:1:0:
../src/cl_checks.h: In function Œbool webcl::validateMemFlags(int)¹:
../src/cl_checks.h:19:46: error: ŒCL_MEM_HOST_NO_ACCESS¹ was not declared in
this scope
return (value>=CL_MEM_READ_WRITE && value<=CL_MEM_HOST_NO_ACCESS &&
value!=(1<<6));
^
../src/cl_checks.cc: In function Œint webcl::getChannelCount(int)¹:
../src/cl_checks.cc:147:10: error: ŒCL_DEPTH¹ was not declared in this scope
case CL_DEPTH:
^
../src/cl_checks.cc:148:10: error: ŒCL_DEPTH_STENCIL¹ was not declared in
this scope
case CL_DEPTH_STENCIL:
^
make: *** [Release/obj.target/webcl/src/cl_checks.o] Error 1

Reply to this email directly or view it on GitHub
#2 .

@thibaudh
Copy link
Author

Yes I have OpenCL 1.1 headers. This is all we get on Nvidia platforms. The README claims it is supported: This is an implementation of Khronos WebCL specification using NodeJS. This implementation solely relies on OpenCL 1.1 C headers.

@mikeseven
Copy link
Owner

Ah I see. I upgraded to OpenCL 1.2 since all my machines here are now even
2.0 ready.
OK I need to add some #ifdef

-- Mike

From: Thibaud [email protected]
Reply-To: mikeseven/node-webcl
<reply+000c582cef3a27f6a4b2fd917c09ba6bdda0f31d0051d1df92cf0000000110e3796e9
[email protected]>
Date: Friday, January 30, 2015 at 8:55 AM
To: mikeseven/node-webcl [email protected]
Cc: Mikaël Bourges-Sévenier [email protected]
Subject: Re: [node-webcl] Fail to Compile Against OpenCL 1.1 Headers (#2)

Yes I have OpenCL 1.1 headers. This is all we get on Nvidia platforms. The
README claims it is supported: This is an implementation of Khronos WebCL
specification using NodeJS. This implementation solely relies on OpenCL 1.1
C headers.


Reply to this email directly or view it on GitHub
#2 (comment) .

@thibaudh
Copy link
Author

I will be happy to help if you want to test a patch :)

@anuragingole90
Copy link

I am also having same problem.
Is it resolved?

@mikeseven
Copy link
Owner

sure, thanks!

— mike

On Jan 30, 2015, at 9:13 AM, Thibaud [email protected] wrote:

I will be happy to help if you want to test a patch :)


Reply to this email directly or view it on GitHub #2 (comment).

@mfwei
Copy link

mfwei commented Jun 25, 2015

I still have the same problem - fail to compile with OpenCL 1.1 headers
How to solve it ? Thanks a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants