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

errors when running eMouse_Shift #149

Closed
cchen3 opened this issue Dec 2, 2019 · 22 comments · Fixed by #595
Closed

errors when running eMouse_Shift #149

cchen3 opened this issue Dec 2, 2019 · 22 comments · Fixed by #595

Comments

@cchen3
Copy link

cchen3 commented Dec 2, 2019

Hi,

My computer hardware systems are: Windows 10-64bit, with MATLAB 2018a, Cuda_9.0.176, Visual Studio Community 2013 with update 5 installed; the GPU is GeForce RTX 2080.

During KS2 installation, I have run and complete successfully mexGPUall.m in the CUDA folder. However, when I test the eMouse_Shift simulation, I got errors when running gpuDevice(1) and rez = preprocessDataSub(ops):

KiloSort2_eMouse Error

Anyone have some idea on what went wrong and how to fix it please?

Many thanks!

@marius10p
Copy link
Contributor

You need to get the first command "gpuDevice(1)" to work in Matlab before Kilosort2 can work at all. It is possible your GPU drivers are outdated, can you please try updating those?

@cchen3
Copy link
Author

cchen3 commented Dec 3, 2019

Thanks, Marius! I tried update the driver of GPU(GeForce RTX 2080) to the lastest (GeForce Game Ready Drive Version 441.41, Release date: 11/16/2019). But when running gpuDevice(1);, it got my MATLAB crash...
MatlabCrash_20191203

Any idea to go from here? Thanks!

@cchen3
Copy link
Author

cchen3 commented Dec 3, 2019

Not sure if the crash report from MATLAB helps...

Matlab Crash Report.pdf

@marius10p
Copy link
Contributor

I don't know, this is a matlab problem, please take it up with them. You could try to reinstall Matlab. If that doesn't help, I don't know what the incompatibility is.

@dimokaramanlis
Copy link
Contributor

dimokaramanlis commented Dec 3, 2019

I had this problem recently, after installing a new update for MATLAB 2019a (update 6). After updating the graphics card drivers AND installing MATLAB 2019b, the problem went away...

@cchen3
Copy link
Author

cchen3 commented Dec 3, 2019 via email

@cchen3
Copy link
Author

cchen3 commented Dec 3, 2019 via email

@marius10p
Copy link
Contributor

marius10p commented Dec 3, 2019 via email

@cchen3
Copy link
Author

cchen3 commented Dec 3, 2019 via email

@cchen3
Copy link
Author

cchen3 commented Dec 3, 2019 via email

@dimokaramanlis
Copy link
Contributor

dimokaramanlis commented Dec 3, 2019

I was using 2019a. I noticed that the issue appeared after I installed MATLAB's update 6 for that version... Graphics card is RTX 2080 Ti

@cchen3
Copy link
Author

cchen3 commented Dec 4, 2019 via email

@cchen3
Copy link
Author

cchen3 commented Dec 4, 2019 via email

@dimokaramanlis
Copy link
Contributor

CUDA toolkit 10.1 and Visual Studio 2017

@cchen3
Copy link
Author

cchen3 commented Dec 4, 2019 via email

@cchen3
Copy link
Author

cchen3 commented Dec 5, 2019 via email

@cchen3
Copy link
Author

cchen3 commented Dec 5, 2019

cuda 10 1_Verification Error

@marius10p
Copy link
Contributor

I would remove all Nvidia software from the computer, and re-install the latest drivers and a version of CUDA. The next step after that would be to reinstall Windows.

@cchen3
Copy link
Author

cchen3 commented Dec 16, 2019

Thanks, Marius, for these suggestions! I actually have been playing with un-installation & re-installation of driver & Cuda & Visual Studio in the last couple of days, but still did not solve the problem. I am thinking about reshape my OS to Linux. Does Kilosort2 run faster on Linux than on Windows?

@marius10p
Copy link
Contributor

marius10p commented Dec 16, 2019 via email

@cchen3
Copy link
Author

cchen3 commented Dec 17, 2019

Hi @dimokaramanlis, did you install the professional or community version of VS 2017? Thanks!

@cchen3
Copy link
Author

cchen3 commented Jan 6, 2020

Hi all, the problem is solved on the re-installed Win 10. Thanks very much for your help and suggestions!

For reference and record if could be of any use to anyone in a similar situation:

  1. GPU: Gefore RTX 2080. Install GeforeExperience and update the driver to latest Studio Driver 441.66.

  2. Install the Visual Studio Community 2015. Rather than the express install as I did last time, I use customized install, to make sure all components are installed.

  3. Install Cuda 10.1 with update 2. Uncheck the driver which had already been installed.

  4. Build deviceQuery.exe use deviceQuery_vs2015.sln. And I then verified that CUDA could detect the GPU when ran the deviceQuery.exe, and MATLAB 2019b could detect CUDA and use VS Community 2015 complier.

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

Successfully merging a pull request may close this issue.

3 participants