openworm / OpenWorm

Repository for the main Dockerfile with the OpenWorm software stack and project-wide issues
http://openworm.org
MIT License
2.57k stars 206 forks source link

Sibernetic segfaults under Linux #202

Closed msasinski closed 10 years ago

msasinski commented 10 years ago

Latest sph/master segfaults on Linux. Looks unrelated to previous segfaults.

gdb output.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff1578700 (LWP 20889)]
0x00007ffff034e8bc in __OpenCL_computeInteractionWithMembranes_kernel (position=0x7ffff02bc000, velocity=0x7ffff01a4000, sortedPosition=0x7ffff0230000, particleIndex=0x6a8000, particleIndexBack=0xb3a000, 
    neighborMap=0x7fffe2b85000, particleMembranesList=0x0, membraneData=0x0, PARTICLE_COUNT=17743, numOfElasticP=218, r0=1.66999996) at OCLBZ3Djt.cl:1429
1429                                            if((mdi=particleMembranesList[jd_source_particle*MAX_MEMBRANES_INCLUDING_SAME_PARTICLE+mli])>-1)

''' Configuration we are going to load contains 17743 particles. Now plan to allocate memory for them. CL_PLATFORM_VERSION [0]: OpenCL 1.2 AMD-APP (1214.3) CL_CONTEXT_PLATFORM [0]: CL_DEVICE_NAME [0]: Intel(R) Core(TM) i5 CPU M 450 @ 2.40GHz

CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_WORK_GROUP_SIZE [0]: 1024 CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_COMPUTE_UNITS [0]: 4 CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_SIZE [0]: 0 CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_CACHE_SIZE [0]: 32768 CL_CONTEXT_PLATFORM 0: CL_DEVICE_LOCAL_MEM_SIZE [0]: 32768

[[ Step 0 ]] _runHashParticles: 0.628 ms _runSort: 1.502 ms _runSortPostPass: 0.630 ms _runIndexx: 4.103 ms _runIndexPostPass: 0.206 ms _runFindNeighbors: 11.948 ms _runPCISPH: 15.945 ms 3 iteration(s) Segmentation fault '''

slarson commented 10 years ago

Moved to SPH repo over here: https://github.com/openworm/Smoothed-Particle-Hydrodynamics/issues/32