From 0a9eb7f2ee13e77217106d65af844030762db570 Mon Sep 17 00:00:00 2001 From: mckay Date: Sun, 5 Jan 2025 22:24:50 +0800 Subject: [PATCH] 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. --- code/IsoSurfacing/App/console_pytorch/CMakeLists.txt | 2 +- code/IsoSurfacing/App/evaluation/CMakeLists.txt | 2 +- code/IsoSurfacing/build.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 code/IsoSurfacing/build.sh diff --git a/code/IsoSurfacing/App/console_pytorch/CMakeLists.txt b/code/IsoSurfacing/App/console_pytorch/CMakeLists.txt index e2168c9..09006e3 100644 --- a/code/IsoSurfacing/App/console_pytorch/CMakeLists.txt +++ b/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) diff --git a/code/IsoSurfacing/App/evaluation/CMakeLists.txt b/code/IsoSurfacing/App/evaluation/CMakeLists.txt index 2f0d708..4ae4a66 100644 --- a/code/IsoSurfacing/App/evaluation/CMakeLists.txt +++ b/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) diff --git a/code/IsoSurfacing/build.sh b/code/IsoSurfacing/build.sh old mode 100644 new mode 100755 index f0dda80..69d039c --- a/code/IsoSurfacing/build.sh +++ b/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