Skip to content

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

Closed
@fangq

Description

@fangq

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions