Skip to content

Block Substitutions

Nicholas Corgan edited this page Aug 1, 2020 · 2 revisions

Many PothosGPU blocks are higher-performance duplicates of blocks in PothosBlocks and PothosCore. These tables list the blocks that can be replaced.

Arithmetic Blocks

Block Name Block Registry Path Replaces Notes
Absolute Value /gpu/arith/abs /comms/abs  
ArcTan2 /gpu/arith/atan2 /comms/angle Takes real+imaginary ports instead of complex port
Clamp /gpu/arith/clamp /blocks/clamp No option to clamp only one bound
Complex Conjugate /gpu/arith/conjg /comms/conj  
Maximum /gpu/arith/max /blocks/minmax Only outputs maximum
Minimum /gpu/arith/min /blocks/minmax Only outputs minimum
Arithmetic /gpu/array/arithmetic /comms/arithmetic  
Scalar Arithmetic /gpu/scalar/arithmetic /comms/const_arithmetic Only supports constant as second operand
Comparator /gpu/array/comparator /comms/comparator  

Stream Blocks

Block Name Block Registry Path Replaces Notes
Cast /gpu/array/cast /blocks/convert Requires both input and output DTypes
Combine Complex /gpu/arith/combine_complex /comms/combine_complex  
Split Complex /gpu/arith/split_complex /comms/split_complex  
Constant Source /gpu/data/constant /blocks/constant_source  
Is Infinite? /gpu/arith/isinf /blocks/isinf  
Is NaN? /gpu/arith/isnan /blocks/isnan  
Is Negative? /gpu/arith/sign /blocks/isnegative  

Signal Blocks

Block Name Block Registry Path Replaces Notes
FFT /gpu/signal/fft /comms/fft  
FIR Filter /gpu/signal/fir_filter /comms/fir_filter Can accept taps from /comms/fir_designer
IIR Filter /gpu/signal/iir_filter /comms/iir_filter Can accept taps from /comms/iir_designer
Sinc /gpu/signal/sinc /comms/sinc  

Trigonometric Blocks

Each trigonometric block, listed under /GPU/Trigonometry in PothosFlow, correspond to options in PothosComms's /comms/trigonometric.