From f619204d8c3f4fc3b6a6668f96c8b26c2a337de8 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Fri, 10 Jul 2026 16:19:18 -0500 Subject: [PATCH 1/4] fix(clang-format): preserve SPDX comments Signed-off-by: Bradley Dice --- .clang-format | 2 +- cpp/include/cuopt/grpc/cython_grpc_client.hpp | 4 ++-- cpp/include/cuopt/grpc/grpc_client_env.hpp | 4 ++-- .../utilities/segmented_sum_handler.cuh | 4 ++-- cpp/src/branch_and_bound/node_queue.hpp | 4 ++-- cpp/src/grpc/client/grpc_client.cpp | 4 ++-- cpp/src/grpc/client/grpc_client.hpp | 4 ++-- cpp/src/grpc/cuopt_default_grpc_port.h | 4 ++-- cpp/src/grpc/grpc_chunk_key.hpp | 4 ++-- cpp/src/grpc/grpc_problem_mapper.cpp | 4 ++-- cpp/src/grpc/grpc_problem_mapper.hpp | 4 ++-- cpp/src/grpc/grpc_service_mapper.cpp | 4 ++-- cpp/src/grpc/grpc_service_mapper.hpp | 4 ++-- cpp/src/grpc/grpc_settings_mapper.cpp | 4 ++-- cpp/src/grpc/grpc_settings_mapper.hpp | 4 ++-- cpp/src/grpc/grpc_solution_mapper.cpp | 4 ++-- cpp/src/grpc/grpc_solution_mapper.hpp | 4 ++-- cpp/src/grpc/server/grpc_field_element_size.hpp | 4 ++-- cpp/src/grpc/server/grpc_incumbent_proto.hpp | 4 ++-- cpp/src/grpc/server/grpc_job_management.cpp | 4 ++-- cpp/src/grpc/server/grpc_pipe_io.cpp | 4 ++-- cpp/src/grpc/server/grpc_pipe_serialization.hpp | 4 ++-- cpp/src/grpc/server/grpc_server_logger.cpp | 4 ++-- cpp/src/grpc/server/grpc_server_logger.hpp | 4 ++-- cpp/src/grpc/server/grpc_server_main.cpp | 4 ++-- cpp/src/grpc/server/grpc_server_threads.cpp | 4 ++-- cpp/src/grpc/server/grpc_server_types.hpp | 4 ++-- cpp/src/grpc/server/grpc_service_impl.cpp | 4 ++-- cpp/src/grpc/server/grpc_worker.cpp | 4 ++-- cpp/src/grpc/server/grpc_worker_infra.cpp | 4 ++-- cpp/src/mip_heuristics/diversity/lns/rins.cu | 4 ++-- cpp/src/mip_heuristics/diversity/lns/rins.cuh | 4 ++-- .../mip_heuristics/presolve/conflict_graph/clique_table.cu | 4 ++-- .../mip_heuristics/presolve/conflict_graph/clique_table.cuh | 4 ++-- cpp/src/mip_heuristics/utilities/work_unit_ordered_queue.cuh | 4 ++-- cpp/src/pdlp/pdlp_climber_strategy.hpp | 4 ++-- cpp/src/utilities/producer_sync.hpp | 4 ++-- cpp/src/utilities/work_limit_context.hpp | 4 ++-- cpp/src/utilities/work_unit_scheduler.cpp | 4 ++-- cpp/src/utilities/work_unit_scheduler.hpp | 4 ++-- cpp/tests/linear_programming/grpc/grpc_client_test.cpp | 4 ++-- cpp/tests/linear_programming/grpc/grpc_client_test_helper.hpp | 4 ++-- cpp/tests/linear_programming/grpc/grpc_integration_test.cpp | 4 ++-- .../linear_programming/grpc/grpc_pipe_serialization_test.cpp | 4 ++-- cpp/tests/linear_programming/grpc/grpc_test_log_capture.hpp | 4 ++-- cpp/tests/qp/unit_tests/lp_parser_solve_test.cu | 4 ++-- cpp/tests/qp/unit_tests/no_constraints.cu | 4 ++-- cpp/tests/qp/unit_tests/two_variable_test.cu | 4 ++-- .../cuopt-c/convex/examples/general_quadratic_example.c | 4 ++-- .../source/cuopt-c/convex/examples/rotated_socp_example.c | 4 ++-- docs/cuopt/source/cuopt-c/convex/examples/simple_qp_example.c | 4 ++-- .../source/cuopt-c/convex/examples/simple_socp_example.c | 4 ++-- 52 files changed, 103 insertions(+), 103 deletions(-) diff --git a/.clang-format b/.clang-format index fb28c7939b..1204e5319a 100644 --- a/.clang-format +++ b/.clang-format @@ -56,7 +56,7 @@ BreakConstructorInitializers: BeforeColon BreakInheritanceList: BeforeColon BreakStringLiterals: true ColumnLimit: 100 -CommentPragmas: '^ IWYU pragma:' +CommentPragmas: '^ ?[*]? ?(IWYU pragma:|SPDX-)' CompactNamespaces: false ConstructorInitializerAllOnOneLineOrOnePerLine: true # Kept the below 2 to be the same as `IndentWidth` to keep everything uniform diff --git a/cpp/include/cuopt/grpc/cython_grpc_client.hpp b/cpp/include/cuopt/grpc/cython_grpc_client.hpp index 435499e8d3..593014cedc 100644 --- a/cpp/include/cuopt/grpc/cython_grpc_client.hpp +++ b/cpp/include/cuopt/grpc/cython_grpc_client.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/include/cuopt/grpc/grpc_client_env.hpp b/cpp/include/cuopt/grpc/grpc_client_env.hpp index 7f2a07425a..dab3dbe531 100644 --- a/cpp/include/cuopt/grpc/grpc_client_env.hpp +++ b/cpp/include/cuopt/grpc/grpc_client_env.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/include/cuopt/mathematical_optimization/utilities/segmented_sum_handler.cuh b/cpp/include/cuopt/mathematical_optimization/utilities/segmented_sum_handler.cuh index 30cefd910b..809736ee33 100644 --- a/cpp/include/cuopt/mathematical_optimization/utilities/segmented_sum_handler.cuh +++ b/cpp/include/cuopt/mathematical_optimization/utilities/segmented_sum_handler.cuh @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/src/branch_and_bound/node_queue.hpp b/cpp/src/branch_and_bound/node_queue.hpp index 0d248db45a..47c9cb22c7 100644 --- a/cpp/src/branch_and_bound/node_queue.hpp +++ b/cpp/src/branch_and_bound/node_queue.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/src/grpc/client/grpc_client.cpp b/cpp/src/grpc/client/grpc_client.cpp index 74f7877eda..ac28a2f767 100644 --- a/cpp/src/grpc/client/grpc_client.cpp +++ b/cpp/src/grpc/client/grpc_client.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #include "grpc_client.hpp" diff --git a/cpp/src/grpc/client/grpc_client.hpp b/cpp/src/grpc/client/grpc_client.hpp index 7154b2cd9e..3f8fd185de 100644 --- a/cpp/src/grpc/client/grpc_client.hpp +++ b/cpp/src/grpc/client/grpc_client.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/src/grpc/cuopt_default_grpc_port.h b/cpp/src/grpc/cuopt_default_grpc_port.h index 7b2783ca64..5c52e0ef35 100644 --- a/cpp/src/grpc/cuopt_default_grpc_port.h +++ b/cpp/src/grpc/cuopt_default_grpc_port.h @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef CUOPT_DEFAULT_GRPC_PORT_H diff --git a/cpp/src/grpc/grpc_chunk_key.hpp b/cpp/src/grpc/grpc_chunk_key.hpp index 6b526ad7ca..3412e3c440 100644 --- a/cpp/src/grpc/grpc_chunk_key.hpp +++ b/cpp/src/grpc/grpc_chunk_key.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/src/grpc/grpc_problem_mapper.cpp b/cpp/src/grpc/grpc_problem_mapper.cpp index 63a935d169..c9698b7976 100644 --- a/cpp/src/grpc/grpc_problem_mapper.cpp +++ b/cpp/src/grpc/grpc_problem_mapper.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #include "grpc_problem_mapper.hpp" diff --git a/cpp/src/grpc/grpc_problem_mapper.hpp b/cpp/src/grpc/grpc_problem_mapper.hpp index ac895d9d21..0f42782c22 100644 --- a/cpp/src/grpc/grpc_problem_mapper.hpp +++ b/cpp/src/grpc/grpc_problem_mapper.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/src/grpc/grpc_service_mapper.cpp b/cpp/src/grpc/grpc_service_mapper.cpp index 0fac71d905..4f335ee64c 100644 --- a/cpp/src/grpc/grpc_service_mapper.cpp +++ b/cpp/src/grpc/grpc_service_mapper.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #include "grpc_service_mapper.hpp" diff --git a/cpp/src/grpc/grpc_service_mapper.hpp b/cpp/src/grpc/grpc_service_mapper.hpp index 20124db5cb..e70347044c 100644 --- a/cpp/src/grpc/grpc_service_mapper.hpp +++ b/cpp/src/grpc/grpc_service_mapper.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/src/grpc/grpc_settings_mapper.cpp b/cpp/src/grpc/grpc_settings_mapper.cpp index 58bcedf3b2..34926f89e2 100644 --- a/cpp/src/grpc/grpc_settings_mapper.cpp +++ b/cpp/src/grpc/grpc_settings_mapper.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #include "grpc_settings_mapper.hpp" diff --git a/cpp/src/grpc/grpc_settings_mapper.hpp b/cpp/src/grpc/grpc_settings_mapper.hpp index 926c89cbeb..4090a9e798 100644 --- a/cpp/src/grpc/grpc_settings_mapper.hpp +++ b/cpp/src/grpc/grpc_settings_mapper.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/src/grpc/grpc_solution_mapper.cpp b/cpp/src/grpc/grpc_solution_mapper.cpp index 042ad2c4de..5a823986d6 100644 --- a/cpp/src/grpc/grpc_solution_mapper.cpp +++ b/cpp/src/grpc/grpc_solution_mapper.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #include "grpc_solution_mapper.hpp" diff --git a/cpp/src/grpc/grpc_solution_mapper.hpp b/cpp/src/grpc/grpc_solution_mapper.hpp index 6a9ffb9ae8..29fe119daa 100644 --- a/cpp/src/grpc/grpc_solution_mapper.hpp +++ b/cpp/src/grpc/grpc_solution_mapper.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/src/grpc/server/grpc_field_element_size.hpp b/cpp/src/grpc/server/grpc_field_element_size.hpp index 51eaa7290a..1286dace7f 100644 --- a/cpp/src/grpc/server/grpc_field_element_size.hpp +++ b/cpp/src/grpc/server/grpc_field_element_size.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/src/grpc/server/grpc_incumbent_proto.hpp b/cpp/src/grpc/server/grpc_incumbent_proto.hpp index e2f12d587a..32f3b4be94 100644 --- a/cpp/src/grpc/server/grpc_incumbent_proto.hpp +++ b/cpp/src/grpc/server/grpc_incumbent_proto.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ // Codegen target: this file builds and parses cuopt::remote::Incumbent protobuf messages. diff --git a/cpp/src/grpc/server/grpc_job_management.cpp b/cpp/src/grpc/server/grpc_job_management.cpp index aead3672a3..0bc9e1a8c4 100644 --- a/cpp/src/grpc/server/grpc_job_management.cpp +++ b/cpp/src/grpc/server/grpc_job_management.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #ifdef CUOPT_ENABLE_GRPC diff --git a/cpp/src/grpc/server/grpc_pipe_io.cpp b/cpp/src/grpc/server/grpc_pipe_io.cpp index b07c898ebc..3bcf445311 100644 --- a/cpp/src/grpc/server/grpc_pipe_io.cpp +++ b/cpp/src/grpc/server/grpc_pipe_io.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #ifdef CUOPT_ENABLE_GRPC diff --git a/cpp/src/grpc/server/grpc_pipe_serialization.hpp b/cpp/src/grpc/server/grpc_pipe_serialization.hpp index f9e7cf3e0f..b04c1abd39 100644 --- a/cpp/src/grpc/server/grpc_pipe_serialization.hpp +++ b/cpp/src/grpc/server/grpc_pipe_serialization.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/src/grpc/server/grpc_server_logger.cpp b/cpp/src/grpc/server/grpc_server_logger.cpp index e38d86d62b..41a3f81b9c 100644 --- a/cpp/src/grpc/server/grpc_server_logger.cpp +++ b/cpp/src/grpc/server/grpc_server_logger.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #ifdef CUOPT_ENABLE_GRPC diff --git a/cpp/src/grpc/server/grpc_server_logger.hpp b/cpp/src/grpc/server/grpc_server_logger.hpp index 7e3696798c..63dc6abf67 100644 --- a/cpp/src/grpc/server/grpc_server_logger.hpp +++ b/cpp/src/grpc/server/grpc_server_logger.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/src/grpc/server/grpc_server_main.cpp b/cpp/src/grpc/server/grpc_server_main.cpp index fbc2131e73..ae6cdb1360 100644 --- a/cpp/src/grpc/server/grpc_server_main.cpp +++ b/cpp/src/grpc/server/grpc_server_main.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/cpp/src/grpc/server/grpc_server_threads.cpp b/cpp/src/grpc/server/grpc_server_threads.cpp index 95744a4d40..75fdc39b26 100644 --- a/cpp/src/grpc/server/grpc_server_threads.cpp +++ b/cpp/src/grpc/server/grpc_server_threads.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #ifdef CUOPT_ENABLE_GRPC diff --git a/cpp/src/grpc/server/grpc_server_types.hpp b/cpp/src/grpc/server/grpc_server_types.hpp index e199848a72..044936fc64 100644 --- a/cpp/src/grpc/server/grpc_server_types.hpp +++ b/cpp/src/grpc/server/grpc_server_types.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/src/grpc/server/grpc_service_impl.cpp b/cpp/src/grpc/server/grpc_service_impl.cpp index 9cee716e77..5a3772be13 100644 --- a/cpp/src/grpc/server/grpc_service_impl.cpp +++ b/cpp/src/grpc/server/grpc_service_impl.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #ifdef CUOPT_ENABLE_GRPC diff --git a/cpp/src/grpc/server/grpc_worker.cpp b/cpp/src/grpc/server/grpc_worker.cpp index 3c5cfd3295..373652f669 100644 --- a/cpp/src/grpc/server/grpc_worker.cpp +++ b/cpp/src/grpc/server/grpc_worker.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #ifdef CUOPT_ENABLE_GRPC diff --git a/cpp/src/grpc/server/grpc_worker_infra.cpp b/cpp/src/grpc/server/grpc_worker_infra.cpp index e37ce10443..7097badf14 100644 --- a/cpp/src/grpc/server/grpc_worker_infra.cpp +++ b/cpp/src/grpc/server/grpc_worker_infra.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #ifdef CUOPT_ENABLE_GRPC diff --git a/cpp/src/mip_heuristics/diversity/lns/rins.cu b/cpp/src/mip_heuristics/diversity/lns/rins.cu index 46a5b46cab..fb11f009cb 100644 --- a/cpp/src/mip_heuristics/diversity/lns/rins.cu +++ b/cpp/src/mip_heuristics/diversity/lns/rins.cu @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/src/mip_heuristics/diversity/lns/rins.cuh b/cpp/src/mip_heuristics/diversity/lns/rins.cuh index 6257afb179..4e4fd38ebd 100644 --- a/cpp/src/mip_heuristics/diversity/lns/rins.cuh +++ b/cpp/src/mip_heuristics/diversity/lns/rins.cuh @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cu b/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cu index ba94ac613f..1172db5c6f 100644 --- a/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cu +++ b/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cu @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cuh b/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cuh index d9dd0a8920..5d42888dc0 100644 --- a/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cuh +++ b/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cuh @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/src/mip_heuristics/utilities/work_unit_ordered_queue.cuh b/cpp/src/mip_heuristics/utilities/work_unit_ordered_queue.cuh index aa9ad46985..bdb1a4a5d3 100644 --- a/cpp/src/mip_heuristics/utilities/work_unit_ordered_queue.cuh +++ b/cpp/src/mip_heuristics/utilities/work_unit_ordered_queue.cuh @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/src/pdlp/pdlp_climber_strategy.hpp b/cpp/src/pdlp/pdlp_climber_strategy.hpp index d7171fda2f..251eec096e 100644 --- a/cpp/src/pdlp/pdlp_climber_strategy.hpp +++ b/cpp/src/pdlp/pdlp_climber_strategy.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/src/utilities/producer_sync.hpp b/cpp/src/utilities/producer_sync.hpp index afb91a11b6..c054fbfc92 100644 --- a/cpp/src/utilities/producer_sync.hpp +++ b/cpp/src/utilities/producer_sync.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/src/utilities/work_limit_context.hpp b/cpp/src/utilities/work_limit_context.hpp index c75a37b818..be27e1924c 100644 --- a/cpp/src/utilities/work_limit_context.hpp +++ b/cpp/src/utilities/work_limit_context.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/src/utilities/work_unit_scheduler.cpp b/cpp/src/utilities/work_unit_scheduler.cpp index 37744fe088..fe381c0891 100644 --- a/cpp/src/utilities/work_unit_scheduler.cpp +++ b/cpp/src/utilities/work_unit_scheduler.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/src/utilities/work_unit_scheduler.hpp b/cpp/src/utilities/work_unit_scheduler.hpp index 8d238c28a6..00acbd453d 100644 --- a/cpp/src/utilities/work_unit_scheduler.hpp +++ b/cpp/src/utilities/work_unit_scheduler.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/tests/linear_programming/grpc/grpc_client_test.cpp b/cpp/tests/linear_programming/grpc/grpc_client_test.cpp index d22264ae0e..e468cef694 100644 --- a/cpp/tests/linear_programming/grpc/grpc_client_test.cpp +++ b/cpp/tests/linear_programming/grpc/grpc_client_test.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/cpp/tests/linear_programming/grpc/grpc_client_test_helper.hpp b/cpp/tests/linear_programming/grpc/grpc_client_test_helper.hpp index 26c6688a93..6d54a763c1 100644 --- a/cpp/tests/linear_programming/grpc/grpc_client_test_helper.hpp +++ b/cpp/tests/linear_programming/grpc/grpc_client_test_helper.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/tests/linear_programming/grpc/grpc_integration_test.cpp b/cpp/tests/linear_programming/grpc/grpc_integration_test.cpp index 3cad02fa78..a3aafc3936 100644 --- a/cpp/tests/linear_programming/grpc/grpc_integration_test.cpp +++ b/cpp/tests/linear_programming/grpc/grpc_integration_test.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/cpp/tests/linear_programming/grpc/grpc_pipe_serialization_test.cpp b/cpp/tests/linear_programming/grpc/grpc_pipe_serialization_test.cpp index 988057db01..568fa096bf 100644 --- a/cpp/tests/linear_programming/grpc/grpc_pipe_serialization_test.cpp +++ b/cpp/tests/linear_programming/grpc/grpc_pipe_serialization_test.cpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/cpp/tests/linear_programming/grpc/grpc_test_log_capture.hpp b/cpp/tests/linear_programming/grpc/grpc_test_log_capture.hpp index 1bbe33e8a3..21e73325b7 100644 --- a/cpp/tests/linear_programming/grpc/grpc_test_log_capture.hpp +++ b/cpp/tests/linear_programming/grpc/grpc_test_log_capture.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/cpp/tests/qp/unit_tests/lp_parser_solve_test.cu b/cpp/tests/qp/unit_tests/lp_parser_solve_test.cu index 98b3675b0a..e08de87c3e 100644 --- a/cpp/tests/qp/unit_tests/lp_parser_solve_test.cu +++ b/cpp/tests/qp/unit_tests/lp_parser_solve_test.cu @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/cpp/tests/qp/unit_tests/no_constraints.cu b/cpp/tests/qp/unit_tests/no_constraints.cu index e138fa9719..d8a04ffae2 100644 --- a/cpp/tests/qp/unit_tests/no_constraints.cu +++ b/cpp/tests/qp/unit_tests/no_constraints.cu @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/cpp/tests/qp/unit_tests/two_variable_test.cu b/cpp/tests/qp/unit_tests/two_variable_test.cu index 89cb2b40b8..fcdec83de6 100644 --- a/cpp/tests/qp/unit_tests/two_variable_test.cu +++ b/cpp/tests/qp/unit_tests/two_variable_test.cu @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ /* clang-format on */ diff --git a/docs/cuopt/source/cuopt-c/convex/examples/general_quadratic_example.c b/docs/cuopt/source/cuopt-c/convex/examples/general_quadratic_example.c index 9d36fcd2bc..70ff1eccfd 100644 --- a/docs/cuopt/source/cuopt-c/convex/examples/general_quadratic_example.c +++ b/docs/cuopt/source/cuopt-c/convex/examples/general_quadratic_example.c @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ /* * General Convex Quadratic Constraint C API Example diff --git a/docs/cuopt/source/cuopt-c/convex/examples/rotated_socp_example.c b/docs/cuopt/source/cuopt-c/convex/examples/rotated_socp_example.c index 852e93e96f..ecf8574a5c 100644 --- a/docs/cuopt/source/cuopt-c/convex/examples/rotated_socp_example.c +++ b/docs/cuopt/source/cuopt-c/convex/examples/rotated_socp_example.c @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ /* * Rotated SOCP C API Example diff --git a/docs/cuopt/source/cuopt-c/convex/examples/simple_qp_example.c b/docs/cuopt/source/cuopt-c/convex/examples/simple_qp_example.c index 29b64e5fa2..2b3de3ae7c 100644 --- a/docs/cuopt/source/cuopt-c/convex/examples/simple_qp_example.c +++ b/docs/cuopt/source/cuopt-c/convex/examples/simple_qp_example.c @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ /* * Simple QP C API Example diff --git a/docs/cuopt/source/cuopt-c/convex/examples/simple_socp_example.c b/docs/cuopt/source/cuopt-c/convex/examples/simple_socp_example.c index b986ba3ca2..3daefba2cb 100644 --- a/docs/cuopt/source/cuopt-c/convex/examples/simple_socp_example.c +++ b/docs/cuopt/source/cuopt-c/convex/examples/simple_socp_example.c @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights - * reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 */ /* * Simple SOCP C API Example From c8e24ba373a02188a9e3d02593ac57b1698fe9aa Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Fri, 10 Jul 2026 17:02:44 -0500 Subject: [PATCH 2/4] Use unanchored SPDX comment pragma Signed-off-by: Bradley Dice --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 1204e5319a..9ff27d3ca5 100644 --- a/.clang-format +++ b/.clang-format @@ -56,7 +56,7 @@ BreakConstructorInitializers: BeforeColon BreakInheritanceList: BeforeColon BreakStringLiterals: true ColumnLimit: 100 -CommentPragmas: '^ ?[*]? ?(IWYU pragma:|SPDX-)' +CommentPragmas: '(IWYU pragma:|SPDX-)' CompactNamespaces: false ConstructorInitializerAllOnOneLineOrOnePerLine: true # Kept the below 2 to be the same as `IndentWidth` to keep everything uniform From 886f272db0396af20477c8c5bbadeb50da024ba0 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Fri, 10 Jul 2026 17:28:04 -0500 Subject: [PATCH 3/4] Update pre-commit-hooks to v1.6.0 Signed-off-by: Bradley Dice --- .pre-commit-config.yaml | 2 +- .../utilities/segmented_sum_handler.cuh | 12 ------------ cpp/src/mip_heuristics/diversity/lns/rins.cu | 12 ------------ cpp/src/mip_heuristics/diversity/lns/rins.cuh | 12 ------------ .../presolve/conflict_graph/clique_table.cu | 12 ------------ .../presolve/conflict_graph/clique_table.cuh | 12 ------------ .../utilities/work_unit_ordered_queue.cuh | 12 ------------ cpp/src/pdlp/pdlp_climber_strategy.hpp | 12 ------------ cpp/src/utilities/producer_sync.hpp | 12 ------------ cpp/src/utilities/work_limit_context.hpp | 12 ------------ cpp/src/utilities/work_unit_scheduler.cpp | 12 ------------ cpp/src/utilities/work_unit_scheduler.hpp | 12 ------------ .../nim-operator/guide/cuopt-nimservice-full.yaml | 1 + .../nim-operator/guide/cuopt-nimservice.yaml | 1 + .../source/cuopt-server/nim-operator/guide/deploy.sh | 3 ++- regression/config.sh | 3 ++- 16 files changed, 7 insertions(+), 135 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f6ccc04034..2cfa2db1a8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -61,7 +61,7 @@ repos: - id: shellcheck args: ["--severity=warning"] - repo: https://github.com/rapidsai/pre-commit-hooks - rev: v1.4.3 + rev: v1.6.0 hooks: - id: verify-copyright args: [--fix, --spdx] diff --git a/cpp/include/cuopt/mathematical_optimization/utilities/segmented_sum_handler.cuh b/cpp/include/cuopt/mathematical_optimization/utilities/segmented_sum_handler.cuh index 809736ee33..dd4284dab3 100644 --- a/cpp/include/cuopt/mathematical_optimization/utilities/segmented_sum_handler.cuh +++ b/cpp/include/cuopt/mathematical_optimization/utilities/segmented_sum_handler.cuh @@ -1,18 +1,6 @@ /* * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ #pragma once diff --git a/cpp/src/mip_heuristics/diversity/lns/rins.cu b/cpp/src/mip_heuristics/diversity/lns/rins.cu index fb11f009cb..7232e517b4 100644 --- a/cpp/src/mip_heuristics/diversity/lns/rins.cu +++ b/cpp/src/mip_heuristics/diversity/lns/rins.cu @@ -1,18 +1,6 @@ /* * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ #include diff --git a/cpp/src/mip_heuristics/diversity/lns/rins.cuh b/cpp/src/mip_heuristics/diversity/lns/rins.cuh index 4e4fd38ebd..6a0b239288 100644 --- a/cpp/src/mip_heuristics/diversity/lns/rins.cuh +++ b/cpp/src/mip_heuristics/diversity/lns/rins.cuh @@ -1,18 +1,6 @@ /* * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ #pragma once diff --git a/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cu b/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cu index 1172db5c6f..3bd5925e92 100644 --- a/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cu +++ b/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cu @@ -1,18 +1,6 @@ /* * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ #define DEBUG_KNAPSACK_CONSTRAINTS 0 diff --git a/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cuh b/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cuh index 5d42888dc0..3ddc1524de 100644 --- a/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cuh +++ b/cpp/src/mip_heuristics/presolve/conflict_graph/clique_table.cuh @@ -1,18 +1,6 @@ /* * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ #pragma once diff --git a/cpp/src/mip_heuristics/utilities/work_unit_ordered_queue.cuh b/cpp/src/mip_heuristics/utilities/work_unit_ordered_queue.cuh index bdb1a4a5d3..97abcea3fc 100644 --- a/cpp/src/mip_heuristics/utilities/work_unit_ordered_queue.cuh +++ b/cpp/src/mip_heuristics/utilities/work_unit_ordered_queue.cuh @@ -1,18 +1,6 @@ /* * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ #pragma once diff --git a/cpp/src/pdlp/pdlp_climber_strategy.hpp b/cpp/src/pdlp/pdlp_climber_strategy.hpp index 251eec096e..01e93c7576 100644 --- a/cpp/src/pdlp/pdlp_climber_strategy.hpp +++ b/cpp/src/pdlp/pdlp_climber_strategy.hpp @@ -1,18 +1,6 @@ /* * SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ #pragma once diff --git a/cpp/src/utilities/producer_sync.hpp b/cpp/src/utilities/producer_sync.hpp index c054fbfc92..129fe665a7 100644 --- a/cpp/src/utilities/producer_sync.hpp +++ b/cpp/src/utilities/producer_sync.hpp @@ -1,18 +1,6 @@ /* * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ #pragma once diff --git a/cpp/src/utilities/work_limit_context.hpp b/cpp/src/utilities/work_limit_context.hpp index be27e1924c..3463847123 100644 --- a/cpp/src/utilities/work_limit_context.hpp +++ b/cpp/src/utilities/work_limit_context.hpp @@ -1,18 +1,6 @@ /* * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ #pragma once diff --git a/cpp/src/utilities/work_unit_scheduler.cpp b/cpp/src/utilities/work_unit_scheduler.cpp index fe381c0891..69d4a6a172 100644 --- a/cpp/src/utilities/work_unit_scheduler.cpp +++ b/cpp/src/utilities/work_unit_scheduler.cpp @@ -1,18 +1,6 @@ /* * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ #include diff --git a/cpp/src/utilities/work_unit_scheduler.hpp b/cpp/src/utilities/work_unit_scheduler.hpp index 00acbd453d..bc84f0513f 100644 --- a/cpp/src/utilities/work_unit_scheduler.hpp +++ b/cpp/src/utilities/work_unit_scheduler.hpp @@ -1,18 +1,6 @@ /* * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ #pragma once diff --git a/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice-full.yaml b/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice-full.yaml index ea48f3095f..2b6efa325e 100644 --- a/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice-full.yaml +++ b/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice-full.yaml @@ -10,6 +10,7 @@ metadata: spec: image: repository: nvcr.io/nvidia/cuopt/cuopt + # rapids-pre-commit-hooks: disable-next-line[verify-hardcoded-version] tag: "26.6.0-cu12" pullPolicy: IfNotPresent pullSecrets: diff --git a/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice.yaml b/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice.yaml index 9740c09ad2..8fcb9834d7 100644 --- a/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice.yaml +++ b/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice.yaml @@ -9,6 +9,7 @@ metadata: spec: image: repository: nvcr.io/nvidia/cuopt/cuopt + # rapids-pre-commit-hooks: disable-next-line[verify-hardcoded-version] tag: "26.6.0-cu12" pullPolicy: IfNotPresent pullSecrets: diff --git a/docs/cuopt/source/cuopt-server/nim-operator/guide/deploy.sh b/docs/cuopt/source/cuopt-server/nim-operator/guide/deploy.sh index 0301b816f1..53cd2ac9ed 100755 --- a/docs/cuopt/source/cuopt-server/nim-operator/guide/deploy.sh +++ b/docs/cuopt/source/cuopt-server/nim-operator/guide/deploy.sh @@ -1,5 +1,5 @@ #!/bin/bash -# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # @@ -18,6 +18,7 @@ set -e # Default values NAMESPACE="nim-service" +# rapids-pre-commit-hooks: disable-next-line[verify-hardcoded-version] CUOPT_IMAGE_TAG="26.6.0-cu12" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" UNINSTALL=false diff --git a/regression/config.sh b/regression/config.sh index e45398a06a..f2465cf8a4 100644 --- a/regression/config.sh +++ b/regression/config.sh @@ -1,6 +1,6 @@ #!/bin/bash # shellcheck disable=all -# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 @@ -14,6 +14,7 @@ PARTITION="batch" GPUS_PER_NODE=8 # Path to the squashs file containing the container image +# rapids-pre-commit-hooks: disable-next-line[verify-hardcoded-version] IMAGE="nvidia/cuopt:26.6.0a-cu12" ALL_CONFIGS_PATH=$SCRATCH_DIR/configs/ From 3e31f8f2154bd20895508c2dc0acb7989d57e4e1 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Fri, 10 Jul 2026 17:44:49 -0500 Subject: [PATCH 4/4] Exclude NIM operator guide from version check Signed-off-by: Bradley Dice --- .pre-commit-config.yaml | 1 + .../cuopt-server/nim-operator/guide/cuopt-nimservice-full.yaml | 1 - .../source/cuopt-server/nim-operator/guide/cuopt-nimservice.yaml | 1 - docs/cuopt/source/cuopt-server/nim-operator/guide/deploy.sh | 1 - 4 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2cfa2db1a8..d084d6a64e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -97,6 +97,7 @@ repos: (^|/)pom[.]xml$| ^[.]pre-commit-config[.]yaml$| ^conda/environments/| + ^docs/cuopt/source/cuopt-server/nim-operator/guide/| (^|/)VERSION$| (^|/)RAPIDS_BRANCH$| [.](md|rst|avro|parquet|png|orc|gz|pkl|sas7bdat|msgpack|pickle|jpg|bz2|zlib)$| diff --git a/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice-full.yaml b/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice-full.yaml index 2b6efa325e..ea48f3095f 100644 --- a/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice-full.yaml +++ b/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice-full.yaml @@ -10,7 +10,6 @@ metadata: spec: image: repository: nvcr.io/nvidia/cuopt/cuopt - # rapids-pre-commit-hooks: disable-next-line[verify-hardcoded-version] tag: "26.6.0-cu12" pullPolicy: IfNotPresent pullSecrets: diff --git a/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice.yaml b/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice.yaml index 8fcb9834d7..9740c09ad2 100644 --- a/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice.yaml +++ b/docs/cuopt/source/cuopt-server/nim-operator/guide/cuopt-nimservice.yaml @@ -9,7 +9,6 @@ metadata: spec: image: repository: nvcr.io/nvidia/cuopt/cuopt - # rapids-pre-commit-hooks: disable-next-line[verify-hardcoded-version] tag: "26.6.0-cu12" pullPolicy: IfNotPresent pullSecrets: diff --git a/docs/cuopt/source/cuopt-server/nim-operator/guide/deploy.sh b/docs/cuopt/source/cuopt-server/nim-operator/guide/deploy.sh index 53cd2ac9ed..91f0e772fc 100755 --- a/docs/cuopt/source/cuopt-server/nim-operator/guide/deploy.sh +++ b/docs/cuopt/source/cuopt-server/nim-operator/guide/deploy.sh @@ -18,7 +18,6 @@ set -e # Default values NAMESPACE="nim-service" -# rapids-pre-commit-hooks: disable-next-line[verify-hardcoded-version] CUOPT_IMAGE_TAG="26.6.0-cu12" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" UNINSTALL=false