Skip to main content

compile_gpu_d4_and_verify_cached

Function compile_gpu_d4_and_verify_cached 

Source
pub fn compile_gpu_d4_and_verify_cached(
    cnf: &GpuCnf,
    decision_var_limit: &TrackedCudaSlice<u32>,
    provider: &Arc<CudaKernelProvider>,
    config: &GpuCompileConfig,
    cache: &mut GpuCircuitCache,
    random_vars: &DeviceRandomVarList,
    canonical_cnf_hash: Option<u64>,
) -> Result<(GpuCircuitCacheHandle, Option<CircuitCompileProfile>)>
Expand description

Compile CNF on GPU, cache the circuit, then verify equivalence with GPU CDCL.

canonical_cnf_hash: a process-independent hash of the PIR structure, used as the cnf_hash in the disk cache key. Computed via crate::cnf::canonical_pir_hash. If None, disk caching is skipped.