ctree.ocl package

Submodules

ctree.ocl.codegen module

Code generation for OpenCL.

class ctree.ocl.codegen.OclCodeGen(indent=0)[source]

Bases: ctree.codegen.CodeGenVisitor

Visitor to generate OpenCL code.

visit_OclFile(node)[source]

ctree.ocl.dotgen module

DOT generation for OpenCL.

class ctree.ocl.dotgen.OclDotLabeller[source]

Bases: ctree.dotgen.DotGenLabeller

Visitor to generator DOT.

visit_OclFile(node)[source]

ctree.ocl.nodes module

OpenCL nodes supported by ctree.

class ctree.ocl.nodes.OclFile(name='generated', body=None)[source]

Bases: ctree.ocl.nodes.OclNode, ctree.nodes.File

Represents a .cl file.

class ctree.ocl.nodes.OclNode[source]

Bases: ctree.nodes.CtreeNode

Base class for all OpenCL nodes supported by ctree.

codegen(indent=0)[source]

generate ocl code for this node

label(indent=0)[source]

generate dot element for this node

Module contents

ctree extensions for OpenCL.

ctree.ocl.get_context_and_queue_from_devices(devices)[source]

Table Of Contents

Previous topic

ctree.cpp package

Next topic

ctree.omp package

This Page