matter-labs-archive / belle_cuda

Implementation of various primitives for bellman using CUDA (WIP)
Other
28 stars 5 forks source link

undefined symbol: dense_multiexp #1

Closed druiz0992 closed 4 years ago

druiz0992 commented 5 years ago

Hello,

I am trying to use this repo to benchmark different SNARK provers on GPUs. After launching the test as described in README, i get the error below.

Thanks


cargo test --release -- --nocapture test_mimc_bn256_gpu_all Finished release [optimized] target(s) in 0.19s Running target/release/deps/bellman_ce-9c5ab40de88a6857

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 11 filtered out

 Running target/release/deps/mimc-ae4b0d4793d503aa

/local/david/iden3/matterlabs/bellman/target/release/deps/mimc-ae4b0d4793d503aa: symbol lookup error: /local/david/iden3/matterlabs/bellman/target/release/deps/mimc-ae4b0d4793d503aa: undefined symbol: dense_multiexp error: test failed, to rerun pass '--test mimc'

shamatar commented 5 years ago

Did you compile and copy the libcuda.so file to the root of the bellman directory?

druiz0992 commented 5 years ago

yes, I did.

I verified correct build by removing libcuda.so and it failed as expected. When libcuda.so is present in root bellman folder, build completes, but launching test produces the error.

druiz0992 commented 5 years ago

By the way, I am using cmake 3.15.2 and GNU make 4.1

saladsilica commented 4 years ago

Hi @druiz0992, I was having the same issue, the build works but to run the test you need to add LD_LIBRARY_PATH=. to the cargo command.

druiz0992 commented 4 years ago

Thanks. That worked for me!!