Browse Source

Refactor build scripts and update CMakeLists for path consistency

- Changed the permissions of build.sh to make it executable.
- Simplified the cmake command in build.sh by removing hardcoded paths for CUDNN.
- Updated CMakeLists.txt in console_pytorch and evaluation directories to reflect a new CMAKE_PREFIX_PATH for libtorch, ensuring compatibility with the current workspace structure.
main
mckay 2 months ago
parent
commit
0a9eb7f2ee
  1. 2
      code/IsoSurfacing/App/console_pytorch/CMakeLists.txt
  2. 2
      code/IsoSurfacing/App/evaluation/CMakeLists.txt
  3. 2
      code/IsoSurfacing/build.sh

2
code/IsoSurfacing/App/console_pytorch/CMakeLists.txt

@ -1,4 +1,4 @@
set(CMAKE_PREFIX_PATH /home/yangliu/Code/IsoSurfaceGen/libtorch/share/cmake/Torch)
set(CMAKE_PREFIX_PATH /workspace/home/wch/NH-Rep/code/IsoSurfacing/libtorch/share/cmake/Torch)
find_package(Torch REQUIRED)
find_package(OpenMP REQUIRED)

2
code/IsoSurfacing/App/evaluation/CMakeLists.txt

@ -1,4 +1,4 @@
set(CMAKE_PREFIX_PATH /home/yangliu/Code/IsoSurfaceGen/libtorch/share/cmake/Torch)
set(CMAKE_PREFIX_PATH /workspace/home/wch/NH-Rep/code/IsoSurfacing/libtorch/share/cmake/Torch)
# set(MKL_INCLUDE_DIR /usr/include/mkl)
# set(MKL_LIBRARIES /usr/lib/x86_64-linux-gnu/libmkl_core.a)

2
code/IsoSurfacing/build.sh

@ -1,3 +1,3 @@
cd build
cmake .. -DCMAKE_PREFIX_PATH=../../libtorch/share/cmake/Torch -DCUDNN_LIBRARY_PATH=../cuda/lib64/libcudnn.so -DCUDNN_INCLUDE_PATH=../cuda/include
cmake ..
make

Loading…
Cancel
Save