Open fiqas opened 3 years ago
It might still be your code. Curand and CUDA errors in general tend to occur after other code has invalidated memory. If there is a chance that you are accessing GPU memory in a bad way in your own code, this might just be a symptom of that.
Can you check the same thing in master, maybe? To exclude your code as a source.
Ah, you said it also fails on the CPU. That's more suspicious. Is the error message the same?
curand wants to generate in multiples of 2. We use curand also on the CPU, when compiled with CUDA on. On CPU-only builds this works because it uses the STL random generator which doesn't require an even number.
OK. thanks. That's annoying. I will take a look what I can do.
Bug description
I'm trying to generate a node with normal distribution but it fails on both GPU and CPU.
It fails at CURAND_CHECK:
How to reproduce
I just did:
auto u = W->graph()->constant({1, 1}, inits::normal());
For example, inits::uniform() works fine. I'm working on my branch, but I don't think it's my code that's at fault. I'm just trying to use inits::normal().Context