population.cu takes ~2h to compile from a cold sccache miss (7-arch nvcc build)

未关闭
#1,976 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@aliceb-nv 已经在做这个了。

开始于 2026年9月22日。

评估

这个 Issue 还没有评估数据。

描述

Observed in NVIDIA/cuopt#1969, run 35740440549: cpp/src/mip_heuristics/diversity/population.cu alone took 1h52m47s to compile (14:53:28→16:46:15 UTC) once its sccache key was invalidated by an unrelated header-only change in cpu_routing_problem.hpp. The rest of the 474-target build finished in minutes; this one file was the critical path for the whole job.

Compiled for 7 architectures in one nvcc invocation: sm_75, 80, 86, 90a, 100f, 120a, 120, with --expt-extended-lambda --expt-relaxed-constexpr -O3 -lineinfo.

Worth investigating:

  • Is this file unusually template-heavy for what it does?
  • Could it be split into smaller translation units to compile in parallel instead of one monolithic unit?
  • Does it need all 7 archs, or could some be dropped/deferred?

A single unrelated header touch shouldn't be able to add ~2h to CI turnaround via one file.

🤖 Generated with Claude Code

主要语言
Cuda
星标
1.1k
派生
255
平均合并
1 天 11 小时
30 天内合并 PR
123

环境准备

从这里开始

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

NVIDIA/cuopt 的其他 Issue

查看 NVIDIA/cuopt 的全部 Issue

把新 issue 发到你的邮箱

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