Skip to content

Commit

Permalink
Added alignment to some test
Browse files Browse the repository at this point in the history
  • Loading branch information
nindanaoto committed Jul 15, 2024
1 parent b432281 commit b5705ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/circuitbootstrappingsub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ int main()
for (int i = 0; i < num_test; i++) pones[i] = true;
std::vector<TFHEpp::TRLWE<typename privksP::targetP>> ca(num_test);
std::vector<TFHEpp::TLWE<typename iksP::domainP>> cones(num_test);
std::vector<TFHEpp::TRGSWFFT<typename privksP::targetP>> bootedTGSW(
std::vector<TFHEpp::TRGSWFFT<typename privksP::targetP>,TFHEpp::AlignedAllocator<TFHEpp::TRGSWFFT<typename privksP::targetP>,64>> bootedTGSW(
num_test);

for (int i = 0; i < num_test; i++)
Expand Down
4 changes: 2 additions & 2 deletions test/ram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ int main()

array<array<TRGSWFFT<typename CBprivksP::targetP>, address_bit>,
2> *bootedTGSW =
new array<array<TRGSWFFT<typename CBprivksP::targetP>, address_bit>, 2>;
new (std::align_val_t(64)) array<array<TRGSWFFT<typename CBprivksP::targetP>, address_bit>, 2>;
vector<TLWE<typename CBprivksP::targetP>> encaddress(address_bit);
array<TRLWE<typename CBprivksP::targetP>, memsize> *encmemory =
new array<TRLWE<typename CBprivksP::targetP>, memsize>;
new (std::align_val_t(64)) array<TRLWE<typename CBprivksP::targetP>, memsize>;
TLWE<typename CBprivksP::targetP> encreadres;
TRLWE<typename CBiksP::domainP> encumemory;
TLWE<typename ksP::domainP> cs;
Expand Down
2 changes: 1 addition & 1 deletion test/rom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int main()
// torellance.
for (uint8_t &p : address) p = binary(engine);

array<TRGSWFFT<typename ksP::domainP>, address_bit> bootedTGSW;
alignas(64) array<TRGSWFFT<typename ksP::domainP>, address_bit> bootedTGSW;
vector<TLWE<typename ksP::domainP>> encaddress(address_bit);
array<TRLWE<typename ksP::domainP>, num_trlwe> encmemory;
vector<TLWE<typename ksP::domainP>> encres(word);
Expand Down

0 comments on commit b5705ac

Please sign in to comment.