Memory error at startup of the simulation

84 views
Skip to first unread message

Emanuele Locatelli

unread,
Aug 3, 2021, 4:47:02 AM8/3/21
to hoomd-users
Dear hoomd developers

I have been trying to run simulations of a pretty large macromolecule using Hoomd. I am using a standard model (FENE+LJ+some bending potential). I have managed to install Hoomd version 2.9.6 (the reason being I was given a script and I did not want to update it to the 3.0.0 version) with CUDA 11.4 on a system with a Tesla T4
Everything goes well with the installation but, once I ran my script (that I tested elsewhere), I get the following error

** starting run **
**ERROR**: __global__ function call is not configured before /hoomd/Autotuner.cc:129
Traceback (most recent call last):
  File "denpol_test.py", line 236, in <module>
    hoomd.run (to_run)
  File "/home/ubuntu/myvenv/lib/python3.6/site-packages/hoomd/__init__.py", line 201, in run
    context.current.system.run(int(tsteps), callback_period, callback, limit_hours, int(limit_multiple));
RuntimeError: CUDA Error
**ERROR**: invalid resource handle before /hoomd/GPUArray.h:160
terminate called after throwing an instance of 'std::runtime_error'
  what():  CUDA Error
[hoomdblue:04479] *** Process received signal ***
[hoomdblue:04479] Signal: Aborted (6)
[hoomdblue:04479] Signal code:  (-6)

(and afterwards a bunch of memory errors). I have tried to look for the errors, without much success. It looks like it is indeed a memory error, but I do not understand how can it be. It's strange also because the same happens even if I choose --mode=cpu.

Can you help me?
Thank you in advance

Emanuele Locatelli

Joshua Anderson

unread,
Aug 3, 2021, 7:57:44 AM8/3/21
to hoomd...@googlegroups.com
Emanuele,

There is a bug in CUDA 11.4 that causes this error. NVIDIA has provided a patch that works around the bug, but it requires CUDA 11.5: https://github.com/glotzerlab/hoomd-blue/pull/1089.

For now, you will need to build HOOMD with any supported version of CUDA that is not 11.4.

I do not know if this issue is also present in the 3.0 beta release.
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan
> --
> You received this message because you are subscribed to the Google Groups "hoomd-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to hoomd-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/0f477bd5-a0dd-4f41-bed1-07dfb0fc5ac8n%40googlegroups.com.

Emanuele Locatelli

unread,
Aug 3, 2021, 9:25:17 AM8/3/21
to hoomd-users
Thank you so much! I will try again then :)

All best
Reply all
Reply to author
Forward
0 new messages