Skip to content

Commit 7ef14d4

Browse files
committed
fix style
1 parent f61ca92 commit 7ef14d4

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

cpp/src/mip_heuristics/presolve/third_party_presolve.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,8 @@ std::optional<third_party_presolve_result_t<i_t, f_t>> third_party_presolve_t<i_
593593

594594
return std::make_optional(third_party_presolve_result_t<i_t, f_t>{opt_problem, {}});
595595
} else {
596-
cuopt_expects(false,
597-
error_type_t::ValidationError,
598-
"PSLP presolver only supports double precision");
596+
cuopt_expects(
597+
false, error_type_t::ValidationError, "PSLP presolver only supports double precision");
599598
return std::nullopt;
600599
}
601600
}
@@ -769,9 +768,8 @@ void third_party_presolve_t<i_t, f_t>::undo_pslp(rmm::device_uvector<f_t>& prima
769768
raft::copy(dual_solution.data(), uncrushed_sol->y, n_rows, stream_view);
770769
raft::copy(reduced_costs.data(), uncrushed_sol->z, n_cols, stream_view);
771770
} else {
772-
cuopt_expects(false,
773-
error_type_t::ValidationError,
774-
"PSLP postsolve only supports double precision");
771+
cuopt_expects(
772+
false, error_type_t::ValidationError, "PSLP postsolve only supports double precision");
775773
}
776774

777775
stream_view.synchronize();

cpp/src/pdlp/optimization_problem.cu

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
#include <thrust/sort.h>
4040
#include <thrust/tuple.h>
4141

42-
#include <cub/device/device_transform.cuh>
4342
#include <cuda_profiler_api.h>
43+
#include <cub/device/device_transform.cuh>
4444

4545
#include <algorithm>
4646
#include <cmath>
@@ -1512,8 +1512,7 @@ struct cast_op {
15121512
};
15131513

15141514
template <typename From, typename To>
1515-
rmm::device_uvector<To> gpu_cast(const rmm::device_uvector<From>& src,
1516-
rmm::cuda_stream_view stream)
1515+
rmm::device_uvector<To> gpu_cast(const rmm::device_uvector<From>& src, rmm::cuda_stream_view stream)
15171516
{
15181517
rmm::device_uvector<To> dst(src.size(), stream);
15191518
if (src.size() > 0) {

python/cuopt/cuopt/tests/linear_programming/test_lp_solver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,7 @@ def test_pdlp_precision_single():
744744
)
745745
assert solution.get_solved_by_pdlp()
746746

747+
747748
def test_pdlp_precision_mixed():
748749
file_path = (
749750
RAPIDS_DATASET_ROOT_DIR + "/linear_programming/afiro_original.mps"
@@ -762,6 +763,7 @@ def test_pdlp_precision_mixed():
762763
-464.7531, rel=1e-1
763764
)
764765

766+
765767
def test_pdlp_precision_single_crossover():
766768
file_path = (
767769
RAPIDS_DATASET_ROOT_DIR + "/linear_programming/afiro_original.mps"

0 commit comments

Comments
 (0)