Skip to content

Commit

Permalink
Merge pull request #256 from FloopCZ/local_ram_resources
Browse files Browse the repository at this point in the history
Add LOCAL_RAM_RESOURCES parameter to CMake
  • Loading branch information
FloopCZ authored Mar 1, 2021
2 parents 097e922 + c56ad29 commit ed4ce75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tensorflow_cc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ project(
# If enabled, bazel has to be installed.
option(ALLOW_CUDA "Try to find and use CUDA." ON)
option(REQUIRE_CUDA "Make sure to find and use CUDA (implies ALLOW_CUDA)." OFF)
set(LOCAL_RAM_RESOURCES 4096 CACHE STRING "The amount of local RAM resources passed to bazel (e.g., 4096).")
set(TENSORFLOW_TAG "v${version}" CACHE STRING "The tensorflow release tag to be checked out (default v${version}).")
set(TARGET_CXX_STANDARD "cxx_std_11" CACHE STRING "C++ standard to be enforced when linking to TensorflowCC targets (e.g., cxx_std_11).")

Expand Down
1 change: 1 addition & 0 deletions tensorflow_cc/cmake/build_tensorflow.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ fi
./configure
bazel build --config=opt \
--config=monolithic \
--local_ram_resources=@LOCAL_RAM_RESOURCES@ \
$cuda_config_opts \
tensorflow:libtensorflow_cc.so \
tensorflow:install_headers
Expand Down

0 comments on commit ed4ce75

Please sign in to comment.