Kilosort
Kilosort copied to clipboard
Issuse with mexGPUall
I'm trying to install Kilosort but while running the mexGPUall.m file I'm getting an error -
Warning: The selected C++ compiler is not supported for CUDA compilation. Searching for a supported compiler. In mexcuda (line 96) In mexGPUall (line 7) Building with 'NVIDIA CUDA Compiler. Error using mex nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
Error in mexcuda (line 168) [varargout{1:nargout}] = mex(mexArguments{:});
Error in mexGPUall (line 7) mexcuda -largeArrayDims spikedetector3.cu
system specifications:
Visual studio community edition 2017 MATLAB R2021a version CUDA Toolkit 11.4
Any idea on how to resolve this issuse?
Maybe try putting gcc (version <9) on your path?
What was the solution?
Matlab has very specific CUDA version requirements locked to each Matlab release. The following table shows this compatibility:
https://www.mathworks.com/help/parallel-computing/gpu-support-by-release.html
In practice, it may be easier to upgrade matlab than CUDA, though either should work as long as you're using compatible versions.
On Tue, Dec 7, 2021 at 4:55 PM Hannah Payne @.***> wrote:
What was the solution?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MouseLand/Kilosort/issues/436#issuecomment-988289679, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3QOEPJYNYMMTJK6YR6SDUPZ7FRANCNFSM5CNOVTMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
My prior response was not specifically regarding the C compiler, but this is a requirement and you'll need to set up compatible CUDA and MATLAB versions prior to pointing MATLAB to your compiler. In your case, for 2021a, you'd want to install CUDA 11.0, then debug the compiler.
On Tue, Dec 7, 2021 at 5:00 PM Eric M. Trautmann @.***> wrote:
Matlab has very specific CUDA version requirements locked to each Matlab release. The following table shows this compatibility:
https://www.mathworks.com/help/parallel-computing/gpu-support-by-release.html
In practice, it may be easier to upgrade matlab than CUDA, though either should work as long as you're using compatible versions.
On Tue, Dec 7, 2021 at 4:55 PM Hannah Payne @.***> wrote:
What was the solution?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MouseLand/Kilosort/issues/436#issuecomment-988289679, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3QOEPJYNYMMTJK6YR6SDUPZ7FRANCNFSM5CNOVTMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Thanks Eric! I was on Matlab 2020a which should have worked with CUDA toolkit 10.1 Update 2, but it just didn't. Upgraded to Matlab 2021a, Visual studio 2019, and CUDA 11.0 and I'm getting closer (new error which I'll search around for a solution for first)
Hi, have you sorted it out? I am having problems to compile the cuda files. I have an ampere GPU and matlab cannot find the cuDNN. I have tried different combinations of matlab, cuda and visual studio, but no success so far. help is welcome.
The error I am getting with Matlab 2020a, Visual Studio 2019 and cuda 11 + cuDNN 11. Error using mexGPUall LINK : fatal error LNK1181: cannot open input file 'gdi32.lib'
Hello
I'm trying to install and use kilosort 3 on this system Windows 10 x64 GPU NVIDIA quadro P620 Matlab 2019b CUDA 10.1 VisualStudio 2017
From what I understand, I have associated the appropriate versions of each programs (matlab, CUDA and visualstudio). However, running mexGPUall.m results in the following errror message:
Error using mex fatbinary fatal : '41_device.compute_35.cubin' is not in 'keyword=value' format mexMPnu8.obj c_mexapi_version.obj
Error in mexcuda (line 166) [varargout{1:nargout}] = mex(mexArguments{:});
Error in mexGPUall (line 18) mexcuda -largeArrayDims -dynamic -DENABLE_STABLEMODE mexMPnu8.cu
Any ideas where that come from and how I could resolve that issue?
Thanks.
For the record and those who end up with similar issues. It is related to this thread: https://github.com/MouseLand/Kilosort/issues/333
It comes from differences in writting dates and time in Europe vs US. I switched my time zone to US and then it worked perfectly.