Skip to content

Commit

Permalink
add CMake flag for disabling contrib builds (#3508)
Browse files Browse the repository at this point in the history
  • Loading branch information
killeent authored and soumith committed Nov 6, 2017
1 parent 74d1bb5 commit 122d884
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions aten/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,10 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}/src/ATen)
add_subdirectory(src/ATen/test)
add_subdirectory(contrib/data)
add_subdirectory(contrib/meter)

if(ATEN_NO_CONTRIB)
message("disable contrib because ATEN_NO_CONTRIB is set")
else()
add_subdirectory(contrib/data)
add_subdirectory(contrib/meter)
endif()
1 change: 1 addition & 0 deletions torch/lib/build_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ function build_aten() {
${CMAKE_VERSION} ../../../../aten \
-DCMAKE_BUILD_TYPE=Release \
-DNO_CUDA=$((1-$WITH_CUDA)) \
-DATEN_NO_CONTRIB=1 \
-DCMAKE_INSTALL_PREFIX="$INSTALL_DIR"
# purpusefully not passing C_FLAGS for the same reason as above
make -j$(getconf _NPROCESSORS_ONLN) install
Expand Down

0 comments on commit 122d884

Please sign in to comment.