Skip to content
forked from sophgo/cvikernel

cvikernel is a lib for TPU instruction generation, serving as assembly.

Notifications You must be signed in to change notification settings

wwwuxy/cvikernel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bmkernel

overview

bmkernel is a lib for TPU instruction generation, serving as assembly.

dependency

none

build

assuming install to ../install_bmkernel

$ cd bmkernel
$ mkdir build
$ cd build
$ cmake -G Ninja -DCHIP=BM1880v2 -DCMAKE_INSTALL_PREFIX=../../install_bmkernel ..

Build
$ cmake --build .
$ cmake --build . -- -v

Install
$ cmake --build . --target install
$ cmake --build . --target install -- -v

Test
$ cmake --build . --target test -- -v

Uninstall
$ xargs rm < install_manifest.txt

output

├── bin
│   └── readcmdbuf
├── include
│   └── bmkernel
│       ├── bm1880v2
│       │   └── bmkernel_1880v2.h
│       ├── bm_kernel.h
│       └── bm_kernel_legacy.h
└── lib
    ├── libbmkernel.so
    └── libbmkernel-static.a

TODO

  • add more testing
  • mv assembly & disassembly here
  • round trip testing, asm %s | disasm

About

cvikernel is a lib for TPU instruction generation, serving as assembly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.9%
  • Other 1.1%