OpenMM segfault
Posted: Mon Apr 08, 2013 6:26 am
Good morning,
I am trying to run OpenMM on my CPU with OpenCL (I plan to use it on a CPU cluster). I have an Intel Xeon E5440 @ 2.83GHz, running on a Dell Precision T5400. I downloaded and installed the AMD AMD-APP-SDK version 2.8, and after that OpenMM version 5.0.1, binary distribution. Both installations went through fine.
When running testInstallation.py, this is the output I get:
and then it gives segfault. I also tried to run a few tests from the AMD-APP-SDK, and they went fine.
I then tried to compile and run helloArgon.cpp with gdb, and this is the backtrace:
Considering that the examples from AMD-APP-SDK work, I think there must some clash between OpenMM and AMD-APP-SDK, but I don't know how to fix it, and I know no alternative way to use OpenMM on a CPU (apart from the reference platform).
Kind regards
Silvio a Beccara
FBK Foundation
Trento, Italy
I am trying to run OpenMM on my CPU with OpenCL (I plan to use it on a CPU cluster). I have an Intel Xeon E5440 @ 2.83GHz, running on a Dell Precision T5400. I downloaded and installed the AMD AMD-APP-SDK version 2.8, and after that OpenMM version 5.0.1, binary distribution. Both installations went through fine.
When running testInstallation.py, this is the output I get:
Code: Select all
There are 2 Platforms available:
1 Reference - Successfully computed forces
Setting of real/effective user Id to 0/0 failed
FATAL: Module fglrx not found.
Error! Fail to load fglrx kernel module! Maybe you can switch to root user to load kernel module directly
segmentation fault (core dumped)
I then tried to compile and run helloArgon.cpp with gdb, and this is the backtrace:
Code: Select all
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/XXX/src/OpenMM5.0.1-Linux64/examples/a.out...(no debugging symbols found)...done.
(gdb) r
Starting program: /home/XXX/src/OpenMM5.0.1-Linux64/examples/a.out
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Setting of real/effective user Id to 0/0 failed
FATAL: Module fglrx not found.
Error! Fail to load fglrx kernel module! Maybe you can switch to root user to load kernel module directly
[New Thread 0x7ffff7ff0700 (LWP 27566)]
[New Thread 0x7ffff23f4700 (LWP 27567)]
[New Thread 0x7ffff1be1700 (LWP 27568)]
[New Thread 0x7ffff13ce700 (LWP 27569)]
[New Thread 0x7ffff0bbb700 (LWP 27570)]
[New Thread 0x7fffdbfff700 (LWP 27571)]
[New Thread 0x7fffdb7ec700 (LWP 27572)]
[New Thread 0x7fffdafd9700 (LWP 27573)]
[New Thread 0x7fffda7c6700 (LWP 27574)]
[New Thread 0x7fffd9fb3700 (LWP 27577)]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6e16895 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
(gdb) bt
#0 0x00007ffff6e16895 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#1 0x00007ffff656ff05 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#2 0x00007ffff658db44 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#3 0x00007ffff658eff0 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#4 0x00007ffff659197d in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#5 0x00007ffff6627502 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#6 0x00007ffff66289f5 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#7 0x00007ffff662e38d in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#8 0x00007ffff662f395 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#9 0x00007ffff6e04789 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#10 0x00007ffff6e048c5 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#11 0x00007ffff6e04ac6 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#12 0x00007ffff5fe72c8 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#13 0x00007ffff5fe7519 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#14 0x00007ffff5fec8cf in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#15 0x00007ffff5feeb88 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#16 0x00007ffff5fc2a24 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#17 0x00007ffff59fa540 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#18 0x00007ffff59fafe2 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#19 0x00007ffff59d05f5 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#20 0x00007ffff59e28a0 in ?? () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#21 0x00007ffff59c89d7 in clBuildProgram () from /opt/AMDAPP/lib/x86_64/libamdocl64.so
#22 0x00007ffff3d7328f in OpenMM::OpenCLContext::createProgram(std::string, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&, char const*) () from /usr/local/openmm/lib/plugins/libOpenMMOpenCL.so
#23 0x00007ffff3da3bfd in OpenMM::OpenCLNonbondedUtilities::initialize(OpenMM::System const&) () from /usr/local/openmm/lib/plugins/libOpenMMOpenCL.so
#24 0x00007ffff3d7122d in OpenMM::OpenCLContext::initialize() () from /usr/local/openmm/lib/plugins/libOpenMMOpenCL.so
#25 0x00007ffff3e34120 in OpenMM::OpenCLPlatform::PlatformData::initializeContexts(OpenMM::System const&) ()
from /usr/local/openmm/lib/plugins/libOpenMMOpenCL.so
#26 0x00007ffff3dbae91 in OpenMM::OpenCLIntegrateVerletStepKernel::initialize(OpenMM::System const&, OpenMM::VerletIntegrator const&) ()
from /usr/local/openmm/lib/plugins/libOpenMMOpenCL.so
#27 0x00007ffff53705f5 in OpenMM::VerletIntegrator::initialize(OpenMM::ContextImpl&) () from /usr/local/openmm/lib/libOpenMM.so
#28 0x00007ffff53a1941 in OpenMM::ContextImpl::ContextImpl(OpenMM::Context&, OpenMM::System&, OpenMM::Integrator&, OpenMM::Platform*, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&) () from /usr/local/openmm/lib/libOpenMM.so
#29 0x00007ffff5390a19 in OpenMM::Context::Context(OpenMM::System&, OpenMM::Integrator&) () from /usr/local/openmm/lib/libOpenMM.so
#30 0x000000000040263c in myInitializeOpenMM(int, double, double, double, std::string&) ()
#31 0x0000000000401c93 in main ()
Considering that the examples from AMD-APP-SDK work, I think there must some clash between OpenMM and AMD-APP-SDK, but I don't know how to fix it, and I know no alternative way to use OpenMM on a CPU (apart from the reference platform).
Kind regards
Silvio a Beccara
FBK Foundation
Trento, Italy