Alibaba-Gemini-Lab / OpenCheetah

189 stars 48 forks source link

编译cheetah-api.cpp:97发生error #1

Closed cmZoO closed 2 years ago

cmZoO commented 2 years ago

你好,在使用script/build.sh进行编译的时候出现了错误,错误如下

/root/.vs/Cheetah/1644abe3-27db-4b0a-b392-b4265d7c6c23/src/SCI/src/cheetah/cheetah-api.cpp: In constructor ‘gemini::CheetahLinear::CheetahLinear(int, sci::NetIO*, uint64_t, size_t)’:
/root/.vs/Cheetah/1644abe3-27db-4b0a-b392-b4265d7c6c23/src/SCI/src/cheetah/cheetah-api.cpp:97:14: error: ‘class seal::EncryptionParameters’ has no member named ‘set_n_special_primes’
   97 |   seal_parms.set_n_special_primes(0);
      |              ^~~~~~~~~~~~~~~~~~~~
/root/.vs/Cheetah/1644abe3-27db-4b0a-b392-b4265d7c6c23/src/SCI/src/cheetah/cheetah-api.cpp: In member function ‘void gemini::CheetahLinear::setUpForBN()’:
/root/.vs/Cheetah/1644abe3-27db-4b0a-b392-b4265d7c6c23/src/SCI/src/cheetah/cheetah-api.cpp:181:14: error: ‘class seal::EncryptionParameters’ has no member named ‘set_n_special_primes’
  181 |   seal_parms.set_n_special_primes(0);

且编译后build/bin只有densenet121-SCI_HE resnet50-SCI_HE sqnet-SCI_HE,没有cheetah结尾的可执行文件

vincehong commented 2 years ago

How do you install SEAL(and all the other dependancies)?

Make sure to install via "bash scripts/build-deps.sh", do not install them yourselves.

cmZoO commented 2 years ago

我知道了,我还需要把 path文件夹里面的修改手动改一遍。建议在Readme中强调一下Path文件夹里面的diff