kerncraft/kernel.py
def _build_kernel_function_declaration(self, name='kernel'):
        """Build and return kernel function declaration"""
        array_declarations, array_dimensions = self._build_array_declarations(with_init=False)
        scalar_declarations = self._build_scalar_declarations(with_init=False)
        const_declarations = self._build_const_declartions(with_init=False)
        return c_ast.FuncDecl(args=c_ast.ParamList(params=array_declarations + scalar_declarations +
                                                          const_declarations),
                              type=c_ast.TypeDecl(declname=name,
                                                  quals=[],
                                                  type=c_ast.IdentifierType(names=['void'])))
def _build_kernel_function_declaration(self, name='kernel'):
        """Build and return kernel function declaration"""
        array_declarations, array_dimensions = self._build_array_declarations(with_init=False)
        scalar_declarations = self._build_scalar_declarations(with_init=False)
        const_declarations = self._build_const_declartions(with_init=False)
        return c_ast.FuncDecl(args=c_ast.ParamList(params=array_declarations + scalar_declarations +
                                                          const_declarations),
                              type=c_ast.TypeDecl(declname=name,
                                                  quals=[],
                                                  type=c_ast.IdentifierType(names=['void'])))
def _build_kernel_function_declaration ( self , name = 'kernel' ) : array_declarations , array_dimensions = self . _build_array_declarations ( with_init = False ) scalar_declarations = self . _build_scalar_declarations ( with_init = False ) const_declarations = self . _build_const_declartions ( with_init = False ) return c_ast . FuncDecl ( args = c_ast . ParamList ( params = array_declarations + scalar_declarations + const_declarations ) , type = c_ast . TypeDecl ( declname = name , quals = [ ] , type = c_ast . IdentifierType ( names = [ 'void' ] ) ) )
Build and return kernel function declaration
Build and return kernel function declaration