Package hedge :: Package backends :: Package cuda :: Module execute
[hide private]
[frames] | no frames]

Module execute

source code

Interface with Nvidia CUDA.


Copyright: Copyright (C) 2008 Andreas Kloeckner

License: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see U{http://www.gnu.org/licenses/}.

Classes [hide private]
  ExecutionMapper
  VectorExprAssign
  CUDAFluxBatchAssign
  OperatorCompiler
  Executor
Functions [hide private]
 
get_vec_structure(vec, point_size, segment_size, block_size, other_char=lambda snippet: ".")
Prints a structured view of a vector--one character per `point_size` floats, `segment_size` characters partitioned off by spaces, `block_size` segments per line.
source code
 
print_error_structure(discr, computed, reference, diff, eventful_only=False, detail=True) source code
Function Details [hide private]

get_vec_structure(vec, point_size, segment_size, block_size, other_char=lambda snippet: ".")

source code 

Prints a structured view of a vector--one character per `point_size` floats, `segment_size` characters partitioned off by spaces, `block_size` segments per line.

The caracter printed is either an 'N' if any NaNs are encountered, a zero if the entire snippet is zero, or otherwise whatever `other_char` returns, defaulting to a period.