You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set(GUROBI_ROOT/usr/local/lib/gurobi1201/linux64)# FIXME: Change this to your local gurobi installation directory
44
46
45
47
# LibTorch Configuration
48
+
# If you want to install LibTorch, please follow the instructions at:
49
+
# https://pytorch.org/
50
+
# $ sudo cp -r libtorch /usr/local/lib/
46
51
option(CDDP_CPP_TORCH"Whether to use LibTorch"OFF)
47
52
option(CDDP_CPP_TORCH_GPU"Whether to use GPU support in LibTorch"OFF)
48
-
set(LIBTORCH_DIR$ENV{HOME}/.local/lib/libtorchCACHEPATH"Path to local LibTorch installation") # FIXME: Change this to your local LibTorch installation directory
49
-
50
-
# Python Configuration
51
-
set(Python_EXECUTABLE/usr/bin/python3.10) # Or the path to your desired Python interpreter
52
-
execute_process( # Find the NumPy include directory
set(LIBTORCH_DIR/usr/local/lib/libtorchCACHEPATH"Path to local LibTorch installation") # FIXME: Change this to your local LibTorch installation directory
Although the library automatically finds and installs the following dependencies via [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html), if you do not have ones, here is how you can install on your own.
@@ -187,7 +213,7 @@ This project uses the following open-source libraries:
0 commit comments