Skip to content
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

kilosort3 errors - CUDA "illegal memory access encountered" / "maximum variable size allowed on the device is exceeded" #244

Open
GuthrieDyce opened this issue Aug 31, 2021 · 4 comments

Comments

@GuthrieDyce
Copy link

Hello world,

Summary:
I have been trying to sort a recording using kilosort 3 and I keep running into two errors in particular:
One of the errors I have been having returns the message "maximum variable size allowed on the device is exceeded".
If I close everything that is open on the computer except for the instance of matlab running kilosort then I get a different error during CUDA execution: "an illegal memory access was encountered".

Specifications/Notes:
I am using a Neuropixel 1 probe phase3b1 with staggered recording sites.
The working directory and output directories are the same (the input file is within this directory).
I am using the default specifications for this version of kilosort.
I am also using MATLAB 2019a.
The input file is 5.8 GB in size.
The hard drive used for the input, working and output folders has 3.22 TB of free space on it.
I am using Windows 10, 64 bit, 3.7 GHz, with 64 GB of RAM.
I am using an NVIDIA GeForce RTX 2060 graphics card.
It is also worth noting that I have used this computer to run kilosort on other recordings without this problem.

Attachments:
I have attached screenshots of the GUI, preferences, drift map, estimated drift traces, the kilosort folder (showing, as I understand it that I am in fact using kilosort 3), and the command line associated with the errors.

Questions:
Is the size of the input file too large?
Are the kilosort specifications wrong?
Is using the same directory for the input file as the working and output directory causing this issue?
Is there too much jitter in the recording resulting in duplication of units? Is this overwhelming the graphics card?
Can someone help me identify (& perhaps even fix) the problem?

Thanks so much!

Guthrie

illegalMemoryAccess

commandLine2

commandLine1

kilosortFolder
kilosortGUI

estimatedDriftTraces

driftMap
commandLine3

@GuthrieDyce
Copy link
Author

Additional notes
Both of the errors mentioned occur during the "template matching on binary file" stage.
The original drift map and estimated drift traces are associated with the first error ("maximum variable size...")
The drift map and estimated drift traces attached to this comment are associated with the second error ("illegal memory access...")
I hope this helps someone help me.

driftMap2
estimateDriftTraces2

@GuthrieDyce GuthrieDyce changed the title kilosort3 - maximum variable size allowed on the device is exceeded kilosort3 errors - CUDA "illegal memory access encountered" / "maximum variable size allowed on the device is exceeded" Sep 14, 2021
@achristensen56
Copy link

I also have the illegal memory access encountered issue. I was wondering if it had something to do with cuda versions and incompatibility with old kilosort, but I have the same issue on a fresh install and successful compile on a new computer! Curious if you've found the issue.

@hannahay
Copy link

Hi,
I also have the same issue with illegal memory access. I am using kilosort 2.5. Did you solve the issue?

@GuthrieDyce
Copy link
Author

GuthrieDyce commented Nov 22, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants