Skip to content

Conversation

tmckayus
Copy link
Collaborator

@tmckayus tmckayus commented Sep 2, 2025

This change includes applications to read a cuOpt LP/MIP dataset in JSON format and solve the problem using a particular API or modeling language. Additionally, there is a benchmark script to compare running the problem across the various APIs and modelers. This can be used to examine the overhead differences and any objective value differences between the various interfaces.

- [https://jump.dev/JuMP.jl/stable/packages/cuOpt/](https://jump.dev/JuMP.jl/stable/packages/cuOpt/)

### Environment Setup
For C and Julia APIs, set the library path:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For C and Julia APIs, set the library path:
For C and Julia APIs, set the library path,
Conda:

Copy link
Collaborator

@rgsl888prabhu rgsl888prabhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @tmckayus have a minor set of comments, also had a request, lets add an option to install all the required libraries through a requirements.txt file so users can install these directly.

```bash
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH
```

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Pip:
```bash
export LD_LIBRARY_PATH=COMPLETE_PATH_TO_libcuopt.so

#!/usr/bin/env python3

# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # noqa
# SPDX-License-Identifier: Apache-2.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets change the license to MIT

#!/usr/bin/env python3

# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # noqa
# SPDX-License-Identifier: Apache-2.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, use MIT license

@@ -0,0 +1,148 @@
# Makefile for cuOpt JSON to C API
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

License header

@@ -0,0 +1,40 @@
# Build Guide for cuOpt JSON to C API
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to build c_api_driver or it will get built as part of benchmark script ?

also fix verbose flag in benchmark script for cvxpy
If env var CUOPT_EXTRA_TIMESTAMPS is set, cuopt will emit
extra timestamps to use for timing. If the extra timestamps
are not present, fall back on overall run time and reported
solver time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants