Skip to content

Commit

Permalink
Trying to solve one by one, seems to be mainly caused by alignment re…
Browse files Browse the repository at this point in the history
…quirement
  • Loading branch information
nindanaoto committed Jul 15, 2024
1 parent c8a57a9 commit 99fb42d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/cmux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int main()
for (int i = 0; i < num_test; i++)
for (int j = 0; j < lvl1param::n; j++)
pmu0[i][j] = (p0[i][j] > 0) ? lvl1param::μ : -lvl1param::μ;
vector<TRGSWFFT<lvl1param>> cs(num_test);
vector<TRGSWFFT<lvl1param>,TFHEpp::AlignedAllocator<TFHEpp::TRGSWFFT<TFHEpp::lvl1param>,64>> cs(num_test);
vector<TRLWE<lvl1param>> c1(num_test);
vector<TRLWE<lvl1param>> c0(num_test);
vector<TRLWE<lvl1param>> cres(num_test);
Expand Down
2 changes: 1 addition & 1 deletion test/cmuxpmbxmo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int main()
for (int i = 0; i < num_test; i++)
for (int j = 0; j < lvl1param::n; j++)
pmu1[i][j] = (p1[i][j] > 0) ? lvl1param::μ : -lvl1param::μ;
std::vector<BootstrappingKeyElementFFT<TFHEpp::lvl01param>> cs(num_test);
std::vector<TFHEpp::BootstrappingKeyElementFFT<TFHEpp::lvl01param>,TFHEpp::AlignedAllocator<TFHEpp::BootstrappingKeyElementFFT<TFHEpp::lvl01param>,64>> cs(num_test);
std::vector<TRLWE<lvl1param>> c1(num_test);
std::vector<TRLWE<lvl1param>> cres(num_test);

Expand Down
2 changes: 1 addition & 1 deletion test/nested_cmux_from_cb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int main()
ekey.emplacebkfft<TFHEpp::lvl02param>(skey);
ekey.emplaceprivksk4cb<TFHEpp::lvl21param>(skey);

std::vector<TRGSWLvl1FFT> guard;
std::vector<TRGSWLvl1FFT,TFHEpp::AlignedAllocator<TFHEpp::TRGSWFFT<TFHEpp::lvl1param>,64>> guard;
for (size_t i = 0; i < N; i++) {
TFHEpp::TRGSWFFT<Lvl1> trgsw;
TFHEpp::TLWE<Lvl1> tlwe =
Expand Down

0 comments on commit 99fb42d

Please sign in to comment.