Comments (7)
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.
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.
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.
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.
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.
Ok, I tried to do this myself. Changed a few things internally to simplify. Hope I didn't break anything.
from clu.
Thanks for the effort. I've reviewed the commit and added a few notes 3c598c5
from clu.
I've tested the changes with my project and it works for me. Thanks!
from clu.
Related Issues (13)
- document cluGetPlatformInfo and cluGetDeviceInfo HOT 1
- INLINE macro pollutes the namespace HOT 1
- Spec and implementation disagree on clu_nd_range HOT 1
- cluNDRange* should take size_t not int HOT 1
- Link errors with Clang 3.4 due to incorrect use of inline
- cluGetDeviceInfo should query properties of specific device HOT 1
- clCreateProgramWithBinary will be called with NULL pointers as parameter if in_numBinaries >= m_numDevices HOT 1
- Compatibility issues with OpenCL 1.1
- makefiles or build documentation for other systems?
- can you post how to build or a makefile for linux? HOT 1
- Errors while compiling with gcc HOT 2
- Document cluGetSupportedImageFormats
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clu.