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

Module tools

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]
  FakeGPUArray
  RK4TimeStepper
  CallableCollectionTimer
Records the elapsed time returned by a number of callables added via add_timer_callable.
  CudaDevInfo
Functions [hide private]
 
exact_div(dividend, divisor) source code
 
int_ceiling(value, multiple_of=1)
Round value up to be a multiple_of something.
source code
 
int_floor(value, multiple_of=1)
Round value down to be a multiple_of something.
source code
 
pad(s, block_size) source code
 
pad_and_join(blocks, block_size) source code
 
make_blocks(devdata, data) source code
 
make_superblocks(devdata, struct_name, single_item, multi_item, extra_fields={}) source code
 
get_load_code(dest, base, bytes, word_type=numpy.uint32, descr=None) source code
 
unroll(body_gen, total_number, max_unroll=None, start=0) source code
 
mpi_get_default_device(comm, dev_filter=lambda dev: True) source code