commit | 20954e693f7c079e9137decf75ecabc4be6ff1ba | [log] [tgz] |
---|---|---|
author | Sergiu Deitsch <sergiu.deitsch@gmail.com> | Mon May 20 14:15:41 2024 +0200 |
committer | Sergiu Deitsch <sergiu.deitsch@gmail.com> | Tue May 21 23:15:31 2024 +0200 |
tree | fcc2027d42b60a9639ecdee4c2a2f0bde7682594 | |
parent | 57aba3ed0c5ab652d9156af56a8f0923b8f7aa56 [diff] |
Eliminate CUDA set but unused variable warning This avoids warnings such as D:\a\ceres-solver\ceres-solver\internal\ceres\cuda_kernels_bsm_to_crs.cu.cc(143): warning #550-D: variable "row_nnz_e" was set but never used [D:\a\ceres-solver\ceres-solver\build_Release\internal\ceres\ceres_cuda_kernels.vcxproj] int row_nnz_e = 0; ^ detected during instantiation of "void ceres::internal::RowBlockIdAndNNZ(int, int, int, const int *, const ceres::internal::Cell *, const ceres::internal::Block *, const ceres::internal::Block *, int *, int *, int *) [with partitioned=false]" at line 240 Remark: The warnings can be suppressed with "-diag-suppress <warning-number>" that is caused by compile-time conditional use of the variable. Change-Id: I041b076a5208eeb662b8c7500d7b238965be833c
Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems. It is a feature rich, mature and performant library which has been used in production at Google since 2010. Ceres Solver can solve two kinds of problems.
Please see ceres-solver.org for more information.