Skip to content

Commit c56ad29

Browse files
committed
Add local_ram_resources parameter to cmake
1 parent 097e922 commit c56ad29

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tensorflow_cc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ project(
88
# If enabled, bazel has to be installed.
99
option(ALLOW_CUDA "Try to find and use CUDA." ON)
1010
option(REQUIRE_CUDA "Make sure to find and use CUDA (implies ALLOW_CUDA)." OFF)
11+
set(LOCAL_RAM_RESOURCES 4096 CACHE STRING "The amount of local RAM resources passed to bazel (e.g., 4096).")
1112
set(TENSORFLOW_TAG "v${version}" CACHE STRING "The tensorflow release tag to be checked out (default v${version}).")
1213
set(TARGET_CXX_STANDARD "cxx_std_11" CACHE STRING "C++ standard to be enforced when linking to TensorflowCC targets (e.g., cxx_std_11).")
1314

tensorflow_cc/cmake/build_tensorflow.sh.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ fi
9999
./configure
100100
bazel build --config=opt \
101101
--config=monolithic \
102+
--local_ram_resources=@LOCAL_RAM_RESOURCES@ \
102103
$cuda_config_opts \
103104
tensorflow:libtensorflow_cc.so \
104105
tensorflow:install_headers

0 commit comments

Comments
 (0)