Skip to content

How to load ocl program in form of .cl and .h file? #816

Answered by inducer
Nyanraltotlapun asked this question in Q&A
Discussion options

You must be logged in to vote
with open("file.cl") as srcf:
   prg = cl.Program(ctx, srcf.read()).build(
    ["-I", "."]  # or wherever
)

(plug into the demo) The header can stay where it is.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nyanraltotlapun
Comment options

Answer selected by Nyanraltotlapun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants