Is this a good moment to mention first-touch and NUMA issues?
Paul

On 5 Apr 2013, at 17:30, Florian Rathgeber wrote:


In pyop2/runtime_base.py:

>      def __init__(self, dataset, dim, data=None, dtype=None, name=None,
>                   soa=None, uid=None):
> +        try:
> +            dim = tuple(dim)
> +        except TypeError:
> +            dim = (dim,)
> +        if data is None:
> +            data = [0.0]*(dataset.total_size*reduce(operator.mul, dim))


Could use data = np.zeros(dataset.total_size*np.prod(dim))

—
Reply to this email directly or view it on GitHub<https://github.com/OP2/PyOP2/pull/162/files#r3675980>.