编译时出现错误:FileNotFoundError: [Errno 2] No such file or directory: ‘cmake_maca’
Answer: 请在编译前执行下环境变量env.sh,cd /code/dir/mcoplib/ && source env.sh
编译时报错:cmake error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
Traceback (most recent call last):
Answer: cmake版本太高,请安装低版本,镜像中的open-ssl版本很低与高版本的cmake无法匹配,所有报错,请卸载高版本cmake,安装低版本的cmake,pip3 install cmake==3.26.3 -i https://repo.metax-tech.com/r/pypi/simple
Release
Release 0.4.4
add cv op kernel
support sglang 0.5.10 op
optimize mcoplib project build
support mxbench for auto test op kernel `s perfromance
support profiler tools check op kernel `s perfromance
support for vllm 0.20.0 op kernels
support Project-customized op kernels
support k-transformer op kernels
support verl op kernels
support all of mcopZoo op kernels
support auto print and dump op input params by setting env
support auto build mxbench running env by shell script
support auto test torch/py/c op api by mxbench cmd
Authors and acknowledgment
Show your appreciation to those who have contributed to the project.
License
For open source projects, say how it is licensed.
Project status
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
mcOpLib
编译
note: 请优先在vllm/sglang的发布的镜像中进行编译, 比如:
安装编译依赖:
环境变量设置:
项目源码编译:
note: 通过pip install -e . –no-build-isolation -v或者-vv, -vvv命令编译时, 并不会打印出setup.py中的print信息,因为pip 对该子进程使用管道(pipe)捕获 stdout/stderr,以便在失败时回显或在 verbose 模式下合并显示, 也即只有在编译失败时或者编译成功完成后才会打印出setup.py中的print信息
CUTLASS OP API接口编译控制
项目打包命令:
安装
mcoplib CV Op Kernel 编译打包
CV Op Deb包安装
Mcoplib cv Op kernel 测试
VLLM自定义算子使能安装
获取版本信息
通过环境变量控制编译
动态控制算子入参信息终端输出或参数dump到本地磁盘
算子入参Dump本地示例
Getting started
samples
QA
执行python -m build –no-isolation 报错:/opt/conda/bin/python: No module named build.main; ‘build’ is a package and cannot be directly executed
Answer:Python 尝试执行
python -m build时,找不到build/_main_.py文件,所以无法将build当作一个 可执行模块(即__main__模块)运行, 你当前环境中的build不是 PyPA 官方的build工具包. 需要安装build包: pip install –force-reinstall buildmcoplib构建打包后, 无法显示版本信息,包文件目录下没有version文件 Answer: 这是因为构建环境中没有安装git命令导致的,请在构建环境中安装git命令
编译时出现错误:FileNotFoundError: [Errno 2] No such file or directory: ‘cmake_maca’ Answer: 请在编译前执行下环境变量env.sh,cd /code/dir/mcoplib/ && source env.sh
编译时报错:cmake error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory Traceback (most recent call last): Answer: cmake版本太高,请安装低版本,镜像中的open-ssl版本很低与高版本的cmake无法匹配,所有报错,请卸载高版本cmake,安装低版本的cmake,pip3 install cmake==3.26.3 -i https://repo.metax-tech.com/r/pypi/simple
Release
Release 0.4.4
Authors and acknowledgment
Show your appreciation to those who have contributed to the project.
License
For open source projects, say how it is licensed.
Project status
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.