forked from pytorch/xla
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate bazel torchxla * Remove sndboxing for coverage execution * Add missing files * Remove build_torch_xla_libs mentions. * Improve cache hits * Dont separately require configuring test building; they are free now. * format python * fix run_tests.sh * Pass test arguments via bazelrc * Merge tests into a single target due to grpc address in use issues. * Make testenv consistent for cache hits * Remove abi logic, it's all in setup.py now * Write both to log file and to output * Update depreacated property * add libpython to libs * Change test filter flag * Log file comment out for debugging * Minimize downloads from cache * Migrate to new bazel flag for exec propertieS * Cache silo for CI * set python version so that python3-config is found and used on circleci * use ci cache silos when building * simplify the silo flag * improve silos * Add conda init for tests * format py * hide the creds * remove conda activation * Setup conda library path * Try improving conda setup * Move the setup into bashrc * common * revert to old cache silo flag that allows overrides * ormat py * Revert to old style of specifying remote exec params * Add bes timeout * remove default silos key * Rebase on updates * pass in ld_lib_path to tests * Propagate XLA_EXPERIMENTAL to bazel * Support for cuda in tests * Pass the cuda flag to cpp tests. * remove cuda from deps of ptxla test since it's already in xla_client linked via xla_client:computation_client * Fix multiconfiguration issues for tests * Don't trim the tets config; test_filter remains * Copy the codegen directory to get the source in docker * Add libtpu to the wheel, and link accordingly * include buildextensions; that redefines some disttools classes. python sucks. * Update to cloud builder docker image and pass in the remote bazel flags * Setup silo and remote cache for cloudbuild * Set cache silo even with default creds * fix debug flag * Allow CXX_ABI flag to be set externally. * Set instrumentatoin filter to avoid tests * Document bazel * User might be root often so make sure docs are clear * format py * Remove gen_lazy_tensor; now under codegen/ * Update documentation * add coverage script * Update docs with remote bazel role in gcp * Update bazel docs * Enable remote cache for bazel in ansible. * Propagate default credentials to docker * Remove unused rpath settings * Upstream xla native functions * Don't make the build DEBUG just for coverage. * Avoid waiting for bes, which can be flaky * Remove build-only testing * Update xla native functions yaml * Adjust cpp coverage stuff * Use remote build for building tests. * Debug mode * Allow building tests * Pass the TPU config to bazel tests.
- Loading branch information
1 parent
74eff29
commit ed212d7
Showing
272 changed files
with
2,245 additions
and
902 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
load( | ||
"@org_tensorflow//tensorflow:tensorflow.bzl", | ||
"tf_cc_shared_object", | ||
) | ||
|
||
tf_cc_shared_object( | ||
name = "_XLAC.so", | ||
copts = [ | ||
"-DTORCH_API_INCLUDE_EXTENSION_H", | ||
"-DTORCH_EXTENSION_NAME=_XLAC", | ||
"-fopenmp", | ||
"-fPIC", | ||
"-fwrapv", | ||
], | ||
linkopts = [ | ||
"-Wl,-rpath,$$ORIGIN/torch_xla/lib", # for libtpu | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//third_party/xla_client:computation_client", | ||
"//third_party/xla_client:mesh_service", | ||
"//third_party/xla_client:metrics", | ||
"//third_party/xla_client:metrics_analysis", | ||
"//third_party/xla_client:metrics_reader", | ||
"//third_party/xla_client:multi_wait", | ||
"//third_party/xla_client:profiler", | ||
"//third_party/xla_client:record_reader", | ||
"//third_party/xla_client:sys_util", | ||
"//third_party/xla_client:thread_pool", | ||
"//third_party/xla_client:util", | ||
"//third_party/xla_client:xla_util", | ||
"//torch_xla/csrc:computation", | ||
"//torch_xla/csrc:device", | ||
"//torch_xla/csrc:init_python_bindings", | ||
"//torch_xla/csrc:tensor", | ||
"//torch_xla/csrc:version", | ||
"@com_google_absl//absl/container:flat_hash_map", | ||
"@com_google_absl//absl/strings", | ||
"@com_google_absl//absl/types:variant", | ||
"@org_tensorflow//tensorflow/compiler/xla/python/profiler/internal:traceme_wrapper", | ||
"@org_tensorflow//tensorflow/compiler/xla/service:hlo_parser", | ||
"@org_tensorflow//tensorflow/compiler/xla/service:hlo_pass_pipeline", | ||
"@org_tensorflow//tensorflow/compiler/xla/service:hlo_verifier", | ||
"@org_tensorflow//tensorflow/compiler/xla/service:sharding_propagation", | ||
"@org_tensorflow//tensorflow/compiler/xla/service/spmd:spmd_partitioner", | ||
"@org_tensorflow//tensorflow/core", | ||
"@org_tensorflow//tensorflow/core:protos_all_cc", | ||
"@org_tensorflow//tensorflow/core/platform:env", | ||
"@org_tensorflow//tensorflow/core/profiler/lib:traceme", | ||
"@org_tensorflow//tensorflow/python/profiler/internal:profiler_pywrap_impl", | ||
"@torch//:headers", | ||
"@torch//:libc10", | ||
"@torch//:libtorch", | ||
"@torch//:libtorch_cpu", | ||
"@torch//:libtorch_python", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.