Where do I find discussion / documentation for the above error?
When I try to do some processing of sampler data in the kernel, I see this error, even using pretty simple math (like squaring an array element-wise). In the following code, commenting either of the last two lines allows it to run, otherwise, the error from the title is thrown.
def prepare(self):
self.n_channels = 4
self.smp = np.array([0.0] * self.n_channels)
self.accumulator = np.array([0.0] * self.n_channels)
self.sample_squared = np.array([0.0]*self.n_channels)
@kernel
def take_single_sample():
self.sampler0.sample(self.smp)
self.accumulator += self.smp
test = self.smp*self.smp
self.sample_squared += self.smp