-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cuda error in extract_spikes #316
Comments
That looks like an uninformative CUDA error. Does it always stop in the same place? Can you try to see what's different about that batch? You might also need to upgrade your Nvidia drivers. What is your GPU? |
It does always stop at the same place. I couldn't find anything weird with the batch except the batch before this had variable I have updated the drivers. GPU = Nvidia GeForce 1070 Ti |
It's probably the batch with 0 spikes where it errored (CUDA errors come up asynchronously, on the next GPU operation). And it's probably 0 spikes because something went wrong inside the kernel, not because there are really 0 spikes (can you check, do you see spikes in that batch?). |
yeah, I see spikes in that batch. |
Hi @rajatsaxena, have you made any progress with this in the last couple of days? I just got Kilosort 3 and am also having this problem. It only occurs with certain recordings though, maybe because of a lack of spikes in a batch? |
Hi, @rajatsaxena @AlexSonneborn , any news? I'm also encountering this error |
Hi, I'm also having the same issue.
|
Hello, I had the same error due to mismatch between real and indicated number of channels. (I indicated 68 channels for 64-channel recording). |
Ah yes, I forgot to change Thank you @bryzgalovdm ! |
I still have this problem with ops.NchanTOT=384 (i.e right # of channels for NP probe). @rajatsaxena @AlexSonneborn - did you solve this by correcting the channel count? |
My problem was also #of channels after all. ops.NchanTOT should be 385 (384 neural channels + 1 sync channel) as was originally in the config file. |
I also find this problem with the a correct 0.03 sec, 1 batches, 0 spikes
Error using gpuArray/subsasgn
An unexpected error occurred trying to launch a kernel. The CUDA error was:
invalid configuration argument
Error in extract_spikes (line 97)
st(5,:) = cF;
Error in main_kilosort3 (line 49)
[rez, st3, tF] = extract_spikes(rez); I can get rid of in Kilosort-2.5 if I add |
Hi, I also find that if if I turn off the registration I can avoid this error for certain recordings. Why is that? |
I'm not very sure about it but pull #288 suggests a solution that may work when you have zeros in some channels... |
even when nblocks =0, and even with #288 solution, i keep getting this error with kilosort 3 |
@gawygawy @shirquinn This is my guess: this error occurs when there are no spikes in a registration block in a batch. This could be because the batch contains a period of time when there are no spikes (e.g. paused streaming with zero padding), or all the electrodes in that block aren't measuring spiking activity (e.g. all channels in that block sitting out of cortex). A fix for the former is to make your batch size bigger, or to remove those batches beforehand (as in #288). |
I also got this kind of error with my data. But setting nblocks =0 cannot solve that. and run |
@celelion , do you just add ops.NT = ops.NT*2 to line 15? can you send me the code to see? |
I get the following error:
It seems like in a random batch, the output variable
st
has the shape4 x N
rather than6 x N
as expected fromspikedetector3PC
. I will have to go through the mex code to understand why there is a shape mismatch. Let me know if you need any more information.The text was updated successfully, but these errors were encountered: