Skip to main content

sp1_gpu_utils/
config.rs

1//! A global configuration of types for device code.
2//!
3//! We are defining the field element and extension element as type aliases rather than using
4//! generics in order to avoid complicated trait bounds but remain flexible enough to support
5//! different field and extension element types.
6
7use sp1_primitives::{SP1ExtensionField, SP1Field, SP1GlobalContext};
8
9/// The base field element type.
10pub type Felt = SP1Field;
11
12/// The extension field element type.
13pub type Ext = SP1ExtensionField;
14
15/// The most common GC, used for testing.
16pub type TestGC = SP1GlobalContext;