openworm / sibernetic

This is a C++/OpenCL implementation of the PCISPH algorithm supplemented with a set of biomechanics related features applied to C. elegans locomotion
Other
361 stars 105 forks source link

Segfault in program.build() #57

Closed albi3ro closed 9 years ago

albi3ro commented 10 years ago

So I am trying to run the program for the first time, and am running into a segfault at owOpenCLSolver.cpp line 309

err = program.build( devices, "");

I'm running Ubuntu 14.04 with a Intel i5 processor. I replicated the error on another computer, also lenovo with a different linux distribution.

The backtrace on gdb:

0 0x00007ffff2a91810 in ?? () from /opt/intel/intel-opencl-1.2-4.6.0.92/opencl-1.2-4.6.0.92/lib64/libOclCpuBackEnd.so

... almost the same thing ...

25 0x00007ffff377420d in ?? () from /opt/intel/intel-opencl-1.2-4.6.0.92/opencl-1.2-4.6.0.92/lib64/libtask_executor.so

26 0x00007ffff3624fea in tbb::internal::custom_schedulertbb::internal::IntelSchedulerTraits::local_wait_for_all (this=0x7ffff3207e80, parent=...,

child=0x7fffe46d2490) at ../../src/tbb/custom_scheduler.h:474

27 0x00007ffff3620f39 in tbb::internal::arena::process (this=0x0, s=...) at ../../src/tbb/arena.cpp:94

28 0x00007ffff361f416 in tbb::internal::market::process (this=0x0, j=...) at ../../src/tbb/market.cpp:473

29 0x00007ffff361b410 in tbb::internal::rml::private_worker::run (this=0x0) at ../../src/tbb/private_server.cpp:273

30 0x00007ffff361b3b6 in tbb::internal::rml::private_worker::thread_routine (arg=0x0) at ../../src/tbb/private_server.cpp:226

31 0x00007ffff474b182 in start_thread (arg=0x7ffff075d700) at pthread_create.c:312

32 0x00007ffff6a2ffbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

skhayrulin commented 10 years ago

Hi @albi3ro! Have you tried run any other OpenCL application on that machine? If no you can try this for example. I'm asking because it seems that problem in OpenCL drivers.

albi3ro commented 10 years ago

I had ran fixstars's tutorial program before. I have now run your example as well, resulting in 'GOOD'.

Is there something additional to install for the C++ functionality of OpenCL? I'm using the Intel drivers, but I believe the other computer might have been using AMD.

albi3ro commented 10 years ago

It was the intel drivers.

skhayrulin commented 10 years ago

I've just wrote answer for you:). So am I right that you reinstall intel drivers or install other and Sibrnetic works for now?

albi3ro commented 10 years ago

Yep. AMD works. Intel worked on the other test programs, but just not on Sibernetic.