Commit d201de1
committed
docs(plan): sim mode does invoke bisheng, measured in vendored cmake
Closes the last open question in section 10. It was recorded as inference; it
is now source.
asc-devkit vendors the toolkit's own ASC_CMake under tools/ascc/cmake/, so the
device compile path is readable without pulling the image:
CMakeDetermineASCCompiler.cmake:47
find_program(CMAKE_ASC_COMPILER NAMES "bisheng" PATHS ".../ccec_compiler/bin/")
CMakeASCInformation.cmake:49
CMAKE_ASC_COMPILE_OBJECT = "<CMAKE_ASC_COMPILER> ... -c -x asc <SOURCE>"
host_config.cmake:69
CCEC_LINKER = <toolkit>/ccec_compiler/bin/ld.lld
The decisive one is negative evidence: every RUN_MODE test in the repository is
STREQUAL "cpu". There is no sim branch anywhere. Build-time therefore
distinguishes only cpu from not-cpu, so sim takes the same path as npu and
bisheng is invoked. The two differ at run time -- which runtime and simulator
libraries load -- not in the build graph. The one extra action on the non-cpu
branch is update_host_stub.py, which generates host-side launch stubs, and a
launch stub exists precisely because there is a real device binary to start.
Worth keeping the reason the question was asked: the opposite design is real
and has good reasons behind it, since instruction-level simulation is orders of
magnitude slower than host code and a host compiler gives gdb and ASAN. CANN
split those concerns instead -- cpu mode IS that design, so sim would duplicate
it unless it executed real device instructions. Three modes rather than two is
itself the answer.
Section 10 now has no open items.1 parent a9d2050 commit d201de1
1 file changed
Lines changed: 25 additions & 7 deletions
Lines changed: 25 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
499 | 516 | | |
500 | 517 | | |
501 | 518 | | |
| |||
603 | 620 | | |
604 | 621 | | |
605 | 622 | | |
606 | | - | |
607 | | - | |
| 623 | + | |
| 624 | + | |
608 | 625 | | |
609 | 626 | | |
610 | 627 | | |
611 | 628 | | |
612 | 629 | | |
613 | 630 | | |
614 | 631 | | |
615 | | - | |
| 632 | + | |
616 | 633 | | |
617 | 634 | | |
618 | 635 | | |
| |||
683 | 700 | | |
684 | 701 | | |
685 | 702 | | |
| 703 | + | |
0 commit comments