cudaError_t error_code =
cudaMalloc(&result_device, size * sizeof(Number));
AssertCuda(error_code);
- error_code = cudaMemset(result_device, Number(), sizeof(Number));
+ error_code = cudaMemset(result_device, 0, sizeof(Number));
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::double_vector_reduction<
Number * result_device;
cudaError_t error_code = cudaMalloc(&result_device, sizeof(Number));
AssertCuda(error_code);
- error_code = cudaMemset(result_device, Number(), sizeof(Number));
+ error_code = cudaMemset(result_device, 0, sizeof(Number));
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::reduction<
Number * result_device;
cudaError_t error_code = cudaMalloc(&result_device, sizeof(Number));
AssertCuda(error_code);
- error_code = cudaMemset(result_device, Number(), sizeof(Number));
+ error_code = cudaMemset(result_device, 0, sizeof(Number));
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
::dealii::LinearAlgebra::CUDAWrappers::kernel::reduction<
Number * res_d;
cudaError_t error_code = cudaMalloc(&res_d, sizeof(Number));
AssertCuda(error_code);
- error_code = cudaMemset(res_d, 0., sizeof(Number));
+ error_code = cudaMemset(res_d, 0, sizeof(Number));
AssertCuda(error_code);
const int n_blocks = 1 + (size - 1) / (chunk_size * block_size);
cudaError_t error_code =
cudaMalloc(&result_device, n_elements * sizeof(Number));
AssertCuda(error_code);
- error_code = cudaMemset(result_device, Number(), sizeof(Number));
+ error_code = cudaMemset(result_device, 0, sizeof(Number));
const int n_blocks = 1 + (n_elements - 1) / (chunk_size * block_size);
kernel::double_vector_reduction<Number, kernel::DotProduct<Number>>
Number * result_device;
cudaError_t error_code = cudaMalloc(&result_device, sizeof(Number));
AssertCuda(error_code);
- error_code = cudaMemset(result_device, Number(), sizeof(Number));
+ error_code = cudaMemset(result_device, 0, sizeof(Number));
const int n_blocks = 1 + (n_elements - 1) / (chunk_size * block_size);
kernel::reduction<Number, kernel::ElemSum<Number>>
Number * result_device;
cudaError_t error_code = cudaMalloc(&result_device, sizeof(Number));
AssertCuda(error_code);
- error_code = cudaMemset(result_device, Number(), sizeof(Number));
+ error_code = cudaMemset(result_device, 0, sizeof(Number));
const int n_blocks = 1 + (n_elements - 1) / (chunk_size * block_size);
kernel::reduction<Number, kernel::L1Norm<Number>>
Number * result_device;
cudaError_t error_code = cudaMalloc(&result_device, sizeof(Number));
AssertCuda(error_code);
- error_code = cudaMemset(result_device, Number(), sizeof(Number));
+ error_code = cudaMemset(result_device, 0, sizeof(Number));
const int n_blocks = 1 + (n_elements - 1) / (chunk_size * block_size);
kernel::reduction<Number, kernel::LInfty<Number>>
Number * result_device;
cudaError_t error_code = cudaMalloc(&result_device, sizeof(Number));
AssertCuda(error_code);
- error_code = cudaMemset(result_device, 0., sizeof(Number));
+ error_code = cudaMemset(result_device, 0, sizeof(Number));
AssertCuda(error_code);
const int n_blocks = 1 + (n_elements - 1) / (chunk_size * block_size);