Add Makefile and silence warnins due to bindgen

This commit is contained in:
DoHoonKim8
2024-07-04 06:38:25 +00:00
committed by DoHoon Kim
parent 0c1e9396cc
commit e2d7a0eb09
2 changed files with 25 additions and 0 deletions

22
sumcheck/Makefile Normal file
View File

@@ -0,0 +1,22 @@
CARGO = cargo
all: build doc
build:
@$(CARGO) build --release
doc:
@$(CARGO) doc
check: build test
test:
@$(CARGO) test --release
bench:
@$(CARGO) bench
clean:
@$(CARGO) clean
.PHONY: all build doc check test bench clean

View File

@@ -1,3 +1,6 @@
// silence warnings due to bindgen
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals)]
use cudarc::driver::{CudaDevice, DeviceRepr, DriverError, LaunchAsync, LaunchConfig};
use cudarc::nvrtc::Ptx;
use ff::PrimeField;