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

Giving compile options to clBuildProgram #42

Open
@joergdw

Description

@joergdw

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 ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions