last changeWed, 23 Nov 2016 10:36:05 +0000 (23 11:36 +0100)
content tags

- pkg-config (
	(not needed when compiling a release using the included isl)
- gmp (
- libyaml (
	(only needed if you want to compile the pet executable)
- LLVM/clang libraries, 2.9 or higher (
	Unless you have some other reasons for wanting to use the svn version,
	it's best to install the latest release (3.8).
	The svn version occasionally introduces incompatibilities.
	Nevertheless, if you encounter any such incompatibilities, please
	report them so that they can be fixed.
	However, development versions from before the latest release
	are not supported.

	Also, if you are following the instructions on how to build
	from source, make sure you also install LLVM
	(through "make install").  You may want to specify an installation
	directory using the CMAKE_INSTALL_PREFIX cmake option.
	You may also want to set the LLVM_BUILD_LLVM_DYLIB option
	to enable the creation of a single shared library.

	If you configure older versions of LLVM using cmake, you may end up
	with clang libraries that have been compiled with -fno-rtti without
	this option appearing in the output of "llvm-config --cxxflags".
	You may then run into errors about undefined reference to the
	'typeinfo' of some classes.
	You will then have to add this option manually to CXXFLAGS while
	configuring pet.

	If you want to use the ubuntu package libclang-dev, then you need
	version 3.2 (ubuntu raring) or later.
	Older versions of this package did not include the required libraries.


Grab the latest release and extract it or get the source from
the git repository as follows.  This process requires autoconf,
automake and libtool.

	git clone git://
	cd pet


	make check


The main entry point is pet_scop_extract_from_C_source.
This function extracts a scop from the C source file with the given name
and returns it as a pet_scop.  The scop corresponds to the piece
of code delimited by

    #pragma scop


    #pragma endscop

The code in between needs to consist only of expression statements,
if statements and for statements.  All access relations and loop initializations
need to be piecewise quasi-affine.  Conditions are allowed to be non-affine,
in which case a separate statement is constructed to evaluate the condition.

If the autodetect option has been set, pet will try to automatically
detect a scop and no pragmas are required.  On the other hand, pet
will not produce any warnings in this case as any code that does not
satisfy the requirements is considered to lie outside of the scop.

The layout of pet_scop is documented in include/pet.h.

New releases are announced on

If you use pet, you can let me know by stacking on ohloh.

For bug reports, feature requests and questions,

If you use pet for your research, you are invited to cite
the following paper.

    author = {Sven Verdoolaege and Tobias Grosser},
    title = {Polyhedral Extraction Tool},
    booktitle = {Second Int. Workshop on Polyhedral Compilation Techniques
    address = {Paris, France},
    month = jan,
    year = {2012}
2016-11-23 Sven Verdoolaegepet_scop_from_pet_tree: take into account assumptionsmaster
2016-11-15 Sven Verdoolaegescop.c: stmt_extract_context: extract out pet_stmt_assu...
2016-11-15 Sven Verdoolaegeprivately export pet_stmt_is_affine_assume
2016-11-15 Sven Verdoolaegepet_tree_is_affine_assume: return isl_bool
2016-11-07 Sven Verdoolaegepet_check_code: use pet_scop_get_schedule
2016-11-07 Sven VerdoolaegePetScan::scan: detect and report unbalanced pairs of...
2016-11-07 Sven VerdoolaegeScopLoc: keep track of SourceLocations of scop and...
2016-11-07 Sven Verdoolaegetree2scop.c: tree_is_decl: do not treat empty block...
2016-09-04 Sven Verdoolaegem4/ax_detect_clang.m4:fix description of SETLANGDEFAULT...
2016-09-04 Sven Verdoolaegem4/ax_detect_clang.m4: improve detection of 5-argument...
2016-09-04 Sven Verdoolaegeupdate isl for support for recent clangs
2016-06-28 Sven update to CompilerInvocation::setLangDefaults...
2016-06-28 Sven Verdoolaegeupdate isl for support for recent clangs
2016-05-06 Sven Verdoolaegeupdate isl to version 0.17.1
2016-05-03 Sven Verdoolaegepet 0.09pet-0.09
2016-05-03 Sven Verdoolaegeupdate isl to version 0.17
7 months ago pet-0.09 pet 0.09
10 months ago pet-0.08 pet 0.08
17 months ago pet-0.07 pet 0.07
2 years ago pet-0.06 pet 0.06
2 years ago pet-0.05 pet 0.05
3 years ago pet-0.04 pet 0.04
4 years ago pet-0.03 pet 0.03
4 years ago pet-0.02 pet 0.02
4 years ago pet-0.01 pet 0.01
2 weeks ago master