Coder Social home page Coder Social logo

cl2.hpp with OSX? about opencl-clhpp HOT 4 CLOSED

khronosgroup avatar khronosgroup commented on July 17, 2024
cl2.hpp with OSX?

from opencl-clhpp.

Comments (4)

jrprice avatar jrprice commented on July 17, 2024

Yes, it builds fine for me on macOS and always has. Can you show your command line for a trivial file? For example, I'm just using this for the source below: clang++ -std=c++11 -framework OpenCL foo.cpp.

#define CL_HPP_TARGET_OPENCL_VERSION 120
#define CL_HPP_MINIMUM_OPENCL_VERSION 120
#include <CL/cl2.hpp>
int main(int argc, char *argv[]) { return 0; }

from opencl-clhpp.

soulslicer avatar soulslicer commented on July 17, 2024

Can you try enabling exceptions. Also i am using LLVM 6.0

from opencl-clhpp.

jrprice avatar jrprice commented on July 17, 2024

Yep, no problems with enabling exceptions.

Looking at your comment in the other issue it sounds like it might be a libc++ problem?

from opencl-clhpp.

jrprice avatar jrprice commented on July 17, 2024

Closing as this appears to be a bug in an old version of libc++, not the headers themselves (see #24). If you continue to experience this issue with a recent version of libc++ please reopen with the details.

from opencl-clhpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.