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:
@@ -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
|
||||
|
Reference in New Issue
Block a user