We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03572ad commit f000257Copy full SHA for f000257
1 file changed
python/cupdlpx/__init__.py
@@ -12,6 +12,17 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
+import os
16
+import platform
17
+
18
+# Windows only: register CUDA bin for dependent DLL loading.
19
+if platform.system() == "Windows":
20
+ cuda_path = os.environ.get("CUDA_PATH")
21
+ if cuda_path:
22
+ bin_path = os.path.join(cuda_path, "bin")
23
+ if os.path.isdir(bin_path):
24
+ os.add_dll_directory(bin_path)
25
26
from .model import Model
27
from . import PDLP
28
@@ -23,4 +34,4 @@
34
try:
35
__version__ = version("cupdlpx")
36
except PackageNotFoundError:
- __version__ = "0.0.0"
37
+ __version__ = "0.0.0"
0 commit comments