Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Giving compile options to clBuildProgram #42

Open
joergdw opened this issue Jul 26, 2014 · 0 comments
Open

Giving compile options to clBuildProgram #42

joergdw opened this issue Jul 26, 2014 · 0 comments

Comments

@joergdw
Copy link

joergdw commented Jul 26, 2014

Sometimes you have to generate macros automatically by the host program and inject them in the OpenCL-C code before it is compiled. In the C++-API therefore you can give the clBuildProgram-call a pointer to an option string. In the current version of the Haskell-API you can simulate this behaviour by prepending this string to the one you give the Haskell-call to compile. Unfortunately if you do this, the line number increases and if you receive an error message by the cl-compiler the line numbers it tells are too high.

Therefore it would be nice to be able to give the Haskell-call an additional (possibly empty) String and change it's signature to:
clBuildProgram :: CLProgram -> [CLDeviceID] -> String -> String -> IO ()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant