diff --git a/conda/recipes/cuopt/recipe.yaml b/conda/recipes/cuopt/recipe.yaml index ada955425..ad3fb8bc9 100644 --- a/conda/recipes/cuopt/recipe.yaml +++ b/conda/recipes/cuopt/recipe.yaml @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION. # SPDX-License-Identifier: Apache-2.0 schema_version: 1 @@ -65,7 +65,6 @@ requirements: - rapids-build-backend >=0.4.0,<0.5.0 - rmm =${{ minor_version }} - scikit-build-core>=0.11.0 - - cuda-cudart-dev - if: cuda_major == "12" then: cuda-python >=12.9.2,<13.0 else: cuda-python >=13.0.1,<14.0 @@ -94,7 +93,6 @@ requirements: else: cuda-python >=13.0.1,<14.0 ignore_run_exports: by_name: - - cuda-cudart - cuda-version tests: diff --git a/conda/recipes/libcuopt/recipe.yaml b/conda/recipes/libcuopt/recipe.yaml index 5d417aa1f..8e56c6934 100644 --- a/conda/recipes/libcuopt/recipe.yaml +++ b/conda/recipes/libcuopt/recipe.yaml @@ -72,7 +72,6 @@ cache: - libcudss-dev >=0.7 - libcurand-dev - libcusparse-dev - - cuda-cudart-dev - libboost-devel - tbb-devel - zlib @@ -107,7 +106,6 @@ outputs: - bzip2 ignore_run_exports: by_name: - - cuda-cudart - cuda-nvtx - cuda-version - libcurand @@ -149,7 +147,6 @@ outputs: - cuda-version =${{ cuda_version }} - rapids-logger =0.2 - librmm =${{ minor_version }} - - cuda-cudart-dev - libcublas - libcudss-dev >=0.7 - libcusparse-dev @@ -162,7 +159,6 @@ outputs: - libcudss ignore_run_exports: by_name: - - cuda-cudart - cuda-nvtx - cuda-version - libcudss @@ -199,7 +195,6 @@ outputs: - ${{ pin_subpackage("libcuopt", exact=True) }} - ${{ pin_subpackage("libmps-parser", exact=True) }} - libboost-devel - - cuda-cudart-dev - libcublas - libcudss-dev >=0.7 - libcusparse-dev @@ -208,7 +203,6 @@ outputs: - ${{ pin_subpackage("libmps-parser", exact=True) }} ignore_run_exports: by_name: - - cuda-cudart - cuda-nvtx - cuda-version - libcurand diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 9c26451a7..35f7b7e08 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -1,5 +1,5 @@ # cmake-format: off -# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2021-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # cmake-format: on @@ -41,7 +41,6 @@ rapids_cmake_build_type(Release) option(CMAKE_CUDA_LINEINFO "Enable the -lineinfo option for nvcc useful for cuda-memcheck / profiler" ON) option(BUILD_TESTS "Configure CMake to build tests" ON) option(DISABLE_OPENMP "Disable OpenMP" OFF) -option(CUDA_STATIC_RUNTIME "Statically link the CUDA toolkit runtime and libraries" OFF) option(BUILD_LP_ONLY "Build only linear programming components, exclude routing and MIP-specific files" OFF) option(SKIP_C_PYTHON_ADAPTERS "Skip building C and Python adapter files (cython_solve.cu and cuopt_c.cpp)" OFF) option(SKIP_ROUTING_BUILD "Skip building routing components" OFF) @@ -62,7 +61,7 @@ message(VERBOSE "cuOpt: fatbin: ${WRITE_FATBIN}") # - compiler options ------------------------------------------------------------------------------ # CUDA runtime -rapids_cuda_init_runtime(USE_STATIC ${CUDA_STATIC_RUNTIME}) +rapids_cuda_init_runtime(USE_STATIC ON) rapids_find_package(CUDAToolkit REQUIRED BUILD_EXPORT_SET cuopt-exports diff --git a/python/cuopt/cuopt/linear_programming/CMakeLists.txt b/python/cuopt/cuopt/linear_programming/CMakeLists.txt index 04dd413d5..3067b9ef3 100644 --- a/python/cuopt/cuopt/linear_programming/CMakeLists.txt +++ b/python/cuopt/cuopt/linear_programming/CMakeLists.txt @@ -1,5 +1,5 @@ # cmake-format: off -# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2024-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # cmake-format: on @@ -38,8 +38,6 @@ if(NOT mps_parser_FOUND) set(_exclude_from_all "") if(CUOPT_BUILD_WHEELS) - # Statically link dependencies if building wheels - # set(CUDA_STATIC_RUNTIME ON) # Don't install the cuopt C++ targets into wheels set(_exclude_from_all EXCLUDE_FROM_ALL) endif() diff --git a/python/libcuopt/CMakeLists.txt b/python/libcuopt/CMakeLists.txt index 056e06841..7868d6656 100644 --- a/python/libcuopt/CMakeLists.txt +++ b/python/libcuopt/CMakeLists.txt @@ -1,5 +1,5 @@ # cmake-format: off -# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # cmake-format: on @@ -56,7 +56,6 @@ option(LUSOL "Disable LUSOL" OFF) set(BUILD_TESTS OFF) set(BUILD_BENCHMARKS OFF) set(CUOPT_BUILD_TESTUTIL OFF) -set(CUDA_STATIC_RUNTIME ON) add_subdirectory(../../cpp cuopt-cpp)