Skip to content

Commit

Permalink
chore(gpu): fix bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tmontaigu committed Sep 5, 2024
1 parent d454b53 commit c84d0b6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
15 changes: 9 additions & 6 deletions tfhe/src/high_level_api/integers/signed/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ where
crate::FheUint32Id::num_blocks(cuda_key.key.message_modulus),
streams,
);
crate::FheUint32::new(result)
crate::FheUint32::new(result, cuda_key.tag.clone())
}),
})
}
Expand Down Expand Up @@ -341,7 +341,7 @@ where
crate::FheUint32Id::num_blocks(cuda_key.key.message_modulus),
streams,
);
crate::FheUint32::new(result)
crate::FheUint32::new(result, cuda_key.tag.clone())
}),
})
}
Expand Down Expand Up @@ -385,7 +385,7 @@ where
crate::FheUint32Id::num_blocks(cuda_key.key.message_modulus),
streams,
);
crate::FheUint32::new(result)
crate::FheUint32::new(result, cuda_key.tag.clone())
}),
})
}
Expand Down Expand Up @@ -429,7 +429,7 @@ where
crate::FheUint32Id::num_blocks(cuda_key.key.message_modulus),
streams,
);
crate::FheUint32::new(result)
crate::FheUint32::new(result, cuda_key.tag.clone())
}),
})
}
Expand Down Expand Up @@ -473,7 +473,7 @@ where
crate::FheUint32Id::num_blocks(cuda_key.key.message_modulus),
streams,
);
crate::FheUint32::new(result)
crate::FheUint32::new(result, cuda_key.tag.clone())
}),
})
}
Expand Down Expand Up @@ -526,7 +526,10 @@ where
crate::FheUint32Id::num_blocks(cuda_key.key.message_modulus),
streams,
);
(crate::FheUint32::new(result), FheBool::new(is_ok))
(
crate::FheUint32::new(result, cuda_key.tag.clone()),
FheBool::new(is_ok, cuda_key.tag.clone()),
)
}),
})
}
Expand Down
15 changes: 9 additions & 6 deletions tfhe/src/high_level_api/integers/unsigned/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ where
super::FheUint32Id::num_blocks(cuda_key.key.message_modulus),
streams,
);
super::FheUint32::new(result)
super::FheUint32::new(result, cuda_key.tag.clone())
}),
})
}
Expand Down Expand Up @@ -440,7 +440,7 @@ where
super::FheUint32Id::num_blocks(cuda_key.key.message_modulus),
streams,
);
super::FheUint32::new(result)
super::FheUint32::new(result, cuda_key.tag.clone())
}),
})
}
Expand Down Expand Up @@ -484,7 +484,7 @@ where
super::FheUint32Id::num_blocks(cuda_key.key.message_modulus),
streams,
);
super::FheUint32::new(result)
super::FheUint32::new(result, cuda_key.tag.clone())
}),
})
}
Expand Down Expand Up @@ -528,7 +528,7 @@ where
super::FheUint32Id::num_blocks(cuda_key.key.message_modulus),
streams,
);
super::FheUint32::new(result)
super::FheUint32::new(result, cuda_key.tag.clone())
}),
})
}
Expand Down Expand Up @@ -572,7 +572,7 @@ where
super::FheUint32Id::num_blocks(cuda_key.key.message_modulus),
streams,
);
super::FheUint32::new(result)
super::FheUint32::new(result, cuda_key.tag.clone())
}),
})
}
Expand Down Expand Up @@ -625,7 +625,10 @@ where
super::FheUint32Id::num_blocks(cuda_key.key.message_modulus),
streams,
);
(super::FheUint32::new(result), FheBool::new(is_ok))
(
super::FheUint32::new(result, cuda_key.tag.clone()),
FheBool::new(is_ok, cuda_key.tag.clone()),
)
}),
})
}
Expand Down

0 comments on commit c84d0b6

Please sign in to comment.