have cinderjit.force_compile() override jit list

未关闭
#19 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
compilers

调研方向

首先跟踪 cinderjit.force_compile() 入口点以及它如何检查 JIT 列表,然后将该路径与基于装饰器的编译和 JIT 列表通配符处理进行比较。根据 issue 中涉及第三方模块和装饰器的使用场景,通过一个有针对性的复现确认预期的覆盖行为;完成的标准是,force_compile() 能够将原本未列出的函数标记为需要编译,同时不破坏现有的 JIT 列表行为。

由索引模型根据 Issue 内容生成。

描述

cinder-jit

I noticed that force_compile() fails if the function isn't in the jit list. Would it be reasonable to change that behavior?

Example use case: I'd like to enable jit on some 3rd party modules using jit list wildcards, but within my own code use decorators and force_compile() to mark functions for compile.

主要语言
Python
星标
3.8k
派生
139
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

facebookincubator/MetaPython 的其他 Issue

查看 facebookincubator/MetaPython 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。