ingonyama-zk / icicle

A hardware acceleration library for compute intensive cryptography :ice_cube:
https://dev.ingonyama.com/icicle/overview
MIT License
332 stars 100 forks source link

[ISSUE]: CMake Build Failing #268

Closed bigsky77 closed 11 months ago

bigsky77 commented 11 months ago

Description

I'm getting a "parameter packs not expanded" error compiling Icicle using CMake.

Reproduce

1) Clone Directory 2) cd icicle/icicle 3) mkdir -p build; cmake -S . -B build; cmake --build build; cd build && ctest; cd ..

Compilation fails during cmake --build build .

Environment

Please complete the following information:

OS + Version: Ubuntu 22.04

Cargo Version: 1.66.1

GPU type: TU117M [GeForce GTX 1650 Ti Mobile

Additional context

Screenshot included for context.

Screenshot from 2023-11-20 13-09-27

jeremyfelder commented 11 months ago

@bigsky77 What cmake and c++ versions are you using?

bigsky77 commented 11 months ago

I am using cmake 3.22.1 and c++ is (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

vhnatyk commented 11 months ago

hi - what is Cuda version you are compiling with? We had exactly the same error on one system when compiling for Fast danksharding. Unfortunately, I don't remember the exact fix - will try to find out, but I recall it was two-step - one was making it compile with the correct nvcc version. Another was the correct С compiler version - in paticular gcc or g++ or both (9.4+ or newer?)

bigsky77 commented 11 months ago

Issue resolved.

Summary:

Changes Made:

- set(CMAKE_CUDA_COMPILER /usr/local/cuda-12/nvvm/bin)
+ set(CMAKE_CUDA_COMPILER /usr/local/cuda-12/bin/nvcc)

The aforementioned change updates CMake with the correct CUDA compiler location, rectifying the build failure.