Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ec-gpu-gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = "Code generator for field and eliptic curve operations on the GPUs
homepage = "https://github.com/filecoin-project/ff-cl-gen"
repository = "https://github.com/filecoin-project/ff-cl-gen"
license = "MIT/Apache-2.0"
rust-version = "1.70.0"
rust-version = "1.83.0"

[dependencies]
bitvec = "1.0.1"
Expand Down
2 changes: 1 addition & 1 deletion ec-gpu-gen/src/multiexp_cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl AsRef<FullDensity> for FullDensity {
}
}

impl<'a> QueryDensity for &'a FullDensity {
impl QueryDensity for &FullDensity {
type Iter = iter::Repeat<bool>;

fn iter(self) -> Self::Iter {
Expand Down
6 changes: 3 additions & 3 deletions ec-gpu-gen/src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ impl SourceBuilder {
.map(|multiexp| multiexp.source(limb_size))
.collect();
let extra_sources = self.extra_sources.join("\n");
vec![
[
COMMON_SRC.to_string(),
fields,
extension_fields,
Expand Down Expand Up @@ -599,7 +599,7 @@ fn generate_cuda(source_builder: &SourceBuilder) -> PathBuf {
// This is a hack when no properly compiled kernel is needed. That's the case when the
// documentation is built on docs.rs and when Clippy is run. We can use arbitrary bytes as
// input then.
if env::var("DOCS_RS").is_ok() || cfg!(feature = "cargo-clippy") {
if env::var("DOCS_RS").is_ok() || cfg!(clippy) {
println!("cargo:rustc-env=_EC_GPU_CUDA_KERNEL_FATBIN=../build.rs");
return PathBuf::from("../build.rs");
}
Expand Down Expand Up @@ -630,7 +630,7 @@ fn generate_cuda(source_builder: &SourceBuilder) -> PathBuf {
// rebuilt if any of them change.
let mut hasher = Sha256::new();
hasher.update(kernel_source.as_bytes());
hasher.update(&format!("{:?}", &nvcc));
hasher.update(format!("{:?}", &nvcc));
let kernel_digest = hex::encode(hasher.finalize());

let source_path: PathBuf = [&out_dir, &format!("{}.cu", &kernel_digest)]
Expand Down
2 changes: 1 addition & 1 deletion ec-gpu-gen/src/threadpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ fn log2_floor(num: usize) -> u32 {
}

#[cfg(test)]
pub mod tests {
mod tests {
use super::*;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.70.0
1.83.0