-
Notifications
You must be signed in to change notification settings - Fork 189
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
MMM1DGPU: Segmentation fault without correct periodicity #4056
Comments
It's just a missing |
As it turns out, MMM1D on GPU was never tested in CI, because the GPU class is a verbatim copy of the CPU class: they both import the CPU actor. |
offline discussion: the exception mechanism for MMM1D CPU and GPU is quite tangled in the core. Also, it depends on #4020. The test doesn't pass for MMM1D GPU due to large deviations from the analytical solution. We should benchmark MMM1D on GPU to see if it's worth investing more time into fixing it, otherwise we'll remove it in 4.2. |
MMM1D with 1000 particles and 500 time steps: 60s on CPU with 4 cores, 1s on GPU. ScaFaCoS, CPU and GPU implementations agree on forces up to 1e-6. ScaFaCoS and CPU agree on energy up to 1e-6, while GPU energies are way off. |
Fixes #4056 Description of changes: - catch segfaults due to wrong periodicity or cellsystem - fix MMM1D test case (broken since 4.1.0) - fix bug in the MMM1D energy function on GPU (introduced in 4.2-dev)
adding
MMM1DGPU
to the system without providing the correct periodicity results in a segfault.The text was updated successfully, but these errors were encountered: