-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
bugSomething isn't workingSomething isn't working
Description
importing import numba.cuda.datamodel.cuda_models as models causes subsequent kernel launches to fail.
from numba import cuda
from numba.cuda.types import int64, void
import numba.cuda.datamodel.cuda_models as models
@cuda.jit(void(int64[::1]))
def kernel(ary):
print(ary[0])TypeError: Not a structure model: <numba.cuda.datamodel.cuda_models.ArrayModel object at 0x7f95349116a0>
This appears to be due to a conflict between the numba.cuda StructModel class and the upstream version in a place they're not meant to coexist. It's possible that the module redirector hasn't had time to replace the values in the models namespace before something is being registered from the upstream namespace.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working