pub fn new() -> Result<Self, CudaError> {
        let device =
            CudaDevice::new(0).map_err(|err| CudaError::DeviceNotFound(err.to_string()))?;
        let state = Self { device };

        // Load PTX libraries
        state.load_library::<Stark252PrimeField>(STARK256_PTX)?;

        Ok(state)
    }
Creates a new CUDA state with the first GPU.
crates/math/src/fft/gpu/cuda/state.rs