Tuning: Merged tune branch.

- Much cleaner and more concise source
- Better exceptions handling
- Checks local minima to see if retuning is needed.

Resolved conflicts:
	bench/blas.cpp
	include/isaac/backend/templates/mproduct.h
	include/isaac/driver/buffer.h
	lib/array.cpp
	lib/backend/templates/mproduct.cpp
	lib/driver/buffer.cpp
	python/setup.py
	tune/pysrc/autotune.py
	tune/pysrc/dataset.py
	tune/pysrc/misc_tools.py
This commit is contained in:
Philippe Tillet
2015-06-28 17:53:16 -07:00
parent 48073dc710
commit e7cabf65ac
50 changed files with 832 additions and 3017 deletions

View File

@@ -21,11 +21,16 @@ namespace detail
|| node.op.type_family==OPERATOR_COLUMNS_REDUCTION_TYPE_FAMILY;
}
bool is_assignment(op_element const & op)
{
return op.type== OPERATOR_ASSIGN_TYPE
|| op.type== OPERATOR_INPLACE_ADD_TYPE
|| op.type== OPERATOR_INPLACE_SUB_TYPE;
}
bool is_elementwise_operator(op_element const & op)
{
return op.type== OPERATOR_ASSIGN_TYPE
|| op.type== OPERATOR_INPLACE_ADD_TYPE
|| op.type== OPERATOR_INPLACE_SUB_TYPE
return is_assignment(op)
|| op.type== OPERATOR_ADD_TYPE
|| op.type== OPERATOR_SUB_TYPE
|| op.type== OPERATOR_ELEMENT_PROD_TYPE