1""" 

2Automatically initializes OpenCL context using any device. 

3 

4Use `pystencils.opencl.{init_globally_with_context,init_globally}` if you want to use a specific device. 

5""" 

6 

7from pystencils.opencl.opencljit import ( 

8 clear_global_ctx, init_globally, init_globally_with_context, make_python_function) 

9 

10__all__ = ['init_globally', 'init_globally_with_context', 'clear_global_ctx', 'make_python_function'] 

11 

12try: 

13 init_globally() 

14except Exception as e: 

15 import warnings 

16 warnings.warn(str(e))