alibaba / alibaba/BladeDISC

How to get disc-opt command tool?

Open
#1,328 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
933
Forks
169
PR merge metrics
No merged PRs in 30d

Description

Hi, I’m exploring the BladeDISC project and have successfully built the PyTorch version from source. To better understand the compilation pipeline, I’d like to use the command-line tools (for example, disc-opt) to inspect the IR after each compilation pass.

However, the current build process only produces a Python wheel, and I cannot find the disc-opt executable anywhere in the output. I am new to Bazel, could anyone provide guidance on how to get the disc-opt tool from source?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the repository's source-build instructions and Bazel target definitions, focusing on how command-line tools are exposed separately from the Python wheel. Trace the build outputs for the disc-opt target and verify how the resulting executable can be invoked to inspect compilation passes. Done means documenting reproducible commands for building and locating disc-opt.

Written by the indexing model from the issue text.

Assessment

Tech stack
pytorch
Domain
build-system, compilers, machine-learning
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.