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

shader-slang / slang-rhi / 22143670337 / 3
69%
main: 69%

Build:
DEFAULT BRANCH: main
Ran 18 Feb 2026 02:33PM UTC
Files 218
Run time 33s
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

18 Feb 2026 02:25PM UTC coverage: 55.655% (-0.3%) from 55.919%
22143670337.3

push

github

web-flow
Set CUDA context on device creation when no context is current (#666)

* Set CUDA context on device creation when no context is current

During initialize(), if no CUDA context is current, set the device's
context via cuCtxSetCurrent so it persists after initialization returns.
If another context is already current, leave it alone — callers should
use setCudaContextCurrent() to explicitly manage the active context.

* Add improvements (#668)

* Add DeviceScope RAII helper for CUDA context management

Add DeviceScope class and SLANG_DEVICE_SCOPE macro that pushes a
device's CUDA context on construction and pops it on destruction.
Intended for external consumers (e.g. SlangPy) that need to interleave
RHI calls with other CUDA libraries. No-op for non-CUDA devices.

Add cuda-device-scope test that verifies push/pop behavior: sets up
a separate context, uses SLANG_DEVICE_SCOPE to switch to the device
context, and confirms the original context is restored after the scope.

* Add CUDA context validation to debug layer

Validate that the correct CUDA context is current when non-hot-path
device methods are called (resource creation, pipeline creation,
readback, etc.). Emits a warning if no context or the wrong context
is active, guiding users to setCudaContextCurrent() or SLANG_DEVICE_SCOPE.

8127 of 17152 branches covered (47.38%)

Branch coverage included in aggregate %.

24809 of 42027 relevant lines covered (59.03%)

113087.92 hits per line

Source Files on job windows-x86_64 - 22143670337.3
  • Tree
  • List 218
  • Changed 11
  • Source Changed 3
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 22143670337
  • 710d05bb on github
  • Prev Job for on main (#22099816469.1)
  • Next Job for on main (#22146915049.3)
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