<s> from __future__ import print_function , absolute_import , division <EOL> from . stubs import ( threadIdx , blockIdx , blockDim , gridDim , syncthreads , <EOL> shared , local , const , grid , gridsize , atomic , <EOL> threadfence_block , threadfence_system , <EOL> threadfence ) <EOL> from . cudadrv . error import CudaSupportError <EOL> from . cudadrv import nvvm <EOL> from . import initialize <EOL> from . errors import KernelRuntimeError <EOL> from . decorators import jit , autojit , declare_device <EOL> from . api import * <EOL> from . api import _auto_device <EOL> from . kernels import reduction <EOL> reduce = Reduce = reduction . Reduce <EOL> def is_available ( ) : <EOL> """<STR_LIT>""" <EOL> return driver . driver . is_available and nvvm . is_available ( ) <EOL> def cuda_error ( ) : <EOL> """<STR_LIT>""" <EOL> return driver . driver . initialization_error <EOL> initialize . initialize_all ( ) </s>
