Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-sjtu committed Sep 3, 2024
1 parent afc6c89 commit 12446c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/examples/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "AllSteps.hpp"
#include "zklog.hpp"
#include "exit_process.hpp"
#include "cuda_utils.hpp"

int main()
{
Expand Down Expand Up @@ -37,6 +38,10 @@ int main()

StarkInfo starkInfo(starkInfoFile, reduceMemory);

#if defined(__USE_CUDA__) && defined(ENABLE_EXPERIMENTAL_CODE)
alloc_pinned_mem_per_device((1 << starkInfo.starkStruct.nBitsExt) * 32);
#endif

uint64_t polBits = starkInfo.starkStruct.steps[starkInfo.starkStruct.steps.size() - 1].nBits;
FRIProof fproof((1 << polBits), FIELD_EXTENSION, starkInfo.starkStruct.steps.size(), starkInfo.evMap.size(), starkInfo.nPublics);

Expand Down

0 comments on commit 12446c6

Please sign in to comment.