Comments (3)
Hello, I encountered a similar issue. I discovered that the if_static
function within the xla/stream_executor/BUILD:753
has an impact on the compilation failure of the dumped_computation_to_text
target.
To resolve this, I attempted removing the if_static
function from the BUILD
file, and this approach proved effective. However, I am uncertain whether this modification might have any unintended consequences on the functionality of XLA.
So, I managed to successfully compile using a static library with the following command:
bazel build --define=framework_shared_object=1 --test_output=all --spawn_strategy=sandboxed //xla/...
This command yielded a successful build.
from xla.
I met a similar problem when building GPU version,
ERROR: /xla/xla/tools/BUILD:160:14: Linking xla/tools/dumped_computation_to_text failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command (from target //xla/tools:dumped_computation_to_text) external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc @bazel-out/k8-opt/bin/xla/tools/dumped_computation_to_text-2.params
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
/usr/bin/ld: bazel-out/k8-opt/bin/xla/backends/interpreter/libplatform.lo(platform.o): in function `stream_executor::interpreter::XlaInterpreterPlatform::GetExecutor(stream_executor::StreamExecutorConfig const&)':
platform.cc:(.text._ZN15stream_executor11interpreter22XlaInterpreterPlatform11GetExecutorERKNS_20StreamExecutorConfigE+0x4c): undefined reference to `stream_executor::ExecutorCache::GetOrCreate(stream_executor::StreamExecutorConfig const&, std::function<absl::lts_20230125::StatusOr<std::unique_ptr<stream_executor::StreamExecutor, std::default_delete<stream_executor::StreamExecutor> > > ()> const&)'
/usr/bin/ld: bazel-out/k8-opt/bin/xla/backends/interpreter/libplatform.lo(platform.o): in function `std::_Rb_tree<int, std::pair<int const, stream_executor::ExecutorCache::Entry>, std::_Select1st<std::pair<int const, stream_executor::ExecutorCache::Entry> >, std::less<int>, std::allocator<std::pair<int const, stream_executor::ExecutorCache::Entry> > >::_M_erase(std::_Rb_tree_node<std::pair<int const, stream_executor::ExecutorCache::Entry> >*)':
platform.cc:(.text._ZNSt8_Rb_treeIiSt4pairIKiN15stream_executor13ExecutorCache5EntryEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E[_ZNSt8_Rb_treeIiSt4pairIKiN15stream_executor13ExecutorCache5EntryEESt10_Select1stIS5_ESt4lessIiESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E]+0x35): undefined reference to `stream_executor::ExecutorCache::Entry::~Entry()'
collect2: error: ld returned 1 exit status
INFO: Elapsed time: 3323.122s, Critical Path: 277.33s
INFO: 17041 processes: 5146 internal, 11895 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
from xla.
Closing this issue since it has been inactive over the past 6 months. Please feel free to reopen if the problem still persists for you.
from xla.
Related Issues (20)
- gpu_hlo_cost_analysis NumOfDevices always return 0 HOT 2
- [Feature Request]Add more comm op support on gpu_hlo_cost_analysis HOT 4
- gpu f16 cast to fp32 calculation, and then converted back? HOT 1
- "Could not find executable `nvidia-smi`" for `./configure.py --backend=CUDA` HOT 6
- Build from source fails HOT 7
- XLA documentation for Windows HOT 1
- Implement GitHub Presubmit Checks for Windows Environment HOT 1
- Support builds with cuDNN 9
- gpu_fused_mha_test fails at HEAD on H100 HOT 1
- Workable example on normal DNN model
- [xla:auto_sharding] Question about resharding costs of Reshape strategies
- OpenCL Support. HOT 2
- BF16 matmul slower than F32 matmul on T4 GPU HOT 3
- PJRT `CopyCpuBufferToLiteral` of JAX buffer taking too long HOT 9
- Porting XLA to different backends. HOT 4
- Compiling xla/mlir/tools/mlir_interpreter/dialects/util.cc failed HOT 3
- MHLO Extraction from XLA Compiler HOT 4
- Controlling a single compiler pass in XLA for CPU target HOT 2
- Compiling scatter results in very slow while-loop on TPU
- Wrong output from JAX test after onednn change HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xla.