Fix caffe2 build with BLAS=OpenBLAS (#18422)
authornihui <shuizhuyuanluo@126.com>
Mon, 25 Mar 2019 18:55:52 +0000 (11:55 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 25 Mar 2019 18:59:10 +0000 (11:59 -0700)
commited8c462dc79461c434cdd69f378743d1258c624b
tree7c210bbe07c6edbc4f95fe6640948e4c82d7f09a
parent6c9b312fd48c5a3e00719be881aa067b436d05e5
Fix caffe2 build with BLAS=OpenBLAS (#18422)

Summary:
g++ complains about failing to find the declaration of cblas_sscal and cblas_dscal BLAS function
let's fix it  :)

fedora 29, gcc 8.3.1, openblas 0.3.5
build with cmake -DBLAS=OpenBLAS ..
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18422

Differential Revision: D14598977

Pulled By: soumith

fbshipit-source-id: bde77bfb359d2ff38226401caeed78c114ef7468
caffe2/utils/math/elementwise.cc
caffe2/utils/math/reduce.cc