File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ set(PYTORCH_INSTALL_DIR "${PROJECT_BINARY_DIR}/pytorch-install")
3131set (PYTORCH_BUILD_DIR "${PROJECT_BINARY_DIR} /pytorch-prefix/src/pytorch-build" )
3232
3333set (PYTORCH_INSTALL_PREFIX "${PROJECT_BINARY_DIR} /pytorch-install-prefix" )
34- file (MAKE_DIRECTORY "${PYTORCH_INSTALL_PREFIX} " )
34+ # file(MAKE_DIRECTORY "${PYTORCH_INSTALL_PREFIX}")
3535
3636# ExternalProject_Add can fetch from Git, a local path, or a release tarball.
3737# Here, for simplicity, we'll fetch from Git. In practice, you might want
@@ -69,10 +69,10 @@ ExternalProject_Add(
6969 # -DUSE_STATIC_MKL=ON
7070 # -DSTATIC_DISPATCH_BACKEND=ON
7171 # -DCAFFE2_USE_MSVC_STATIC_RUNTIME=ON
72- -DUSE_DISTRIBUTED=ON
72+ # -DUSE_DISTRIBUTED=ON
7373 -DCMAKE_BUILD_TYPE=Release
74- -DCMAKE_INSTALL_PREFIX=${PYTORCH_INSTALL_PREFIX }
75- # -DCMAKE_POLICY_VERSION_MINIMUM=3.5
74+ -DCMAKE_INSTALL_PREFIX=${PYTORCH_INSTALL_DIR }
75+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
7676
7777 INSTALL_DIR ${PYTORCH_INSTALL_DIR} # Where to install
7878
You can’t perform that action at this time.
0 commit comments