Skip to content

Instantly share code, notes, and snippets.

@ccam80
ccam80 / cudasim_race_module.py
Last active January 5, 2026 23:03
Reproducer for CUDA simulator thread race leading to "module numba.cuda has no attribute..."
from numba import cuda
from cudasim_race_module2 import AllocatorFactory
class SmallDeviceFunctionsFactory:
def build(self):
allocator_factory = AllocatorFactory()
allocator = allocator_factory.get_allocator()