From 6d09d170613191de9d88c5bf186072f92c756089 Mon Sep 17 00:00:00 2001 From: macro-ss Date: Tue, 26 Nov 2024 13:38:58 +0000 Subject: [PATCH] cuda compitable with multiple branches --- field/Cargo.toml | 3 +++ plonky2/Cargo.toml | 1 + 2 files changed, 4 insertions(+) diff --git a/field/Cargo.toml b/field/Cargo.toml index ed5ef27bc2..915570c7b5 100644 --- a/field/Cargo.toml +++ b/field/Cargo.toml @@ -15,3 +15,6 @@ rand = { version = "0.8.5", default-features = false, features = ["getrandom"] } serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] } static_assertions = { version = "1.1.0", default-features = false } unroll = { version = "0.1.5", default-features = false } + +[features] +cuda = [] diff --git a/plonky2/Cargo.toml b/plonky2/Cargo.toml index ad586679de..c916f425af 100644 --- a/plonky2/Cargo.toml +++ b/plonky2/Cargo.toml @@ -16,6 +16,7 @@ gate_testing = [] parallel = ["hashbrown/rayon", "plonky2_maybe_rayon/parallel"] std = ["anyhow/std", "rand/std", "itertools/use_std"] timing = ["std"] +cuda = [] [dependencies] ahash = { version = "0.8.3", default-features = false, features = ["compile-time-rng"] } # NOTE: Be sure to keep this version the same as the dependency in `hashbrown`.