Merge "Correctly pass number of input allocations for BLAS" into nyc-mr1-dev