-
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
An unexpected error occured trying to launch a kernel. The CUDA error: invalid argument #161
Comments
That's a generic CUDA error whenever something breaks on the GPU. Can you please post your entire error from the command line (not the GUI error), as well as the details of your data (how long, how many channels). |
Thank you for your reply. Now, my kilosort crashes already on the computing whitening filter step. The error message I get from Matlab: Error in ksGUI/computeWhitening (line 770) Error in ksGUI/updateProbeView (line 1216) Error in ksGUI>@( Error while evaluating UIControl Callback. I use 385 channels, with a config file for Neuropixel 3B1 version. The file is 85GB, but I also tried to use only part of it of 13GB and I get the same error. I also tried to use data of 66.8GB, which were sorted with Kilosort 2 on someone else's computer, where things worked correctly. When I try to use it on my machine, I get the same error as posted above. |
Ok, you need to make sure first that Matlab can see the GPU correctly. Please run "gpuDevice(1)" at the command line and try to get this to complete successfully. You might need to reinstall graphics drivers. |
Hello Marius, indeed Matlab could not see the GPU correctly and I kept getting error running "gpuDevice(1)" in command line. I reinstalled CUDA and graphic drivers and now, the error is gone: ans = CUDADevice with properties:
"
Error in ksGUI/runSaveToPhy (line 828) Error in ksGUI/runAll (line 629) Error in ksGUI>@( Error while evaluating UIControl Callback." |
The GPU memory is probably insufficient for sorting Neuropixels data. I would recommend at least 6GB, for example RTX2060 or GTX1660Ti. |
I had this error on 12-30-2021 with the most recent version of kilosort3 - in extract_spikes.m. This rather kludgy "try/catch" addition to extract_spikes.m seemed to fix the problem for me.
|
Hello,
I am trying to set up kilosort 2, but I am keep running into the same problem. Kilosort gives me an error: "Error running kilosort! An unexpected error occurred trying to launch a kernel. The CUDA error was: invalid argument.
Saving data to .../filename... Error saving data for phy! Reference to non-existend field "Wphy""
I use Matlab 2019b and CUDA 10.1. I am working with Ubuntu. I tried first to compile the file mexGPUall file and I got response that MEX completed successfully.
The CUDA error appears later in pre-processing process, after the main optimization.
I tried to change CUDA version and update my NVIDIA drivers, but so far that didn't help. Also, I am using NVIDA GPX960 and 32GB memory.
Could you please help me with this issue?
The text was updated successfully, but these errors were encountered: