-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hello, I was trying to run the library on my pc with nvidia gpu. I am getting the following error on ./test.sh (Among a lot of warnings. Is that expected again?)
= note: /usr/bin/ld: /home/kapil/plonky2-ed25519/target/release/deps/plonky2_ed25519-2948e1628453fb25.plonky2_ed25519.809e7ac6b13148cf-cgu.15.rcgu.o: in function `plonky2::plonk::prover::my_prove':
plonky2_ed25519.809e7ac6b13148cf-cgu.15:(.text._ZN7plonky25plonk6prover8my_prove17h236a193705f00d85E+0x1059): undefined reference to `compute_quotient_polys'
/usr/bin/ld: /home/kapil/plonky2-ed25519/target/release/deps/plonky2_ed25519-2948e1628453fb25.plonky2_ed25519.809e7ac6b13148cf-cgu.05.rcgu.o: in function `plonky2::fri::oracle::PolynomialBatch<F,C,_>::from_coeffs_with_gpu':
plonky2_ed25519.809e7ac6b13148cf-cgu.05:(.text._ZN7plonky23fri6oracle32PolynomialBatch$LT$F$C$C$C$_$GT$20from_coeffs_with_gpu17hab61329dc692f495E+0x351): undefined reference to `merkle_tree_from_coeffs'
/usr/bin/ld: /home/kapil/plonky2-ed25519/target/release/deps/plonky2_ed25519-2948e1628453fb25.plonky2_ed25519.809e7ac6b13148cf-cgu.05.rcgu.o: in function `plonky2::fri::oracle::PolynomialBatch<F,C,_>::from_values_with_gpu':
plonky2_ed25519.809e7ac6b13148cf-cgu.05:(.text._ZN7plonky23fri6oracle32PolynomialBatch$LT$F$C$C$C$_$GT$20from_values_with_gpu17h96cf15a93de94b5eE+0x3bd): undefined reference to `ifft'
/usr/bin/ld: plonky2_ed25519.809e7ac6b13148cf-cgu.05:(.text._ZN7plonky23fri6oracle32PolynomialBatch$LT$F$C$C$C$_$GT$20from_values_with_gpu17h96cf15a93de94b5eE+0x47c): undefined reference to `merkle_tree_from_coeffs'
collect2: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
warning: `plonky2_ed25519` (bin "plonky2_ed25519") generated 5 warnings
error: could not compile `plonky2_ed25519` (bin "plonky2_ed25519") due to previous error; 5 warnings emitted
Time: 0h:00m:31s
I should also mention that I cannot seem to cargo +nightly build crates in extern either. It fails with following error
error[E0061]: this function takes 6 arguments but 5 arguments were supplied
--> starky/src/prover.rs:175:9
|
175 | PolynomialBatch::prove_openings(
| _________^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
176 | | &stark.fri_instance(zeta, g, config),
177 | | &initial_merkle_trees,
178 | | &mut challenger,
179 | | &fri_params,
180 | | timing,
181 | | )
| |_________- an argument of type `&mut Option<&mut CudaInvContext<F, C, D>>` is missing
|
note: associated function defined here
--> /home/kapil/plonky2-ed25519/extern/plonky2/plonky2/src/fri/oracle.rs:1047:12
|
1047 | pub fn prove_openings(
| ^^^^^^^^^^^^^^
help: provide the argument
|
175 | PolynomialBatch::prove_openings(&stark.fri_instance(zeta, g, config), &initial_merkle_trees, &mut challenger, &fri_params, timing, /* &mut Option<&mut CudaInvContext<F, C, D>> */)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For more information about this error, try `rustc --explain E0061`.
warning: `plonky2` (lib) generated 45 warnings (run `cargo fix --lib -p plonky2` to apply 35 suggestions)
error: could not compile `starky` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
Time: 0h:00m:28s
I followed these steps to run. Also note I am not using any package manager like nix.
git clone --recursive https://github.com/sideprotocol/plonky2-ed25519.gitcd plonky2-ed25519test.sh
My setup is
lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: AuthenticAMD
Model name: AMD Ryzen 7 6800HS with Radeon Graphics
CPU family: 25
Model: 68
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 1
Stepping: 1
Frequency boost: enabled
CPU(s) scaling MHz: 35%
CPU max MHz: 4784.3750
CPU min MHz: 1600.0000
BogoMIPS: 6390.10
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mc
a cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall n
x mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_go
od nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl p
ni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2api
c movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_le
gacy svm extapic cr8_legacy abm sse4a misalignsse 3dnow
prefetch osvw ibs skinit wdt tce topoext perfctr_core p
erfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw
_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1
avx2 smep bmi2 invpcid cqm rdt_a rdseed adx smap clflus
hopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc
cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irper
f xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock
nrip_save tsc_scale vmcb_clean flushbyasid decodeassis
ts pausefilter pfthreshold avic v_vmsave_vmload vgif v_
spec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow
_recov succor smca
Virtualization features:
Virtualization: AMD-V
Caches (sum of all):
L1d: 256 KiB (8 instances)
L1i: 256 KiB (8 instances)
L2: 4 MiB (8 instances)
L3: 16 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Retbleed: Not affected
Spec rstack overflow: Mitigation; safe RET, no microcode
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer
sanitization
Spectre v2: Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIB
P always-on, RSB filling, PBRSB-eIBRS Not affected
Srbds: Not affected
Tsx async abort: Not affected
nvidia-smi
Tue Jan 9 19:25:09 2024
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.223.02 Driver Version: 470.223.02 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 On | N/A |
| N/A 50C P3 23W / N/A | 539MiB / 5946MiB | 1% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 4630 G /usr/lib/Xorg 471MiB |
| 0 N/A N/A 4819 G xfwm4 3MiB |
| 0 N/A N/A 4983 G /opt/freedownloadmanager/fdm 2MiB |
| 0 N/A N/A 6842 G ...410443072371929263,262144 60MiB |
+-----------------------------------------------------------------------------+
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels