symforce.codegen.backends.cuda.cuda_code_printer module#

class ScalarType(value)[source]#

Bases: Enum

An enumeration.

FLOAT = FloatType(String('float32'), nbits=Integer(32), nmant=Integer(23), nexp=Integer(8))#
DOUBLE = FloatType(String('float64'), nbits=Integer(64), nmant=Integer(52), nexp=Integer(11))#
class CudaCodePrinter(scalar_type, settings=None, override_methods=None)[source]#

Bases: C11CodePrinter

SymForce code printer for CUDA. Based on the SymPy C printer.

Parameters: