mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-10 04:35:03 -05:00
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
#include "negation.cuh"
|
|
#include "negation.h"
|
|
|
|
void cuda_negate_lwe_ciphertext_vector_32(void *v_stream, uint32_t gpu_index,
|
|
void *lwe_array_out,
|
|
void *lwe_array_in,
|
|
uint32_t input_lwe_dimension,
|
|
uint32_t input_lwe_ciphertext_count) {
|
|
|
|
host_negation(v_stream, gpu_index, static_cast<uint32_t *>(lwe_array_out),
|
|
static_cast<uint32_t *>(lwe_array_in), input_lwe_dimension,
|
|
input_lwe_ciphertext_count);
|
|
}
|
|
void cuda_negate_lwe_ciphertext_vector_64(void *v_stream, uint32_t gpu_index,
|
|
void *lwe_array_out,
|
|
void *lwe_array_in,
|
|
uint32_t input_lwe_dimension,
|
|
uint32_t input_lwe_ciphertext_count) {
|
|
|
|
host_negation(v_stream, gpu_index, static_cast<uint64_t *>(lwe_array_out),
|
|
static_cast<uint64_t *>(lwe_array_in), input_lwe_dimension,
|
|
input_lwe_ciphertext_count);
|
|
}
|