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

Unkown error running mcxlab in mcx_core.cu #48

Closed
bradday4 opened this issue Oct 1, 2018 · 6 comments
Closed

Unkown error running mcxlab in mcx_core.cu #48

bradday4 opened this issue Oct 1, 2018 · 6 comments

Comments

@bradday4
Copy link

bradday4 commented Oct 1, 2018

MCX studio is running perfect on my machine in the lab with a GeForce GTX 745 Cuda enabled graphics card. However, when I attempt to run any example MATLAB script with MCX I receive the following error message:

MCXLAB ERROR -30 in unit mcx_core.cu:1756: unknown error
Error from thread (0): unknown error
C++ Error: MCXLAB Terminated due to an exception!

I'm using the the 10/01/18 nightly build version of MCX.

Thanks

@fangq
Copy link
Owner

fangq commented Oct 1, 2018

try the below two things:

  1. type gpuinfo=mcxlab('gpuinfo') and see what matlab outputs
  2. modify the demos script, and reduce your phone number by setting cfg.nphoton to a small number, say 1e3, or 1e4 (or insert cfg.nphoton=1e4 before the mcxlab call), and see if you are getting the same error.

it is likely your driver is not set up or you did not apply the registry fix on a windows host.

http://mcx.space/wiki/index.cgi?Doc/FAQ#I_am_getting_a_kernel_launch_timed_out_error_what_is_that

Update: cross-out the above possibility since mcx does work on your card.

@bradday4
Copy link
Author

bradday4 commented Oct 1, 2018

I tried both suggestions,

  1. gpuinfo seems to work fine (see attached output from command).
  2. I modified a demo script with cfg.nphoton=1e4 and received the same error.

I applied the registry fix 'apply_timeout_registry_fix.bat' as administrator and restarted the computer when I initially installed mcx.
gpuinfo.txt

@fangq
Copy link
Owner

fangq commented Oct 3, 2018

Ok, I think this might be due to missing some dlls. Can you Google "dependency walker" and load mcx.mexw64 to see if any dll missing?

@Eidantz
Copy link

Eidantz commented Oct 4, 2018

I have a similar problem:
MCXLAB ERROR -4 in unit mcx_core.cu:1756: unspecified launch failure
Error from thread (0): unspecified launch failure
C++ Error: MCXLAB Terminated due to an exception!
1.gpuinfo seems to work fine
2. I modified a demo script with cfg.nphoton=1e4 and did not receive any error but if I change it back to 1e7 the error appear again and even if I change the cfg.nphoton=1e4 after the error it won't work again.

I am using Nvidia Geforce 930MX I updated my driver with no help.
Any suggestion?

@fangq
Copy link
Owner

fangq commented Oct 4, 2018

You need to apply the registry fix, see the FAQ link in my reply 3 days ago.

@fangq
Copy link
Owner

fangq commented Oct 26, 2018

@bradday4, did not hear from you, if this issue has been fixed with the registry fix, I will close it. please let me know.

@fangq fangq closed this as completed Oct 29, 2018
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