Skip to content

how to generate C for host and OpenCL for device? #2797

@ronghongbo

Description

@ronghongbo

Hello,

I would like to generate OpenCL code for a device (from a parallel loop in a loop nest), and generate C code for the host (from the rest of the loop nest). By using "compile_jit", I can see the OpenCL code generated, and the host code is automatically executed. How can I dump out the host code as C so that I may play with the C and OpenCL code manually (e.g. modify and compile them in a command shell)?

thanks!
hongbo

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