Skip to content

Commit 7bf2ec6

Browse files
chore(gpu): fix warnings detection
1 parent 2d7e1b2 commit 7bf2ec6

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,8 +697,9 @@ test_high_level_api_gpu_debug: install_rs_build_toolchain install_cargo_nextest
697697
test_integer_hl_test_gpu_check_warnings: install_rs_build_toolchain
698698
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) build \
699699
--features=integer,internal-keycache,gpu-debug,zk-pok -vv -p $(TFHE_SPEC) &> /tmp/gpu_compile_output
700-
WARNINGS=$$(cat /tmp/gpu_compile_output | grep ": warning:" | grep "\[tfhe-cuda-backend" | grep -v "inline function" || true) && \
700+
WARNINGS=$$(cat /tmp/gpu_compile_output | grep ": warning #" | grep "\[tfhe-cuda-backend" | grep -v "inline qualifier" || true) && \
701701
if [[ "$${WARNINGS}" != "" ]]; then \
702+
echo "FAILING BECAUSE CUDA COMPILATION WARNINGS WERE DETECTED: " && \
702703
echo "$${WARNINGS}" && exit 1; \
703704
fi
704705

backends/tfhe-cuda-backend/cuda/include/integer/integer_utilities.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3769,8 +3769,6 @@ template <typename Torus> struct int_tree_sign_reduction_buffer {
37693769
gpu_memory_allocated = allocate_gpu_memory;
37703770
this->params = params;
37713771

3772-
uint64_t big_size = (params.big_lwe_dimension + 1) * sizeof(Torus);
3773-
37743772
block_selector_f = [](Torus msb, Torus lsb) -> Torus {
37753773
if (msb == IS_EQUAL) // EQUAL
37763774
return lsb;
@@ -3866,8 +3864,6 @@ template <typename Torus> struct int_comparison_diff_buffer {
38663864
}
38673865
};
38683866

3869-
uint64_t big_size = (params.big_lwe_dimension + 1) * sizeof(Torus);
3870-
38713867
tmp_packed = new CudaRadixCiphertextFFI;
38723868
create_zero_radix_ciphertext_async<Torus>(
38733869
streams[0], gpu_indexes[0], tmp_packed, num_radix_blocks,

backends/tfhe-cuda-backend/cuda/src/polynomial/dot_product.cuh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ __host__ void host_glwe_wrapping_polynomial_mul_one_to_many(
100100
cudaStream_t stream, uint32_t gpu_index, Torus *result,
101101
const Torus *glwe_lhs, int8_t *circulant, const Torus *poly_rhs,
102102
uint32_t polynomial_size, uint32_t glwe_dimension, uint32_t n_rhs) {
103-
uint64_t const *glwe_lhs_t = static_cast<uint64_t const *>(glwe_lhs);
104103

105104
for (unsigned i = 0; i < glwe_dimension + 1; ++i) {
106105
host_wrapping_polynomial_mul_one_to_many<uint64_t, ulonglong4>(

0 commit comments

Comments
 (0)