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

"misaligned address" error when using cfg.invcdf and cfg.angleinvcdf #193

Closed
fangq opened this issue Oct 10, 2023 · 0 comments
Closed

"misaligned address" error when using cfg.invcdf and cfg.angleinvcdf #193

fangq opened this issue Oct 10, 2023 · 0 comments

Comments

@fangq
Copy link
Owner

fangq commented Oct 10, 2023

Xavier Attendu reported the following error

MCXLAB ERROR -74 in unit mcx_core.cu:3332: misaligned address
Error from thread (0): misaligned address
C++ Error: MCXLAB Terminated due to an exception!

when running the demo_mcxlab_launchangle.m with increasing number of outputs

[flux] = mcxlab(cfg); PASS
[flux,det] = mcxlab(cfg); PASS
[flux,det,vol] = mcxlab(cfg); PASS
[flux,det,vol,seed] = mcxlab(cfg); FAIL 
[flux,det,vol,seed,traj] = mcxlab(cfg); FAIL

this is a regression that was previously fixed by 53d7ac0, but was not implemented by the latest update. This can be fixed by forcing the buffer length to even number

@fangq fangq changed the title "misaligned address" error when using cfg.invcdf and cfg.angleinvcdf input "misaligned address" error when using cfg.invcdf and cfg.angleinvcdf Oct 10, 2023
@fangq fangq closed this as completed in c5496ac Oct 10, 2023
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

1 participant