Skip to content

Commit

Permalink
Modifications to support building w/ CUDA 10.2, NCCL for 10.2 & Intel…
Browse files Browse the repository at this point in the history
… MPI libs

Build string: bazel build --config=mkl --config=v2 --config=opt //tensorflow/tools/pip_package:build_pip_package
  • Loading branch information
themikem committed Nov 25, 2019
1 parent 1cf0898 commit cc5645f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
12 changes: 7 additions & 5 deletions tensorflow/lite/experimental/ruy/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ limitations under the License.
// compilation.
//
// TODO(b/138433137) Select AVX-512 at runtime rather than via compile options.
#if defined(__AVX512F__) && defined(__AVX512DQ__) && defined(__AVX512CD__) && \
defined(__AVX512BW__) && defined(__AVX512VL__)
#define RUY_DONOTUSEDIRECTLY_AVX512 1
#else
/* #if defined(__AVX512F__) && defined(__AVX512DQ__) && defined(__AVX512CD__) && \ */
/* defined(__AVX512BW__) && defined(__AVX512VL__) */
/* #define RUY_DONOTUSEDIRECTLY_AVX512 1 */
/* #else */
/* #define RUY_DONOTUSEDIRECTLY_AVX512 0 */
/* #endif */

#define RUY_DONOTUSEDIRECTLY_AVX512 0
#endif

// Detect APPLE
#ifdef __APPLE__
Expand Down
1 change: 1 addition & 0 deletions third_party/gpus/find_cuda_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def _header_paths():
"include/*-linux-gnu",
"extras/CUPTI/include",
"include/cuda/CUPTI",
"targets/x86_64-linux/include",
]


Expand Down
2 changes: 1 addition & 1 deletion third_party/mpi/mpi.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#based on the configuration options return one or the other

def mpi_hdr():
MPI_LIB_IS_OPENMPI = True
MPI_LIB_IS_OPENMPI = False
hdrs = []
if MPI_LIB_IS_OPENMPI:
hdrs = ["mpi.h", "mpi_portable_platform.h"] #When using OpenMPI
Expand Down
2 changes: 1 addition & 1 deletion third_party/nccl/build_defs.bzl.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _device_link_impl(ctx):
"--cmdline=--compile-only",
"--link",
"--compress-all",
"--bin2c-path=%s" % bin2c.dirname,
## Removing for CUDA 10.2 compatibility "--bin2c-path=%s" % bin2c.dirname,
"--create=%s" % tmp_fatbin.path,
"--embedded-fatbin=%s" % fatbin_h.path,
] + images,
Expand Down

0 comments on commit cc5645f

Please sign in to comment.