Docs / nablatensor-engine-cuda / com.nablatensor.backend.cuda
final class
CudaJit
Public, minimal handle on the CUDA driver for code that generates its own kernel source at runtime (NVRTC compile, device allocate, launch). The tensor/jit path in CudaBackend keeps its own fused-kernel cache; this facade exists so other modules can drive the same driver context and stream without a second CUDA context being created.
Methods
NVRTC target architecture of device 0, e.g. compute_75.
Whether the driver will kill kernels that run too long on this device (CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT). This is set precisely when the device is also driving a display, in which case an overlong launch does not merely fail: it stalls the compositor for the duration and, once the watchdog fires, takes the screen down with it through a GPU reset. Callers should bound their launch durations when this is true.
Compiles CUDA C source with NVRTC and returns a launchable function handle.
Uploads a tape's structural arrays (opcodes, argument indices, flags).
Launches a 1-D grid. Arguments must be Long, Integer or Float.