Problem with Latte Integrale

Questions and problems about using polymake go here.
wishcow
Posts: 6
Joined: 21 May 2014, 08:59

Problem with Latte Integrale

Postby wishcow » 21 May 2014, 17:19

I am using Polymake 2.13 on Mac OSX 10.9, and I configured Polymake to call Latte Integrale 1.7.1
There appears to be a bug either in Latte or Polymake, since I have a problem with running the following:

$p=new Polytope<Rational>(POINTS=>[[1,0,0],[1,1,0],[1,0,1],[1,1,1]]);
print $p->N_LATTICE_POINTS;

crashes with:

./polymake.start: line 63: 77232 Illegal instruction: 4 $ResourcesDir/polymake/bin/polymake

(Notice that 4 is the correct answer).

However, if I run the following code:

$p=new Polytope<Rational>(POINTS=>[[1,0,0],[1,1,0],[1,0,1],[1,1,1]]);
print $p->N_INTERIOR_LATTICE_POINTS;
print $p->N_LATTICE_POINTS;

Then it runs without problem and returns:
04

User avatar
assarf
Developer
Posts: 74
Joined: 12 Oct 2011, 15:52

Re: Problem with Latte Integrale

Postby assarf » 22 May 2014, 10:28

your example runs fine with my unix machine and latte 1.6

could you try 1.6 to rule out if it is a problem with 1.7?
no signature

paffenholz
Developer
Posts: 211
Joined: 24 Dec 2010, 13:47

Re: Problem with Latte Integrale

Postby paffenholz » 22 May 2014, 22:43

Do you use the precompiled bundle for Mac OS?

Latte 1.7 does work with your example on my Mac using the bundle, so it is probably not a problem in latte. We have several reports about crashes with "Illegal instruction" for Macs, and we suspect that there are sublte incompatibilities between different versions (processors) of Macbooks.

We currently cannot reproduce this problem on a Macbook we can access. Helpful would be information on the Macbook version (something like "Late 2012", this can be found by choosing "About my Mac" in the apple menu in the upper left corner and then choosing "More info...". The relevant information is right below the Title "Macbook Pro". The processor type might also be helpful).

Currently we can only recommend to build polymake from the sources for your computer. There are two options: The standard build as for Linux, or you can build your own bundle. Both options are explained on the Mac installation page.

wishcow
Posts: 6
Joined: 21 May 2014, 08:59

Re: Problem with Latte Integrale

Postby wishcow » 23 May 2014, 10:54

OK, sorry for taking so long to reply, it took me a while to compile Latte 1.6. Latte 1.6 needs gcc 4.2.1 to compile correctly, while Latte 1.7.1 compiles with clang (which is now the default on OSX 10.9). I installed gcc 4.2.1 using homebrew.

Latte 1.6 crashes in the same way.

I am running the polymake bundle for mac.
My macbook is Macbook Pro 5,5 13inch from late 2009.
Processor: 2.53 GHz Core 2 Duo (P8700)
OSX: 10.9.2

Here is some more info on the crash which I think is important:
Running
$p=new Polytope<Rational>(POINTS=>[[1,0,0],[1,1,0],[1,0,1],[1,1,1]]);
print $p->N_LATTICE_POINTS;

produces only:
polymake: used package cddlib
Implementation of the double description method of Motzkin et al.
Copyright by Komei Fukuda.
http://www.ifor.math.ethz.ch/~fukuda/cdd_home/cdd.html

Before crashing, while running:
$p=new Polytope<Rational>(POINTS=>[[1,0,0],[1,1,0],[1,0,1],[1,1,1]]);
print $p->N_INTERIOR_LATTICE_POINTS;
print $p->N_LATTICE_POINTS;

produces:
polymake: used package cddlib
Implementation of the double description method of Motzkin et al.
Copyright by Komei Fukuda.
http://www.ifor.math.ethz.ch/~fukuda/cdd_home/cdd.html

polymake: used package latte
LattE (Lattice point Enumeration) is a computer software dedicated to the
problems of counting lattice points and integration inside convex polytopes.
Copyright by Matthias Koeppe, Jesus A. De Loera and others.
http://www.math.ucdavis.edu/~latte/

which makes more sense, since they should both be using Latte, right?

I will try building polymake, and give you an update.

wishcow
Posts: 6
Joined: 21 May 2014, 08:59

Re: Problem with Latte Integrale

Postby wishcow » 23 May 2014, 13:43

Built polymake 2.13, configured Latte 1.7.1 and everything works correctly.

paffenholz
Developer
Posts: 211
Joined: 24 Dec 2010, 13:47

Re: Problem with Latte Integrale

Postby paffenholz » 23 May 2014, 14:35

Many thanks for trying, and for the information on the processor of your Mac. This hopefully helps to reproduce these illegal instructions on our side and find a way to produce a bundle working on older Macs.

Enjoy polymake!


Return to “Helpdesk”