Skip to content

Fail to Compile Against OpenCL 1.1 Headers #2

Description

@thibaudh

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions