• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

shader-slang / slang-rhi / 22099170781
69%

Build:
DEFAULT BRANCH: main
Ran 17 Feb 2026 12:53PM UTC
Jobs 3
Files 241
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Feb 2026 12:51PM UTC coverage: 57.779% (-0.04%) from 57.816%
22099170781

push

github

web-flow
Reduce CUDA context push/pop overhead (#642)

* Set CUDA context at SlangPy entry points for reduced overhead

  - Add set_cuda_context_current() wrapper in Device class
  - Call setCudaContextCurrent() in NativeCallData::exec() before kernel
  execution
  - Add Python binding for manual context control
  - Update tests to set CUDA context before test execution

  Works with slang-rhi CUDA context optimization to eliminate per-call
  push/pop overhead by setting context once at entry points.

* Simplify the ContextScope push/pop

* Address review feedback: restore push/pop in present()/configure(), keep cuCtxGetCurrent optimization

9502 of 19070 branches covered (49.83%)

Branch coverage included in aggregate %.

9 of 28 new or added lines in 3 files covered. (32.14%)

13 existing lines in 4 files now uncovered.

27807 of 45502 relevant lines covered (61.11%)

255651.8 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
40.54
0.7% src/device.h
8
53.12
-0.22% src/debug-layer/debug-device.cpp
9
80.77
-2.12% src/cuda/cuda-device.cpp

Uncovered Existing Lines

Lines Coverage ∆ File
1
80.73
-0.35% src/cuda/cuda-pipeline.cpp
1
73.72
-0.38% src/cuda/cuda-buffer.cpp
4
80.77
-2.12% src/cuda/cuda-device.cpp
7
0.0
0.0% src/cuda/cuda-surface.cpp
Jobs
ID Job ID Ran Files Coverage
1 linux-x86_64 - 22099170781.1 17 Feb 2026 12:53PM UTC 168
65.43
GitHub Action Run
2 windows-x86_64 - 22099170781.2 17 Feb 2026 12:55PM UTC 218
55.89
GitHub Action Run
3 macos-aarch64 - 22099170781.3 17 Feb 2026 12:58PM UTC 159
38.85
GitHub Action Run
Source Files on build 22099170781
  • Tree
  • List 241
  • Changed 22
  • Source Changed 15
  • Coverage Changed 22
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22099170781
  • 6f7872ce on github
  • Prev Build on main (#21997127920)
  • Next Build on main (#22099816469)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc