已关闭
[Bug-Report|缺陷反馈]: 编自定义算子包不支持 --jit #322
zhanw_coding创建于  2025年12月25日关闭于  2025年12月26日
zhanw_coding
zhanw_coding成员
2025年12月25日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

一、问题描述 (必填)

编自定义算子包不支持 --jit
--help 中没有提示 --jit --ops 不能一起用
一起用的时候,--jit 不生效,实际还是编译了 kernel

[2025-12-25 15:03:39] Package Build Options:
[2025-12-25 15:03:39] ----------------------------------------------------------------
[2025-12-25 15:03:39]     --pkg                  Build run package with kernel bin
[2025-12-25 15:03:39]     --static               Build static library package (cannot be used with --jit)
[2025-12-25 15:03:39]     --jit                  Build run package without kernel bin
[2025-12-25 15:03:39]     --soc=soc_version      Compile for specified Ascend SoC
[2025-12-25 15:03:39]     --vendor_name=name     Specify custom operator package vendor name
[2025-12-25 15:03:39]     --ops=op1,op2,...      Compile specified operators (comma-separated for multiple)
[2025-12-25 15:03:39]     -j[n]                  Compile thread nums, default is 8, eg: -j8
[2025-12-25 15:03:39]     -O[n]                  Compile optimization options, support [O0 O1 O2 O3], eg:-O3
[2025-12-25 15:03:39]     --asan                 Enable ASAN (Address Sanitizer) on the host side
[2025-12-25 15:03:39]     --build-type=<Type>    Specify build-type (Type options: Release/Debug), Default:Release
[2025-12-25 15:03:39]     --experimental         Build experimental version
[2025-12-25 15:03:39]     --cann_3rd_lib_path=<PATH>
[2025-12-25 15:03:39]                            Set ascend third_party package install path, default ./third_party
[2025-12-25 15:03:39]     --mssanitizer          Build with mssanitizer mode on the kernel side, with options: '-g --cce-enable-sanitizer'
[2025-12-25 15:03:39]     --oom                  Build with oom mode on the kernel side, with options: '-g --cce-enable-oom'
[2025-12-25 15:03:39] ----------------------------------------------------------------

二、环境信息 (可选)

三、重现步骤 (可选)

sh build.sh --pkg --ops -h
sh build.sh --pkg --jit --ops=is_finite

四、预期结果 (可选)

1、要么编自定义算子包支持 jit 参数
2、要么在 --help 中说明不支持 jit,并做冲突检查

💡 备注(选填)

likedislike
sunday成员
2025年12月25日 评论:

您好,文档中和build.sh中需要加一下说明,--jit 不支持自定义算子包

likedislike
Ssunday成员
2025年12月25日 将 songkai111 设为负责人
Ssunday成员
2025年12月25日 将 sky_leilin 设为负责人
sky_leilinsky_leilin成员
2025年12月26日 将 gcw_CRjbEjwl 设为负责人
Ffengdaoyong成员
2025年12月26日 关联了pull request:modify build.sh parameter description
Ffengdaoyong成员
2025年12月26日 删除了关联的pull request:modify build.sh parameter description
Ffengdaoyong成员
2025年12月26日 关联了pull request:modify build.sh parameter description
CANN-robotCANN-robot成员
2025年12月26日 关闭了 issue
CANN-robotCANN-robot成员
3月20日 添加了label:resolved