Skip to content
Snippets Groups Projects

WIP: Graph datahandling

Closed Stephan Seitz requested to merge seitz/pystencils:graph-datahandling into master
Viewing commit 043e65c8
Show latest version
1 file
+ 14
0
Preferences
Compare changes
@@ -28,6 +28,20 @@ def init_globally(device_index=0):
@@ -28,6 +28,20 @@ def init_globally(device_index=0):
_global_cl_queue = cl.CommandQueue(_global_cl_ctx)
_global_cl_queue = cl.CommandQueue(_global_cl_ctx)
 
def init_globally_with_context(opencl_ctx, opencl_queue):
 
global _global_cl_ctx
 
global _global_cl_queue
 
_global_cl_ctx = opencl_ctx
 
_global_cl_queue = opencl_queue
 
 
 
def clear_global_ctx():
 
global _global_cl_ctx
 
global _global_cl_queue
 
_global_cl_ctx = None
 
_global_cl_queue = None
 
 
def make_python_function(kernel_function_node, opencl_queue, opencl_ctx, argument_dict=None, custom_backend=None):
def make_python_function(kernel_function_node, opencl_queue, opencl_ctx, argument_dict=None, custom_backend=None):
"""
"""
Creates a **OpenCL** kernel function from an abstract syntax tree which
Creates a **OpenCL** kernel function from an abstract syntax tree which