kroma-network / tachyon

Modular ZK(Zero Knowledge) backend accelerated by GPU
MIT License
7.77k stars 231 forks source link

build: add openmp flags to goldilocks #513

Closed batzor closed 3 months ago

batzor commented 3 months ago

Description

This PR adds openmp support for goldilocks.

Previously, we used to have a warning when building with openmp.

INFO: From Compiling src/goldilocks_base_field.cpp:
external/goldilocks/src/goldilocks_base_field.cpp:72: warning: ignoring '#pragma omp parallel' [-Wunknown-pragmas]
   72 | #pragma omp parallel for num_threads(num_threads_copy)
      | 
external/goldilocks/src/goldilocks_base_field.cpp:93: warning: ignoring '#pragma omp parallel' [-Wunknown-pragmas]
   93 | #pragma omp parallel for num_threads(num_threads_copy)
      |