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

shader-slang / slang-rhi / 22143670337
69%

Build:
DEFAULT BRANCH: main
Ran 18 Feb 2026 02:28PM UTC
Jobs 3
Files 0
Run time –
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

pending completion
22143670337

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.
Jobs
ID Job ID Ran Files Coverage
1 linux-x86_64 - 22143670337.1 18 Feb 2026 02:26PM UTC 168
GitHub Action Run
2 macos-aarch64 - 22143670337.2 18 Feb 2026 02:30PM UTC 159
38.87
GitHub Action Run
3 windows-x86_64 - 22143670337.3 18 Feb 2026 02:32PM UTC 218
55.65
GitHub Action Run
Source Files on build 22143670337
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #22143670337
  • 710d05bb on github
  • Prev Build on main (#22099816469)
  • Next Build on main (#22146915049)
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