Giter Club home page Giter Club logo

Comments (7)

noma avatar noma commented on June 29, 2024

Just found clu_initialize_params::compile_options which seems to be the intended way of setting compile options - but why has cluBuildSourceArray an extra parameter then?

Nevertheless, setting these options once at initialisation is insufficient for some use cases as described in the first comment. Another use case are performance studies of the same kernel with different options.

from clu.

allenhux-intel avatar allenhux-intel commented on June 29, 2024

Sure, Iā€™d be happy to integrate!

From: noma [mailto:[email protected]]
Sent: Tuesday, January 27, 2015 6:13 AM
To: Computing-Language-Utility/CLU
Subject: [CLU] Every variant of cluBuildSource*() should have a compile_options parameter (#23)

Only cluBuildSourceArray() offers a compile_options parameter, which forces the user to manually read a .cl-file in case she wants to specify compiler options. To my experience, the latter is very common to pass defines for code configuration and compile-time arguments.

If whoever is responsible for that decision agrees, I would happily deliver the changes as a pull request.

ā€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/23.

from clu.

noma avatar noma commented on June 29, 2024

Here is a link to my fork, where I added an option parameter to all the build functions that did not already have one. While this seemed the cleanest solution, given the 'extern "C"'-constraints, it might break compatibility with existing code like the examples.

Link

Another option would be to add differently named variants of the functions, but this would be inconsistent with those functions that already have the compile_options parameter.

What do you think?

from clu.

allenhux-intel avatar allenhux-intel commented on June 29, 2024

I'm a little worried this makes the "very easy" API a little less easy. Maybe in this case it's justified?

Probably should integrate. Send a pull request?

from clu.

allenhux-intel avatar allenhux-intel commented on June 29, 2024

Ok, I tried to do this myself. Changed a few things internally to simplify. Hope I didn't break anything.

from clu.

noma avatar noma commented on June 29, 2024

Thanks for the effort. I've reviewed the commit and added a few notes 3c598c5

from clu.

noma avatar noma commented on June 29, 2024

I've tested the changes with my project and it works for me. Thanks!

from clu.

Related Issues (13)

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.