1. Downloaded latest version of Pelegant, v23.1.2.
2. Compiled MPICH2 v1.3.1. Configure options CFLAGS=-m32 -O2 LDFLAGS=-L/usr/X11R6/lib
Is this the version of MPICH2 that Pelegant was compiled for? This was working, but now I'm having strange errors (which are not reproducible in not-parallel elegant):
Code: Select all
Pelegant(59880) malloc: *** mmap(size=2877292544) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
error: memory allocation failure--2877292544 bytes requested.
tmalloc() has allocated 235765591 bytes previously
Terminated by SIGABRT
Program trace-back:
APPLICATION TERMINATED WITH THE EXIT STRING: Hangup (signal 1)
1. Using a new lattice file (test.lte) that only has relevant elements.
2. Changing the value for final in the second vary_element from 1e-01 to 1.000000000000000e-01.
3. Deleting the matrix_output section.
4. Deleting any one of the run_setup entries output, centroid, sigma, final, and losses.
5. At one point (not reproducible at the moment), just changing the file names of the lattice and ele file fixed things.
At one point, while trying to see if there was a specific line in the lattice file that was causing problems, I discovered that removing lots of extraneous elements seemed to fix things. Shouldn't that not matter, if they're not in my beamline? I have no idea what's going on.
I tried to build Pelegant and ran into many problems. A few:
1. Making things seems to be dependent on absolute paths and versions used. At one point it wants the EPICS base v. R3.14.9.
2. It seems to use built-in compilers provided by Apple, for instance /usr/bin/cc, instead of gcc installed by fink or macports?
3. It seems to compile some things in 32-bit, some in 64-bit, and then has trouble when trying to link (of course).
It would be great to get this working. When it works, it is quite a bit faster than elegant. I'm specifically trying to make sure we are using enough bins and particles for the CSR simulation to be valid, at the moment. A postdoc is trying to get some lattice optimizations going and this would be helpful there too.
Any ideas? I'd love to get to the point of building Pelegant on OSX, I'm guessing that's the weak point in our solution right now.
Files: http://dl.dropbox.com/u/693663/Archive.zip