Skip to content
Snippets Groups Projects
Commit 2e583f06 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Add print-binary example

parent a597fdcf
No related branches found
No related tags found
No related merge requests found
#! /usr/bin/env python
from __future__ import division
import pyopencl as cl
import sys
ctx = cl.create_some_context()
with open(sys.argv[1], "r") as inf:
src = inf.read()
prg = cl.Program(ctx, src).build()
print(prg.binaries[0].decode())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment