Why do I get an illegal memory access when I'm calling a kernel in pycuda? #318
Unanswered
ymmx2
asked this question in
Troubleshooting
Replies: 3 comments 1 reply
-
I'm in the same situation |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, @ymmx2 |
Beta Was this translation helpful? Give feedback.
0 replies
-
No, I didn't solve this issue. I put that on hold the time I get an answer. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to implement a neuron model with Hodgkin and Huxley formalism on my RTX 2080 Ti with PyCuda.
The code is quite large so I wont put all of it here.
the first part of my class is to set the number of neurons, create all variables in the GPU and get the block and grid size according on the number of neurons (1 neuron by thread)
In the function
init_vector
andinit_vector_param
, I put vectors to compute ODE results in the GPUIn the function
Create_GPU_SourceModule
, I create kernels to use on the GPU.I have the a function to update all my variables in a RK4 solver
updateParameters
When I run the code I get this error:
What I'm not understanding is that the error does not occur the first time I use the kernel
h_inf_PC
, it happens on the 13th line of the functionsetParameters
but I already calling the same kernel in line 5 of the same function. If I comment out the calling to the kernel (h_inf_PC
) that causes the issue, the error switched on another calling to a kernel but not necessarily the next one.Beta Was this translation helpful? Give feedback.
All reactions