Tachyon is a ZKP accelerator using CUDA.
Please follow the instructions here.
> sudo apt install libgmp-dev libomp-dev
> brew install gmp
> bazel build --config linux //...
> bazel build --config macos_arm64 //...
> bazel build --config macos_x86_64 //...
NOTE:: MacOS v14.0.0 or later is recommended.
In certain versions of MacOS (prior to v13.5.1), a bug related to incorrect Bigint divide operations has been detected in the field generator when using the optimized build (-c opt
).
The issue will be fixed as soon as possible.
> bazel test --config linux //...
> bazel test --config macos_arm64 //...
> bazel test --config macos_x86_64 //...
-
--//:gmp_backend
: Enable gmp prime field backend.> bazel build --//:${os} --//:gmp_backend //...
NOTE:: Only x86_64 is supported.
-
--//:polygon_zkevm_backend
: Enable goldilocks and zkevm-prover prime field backend.> bazel build --config ${os} --config avx512_${os} --//:polygon_zkevm_backend //...
-
--config cuda
: Enable cuda backend.> bazel build --config ${os} --config cuda //...
-
--config rocm
: Enable rocm backend.> bazel build --config ${os} --config rocm //...
If you are using pyenv, don't forget to add a option --enable-shared
.
> CONFIGURE_OPTS=--enable-shared pyenv install <version>
> pip install matplotlib
Please add this line to your .bazelrc.user
.
build --spawn_strategy=local
Please update g++ version and try build again! The default g++-9
is not working.
> sudo apt install g++-10
> export CC=/usr/bin/gcc-10
> export CXX=/usr/bin/g++-10
> export GCC_HOST_COMPILER_PATH=/usr/bin/gcc-10
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
error: linking with `external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc` failed: exit status: 127
...
= note: /usr/bin/env: 'python': No such file or directory
Please make your python
point to python interpreter to be run.
> sudo apt install python-is-python3
Plus, please include these lines to your .bazelc.user
.
build --action_env=PATH=/usr/bin:/usr/local/bin
build --host_action_env=PATH=/usr/bin:/usr/local/bin