Opened 8 years ago
Last modified 3 years ago
#12666 closed enhancement
Optional CLooGPPL spkg — at Version 12
Reported by:  SimonKing  Owned by:  tbd 

Priority:  major  Milestone:  sageduplicate/invalid/wontfix 
Component:  packages: optional  Keywords:  CLooG PPL ISL GCC LTO 
Cc:  leif  Merged in:  
Authors:  Simon King  Reviewers:  
Report Upstream:  N/A  Work issues:  
Branch:  Commit:  
Dependencies:  #12672  Stopgaps: 
Description (last modified by )
As much as I understand, for building GCC with "graphite" one needs CLooGPPL
(the Chunky Loop Generator) being installed. Note that CLooG
plus PPL seems not to be enough
Hence, I suggest to have an optional spkg. At least on openSuse, the straight forward way to make an spkg (no patches, and an spkginstall and spkgcheck that just to ./configure prefix...
, make
, make install
and make check
) seems to work.
This is related with #12369, and depends on #12672.
spkg: http://boxen.math.washington.edu/home/SimonKing/SAGE/spkgs/cloog_ppl0.15.11.spkg
Change History (12)
comment:1 Changed 8 years ago by
 Status changed from new to needs_review
comment:2 Changed 8 years ago by
comment:3 Changed 8 years ago by
It turns out that the gcc package from #12369 can not use this cloog package.
I am not sure whether this is because of wrong sources (there seems to be a difference between cloog and cloogppl) or a missing configuration option.
Anyway. With a cloogppl package using the options withgmp withppl
, the gcc package seems to pick up CLooG PPL
. I'm afraid I can not post the updated packages, as sage.math seems to be down.
comment:4 Changed 8 years ago by
 Description modified (diff)
comment:5 Changed 8 years ago by
 Status changed from needs_review to needs_work
I think you are missing the configure option
withgmpprefix="$SAGE_LOCAL"
comment:6 followup: ↓ 7 Changed 8 years ago by
(even though CLooG seems to build without that option, which I cannot really explain...)
comment:7 in reply to: ↑ 6 Changed 8 years ago by
Replying to jdemeyer:
(even though CLooG seems to build without that option, which I cannot really explain...)
I guess it is since CLooG
looks for GMP in the standard location, "standard" being determined by the prefix="$SAGE_LOCAL"
option that I do provide.
Anyway. What is really missing is at least the option withppl
, or even a cloogppl package with that option.
Since sage.math seems to be down, I can't post either of the two spkgs...
comment:8 Changed 8 years ago by
 Cc leif added
 Dependencies set to #12672 #12661
 Description modified (diff)
 Keywords PPL added
 Status changed from needs_work to needs_review
 Summary changed from Optional CLooG spkg to Optional CLooGPPL spkg
Leif cited from the GCC prerequisites page:
CLooGPPL version( 0.15 or CLooG 0.16 Necessary to build GCC with the Graphite loop optimizations. There are two versions available. CLooGPPL 0.15 as well as CLooG 0.16. The former is the default right now. It can be downloaded from ftp://gcc.gnu.org/pub/gcc/infrastructure/ as cloogppl0.15.tar.gz. CLooG 0.16 support is still in testing stage, but will be the default in future GCC releases. It is also available at ftp://gcc.gnu.org/pub/gcc/infrastructure/ as cloog0.16.1.tar.gz. To use it add the additional configure option enablecloogbackend=isl. Even if CLooG 0.16 does not use PPL, PPL is still required for Graphite.
Actually, I found that cloog0.16.1
does not work, i.e., gcc does not build. Hence, I made a cloog_ppl0.15.11 spkg, that I suggest to make an optional spkg.
comment:9 followup: ↓ 10 Changed 8 years ago by
 Dependencies changed from #12672 #12661 to #12672
 Status changed from needs_review to needs_work
You are missing the configure options
withgmp="$SAGE_LOCAL" withppl="$SAGE_LOCAL"
If I apply the following patch, CLooGPPL builds fine (even without the GMP spkg):

spkginstall
diff r 93c792cfd365 spkginstall
a b 10 10 SAGE_CONF_OPTS="enableshared disablestatic" 11 11 12 12 cd src 13 ./configure libdir="$SAGE_LOCAL/lib" prefix="$SAGE_LOCAL" withgmp withppl$SAGE_CONF_OPTS13 ./configure libdir="$SAGE_LOCAL/lib" prefix="$SAGE_LOCAL" withgmp="$SAGE_LOCAL" withppl="$SAGE_LOCAL" $SAGE_CONF_OPTS 14 14 $MAKE 15 15 if [ $? ne 0 ]; then 16 16 echo "Error building CLooG PPL."
comment:10 in reply to: ↑ 9 Changed 8 years ago by
 Status changed from needs_work to needs_review
Replying to jdemeyer:
You are missing the configure options
withgmp="$SAGE_LOCAL" withppl="$SAGE_LOCAL"If I apply the following patch, CLooGPPL builds fine (even without the GMP spkg):
Cool! I just updated my spkg on boxen.math
comment:11 Changed 8 years ago by
Thanks, that seems to work.
Unfortunately, I'm afraid your earlier performance tests with GCC are now invalidated and should be done again with this spkg and without GMP.
comment:12 Changed 8 years ago by
 Description modified (diff)
I forgot to mention that
CLooG
needsGMP
. Therefore it might be needed to install the spkg from #12661 as well.