selectively use cblas for acceleration