Giter VIP home page Giter VIP logo

Comments (3)

tonywestonuk avatar tonywestonuk commented on July 25, 2024 1

Yes, this works..... The Mandelbrot sample working using this 👍
Screenshot 2021-02-19 at 15 44 08

Thank You for your time and efforts :-)

from jocl.

gpu avatar gpu commented on July 25, 2024 1

Good to hear that. Assuming that it's OK to close then.

from jocl.

gpu avatar gpu commented on July 25, 2024

As far as I know, the OpenCL support of Mac is not entirely "up to date". Specifically, I think that it does not support OpenCL 2.0, where clCreateCommandQueueWithProperties was introduced. You should be able to run https://github.com/gpu/JOCLSamples/blob/master/src/main/java/org/jocl/samples/JOCLDeviceQuery.java though, and it should print the CL_PLATFORM_VERSION.

Surprisingly, this prints OpenCL 1.2 CUDA 11.2.66 for me, so strictly speaking, clCreateCommandQueueWithProperties shouln't be available for me either, but apparently, it is supported (handwaving: Maybe NVIDIA added it, even though they only support 1.2 officially and fully, and it is just picked up by the ICD).

In any case, when there is code like this in one of the samples...

    // Create a command-queue for the selected device
    cl_queue_properties properties = new cl_queue_properties();
    cl_command_queue commandQueue = clCreateCommandQueueWithProperties(
        context, device, properties, null);

then you should be able to replace it with

    // Create a command-queue for the selected device
    cl_command_queue commandQueue = clCreateCommandQueue(
        context, device, 0, null);

(the function is marked as "deprecated", and I'd have to look up how you could sensibly emulate the cl_queue_properties is this is required, but maybe it's sufficient for a first test...)

from jocl.

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.