katsdpsigproc.test package
Submodules
katsdpsigproc.test.test_accel module
Utilities for testing with nosetests.
These are maintained for backwards compatibility. New code is encouraged to use pytest instead.
- katsdpsigproc.test.test_accel.cuda_test(test: _F) _F[source]
Skip a test if the device is not a CUDA device.
Put this after
device_test().
- katsdpsigproc.test.test_accel.device_test(test: Callable[[...], _T]) Callable[[...], _T][source]
Decorate an on-device test.
It provides a context and command queue to the test, skipping it if a compute device is not available. It also disables autotuning, instead using the test value provided for the autotune function.
If autotuning is desired, use
force_autotune()inside (hence, afterwards on the decorator list) this one.