CompiledCudaComplexEvaluator
Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.
CompiledCudaComplexEvaluator
CompiledCudaComplexEvaluator()A compiled evaluator of an expression that uses CUDA for GPU acceleration.
Methods
| Name | Description |
|---|---|
evaluate |
Evaluate the expression for multiple inputs and return the result. |
load |
Load a compiled library, previously generated with Evaluator.compile(). |
evaluate
CompiledCudaComplexEvaluator.evaluate(inputs: npt.ArrayLike) -> npt.NDArray[np.complex128]Evaluate the expression for multiple inputs and return the result.
Parameters
inputs(npt.ArrayLike) The input values or batches to evaluate.
load
CompiledCudaComplexEvaluator.load(
filename: str,
function_name: str,
input_len: int,
output_len: int,
cuda_number_of_evaluations: int,
cuda_block_size: int | None = 256,
) -> CompiledCudaComplexEvaluatorLoad a compiled library, previously generated with Evaluator.compile().
Parameters
filename(str) The file path to load from or save to.function_name(str) The exported symbol name of the compiled entry point.input_len(int) The number of scalar inputs expected by the compiled evaluator.output_len(int) The number of scalar outputs produced by the compiled evaluator.cuda_number_of_evaluations(int) The number of evaluations to batch per CUDA kernel launch.cuda_block_size(int | None) The CUDA thread block size used by the compiled kernel.