Repository: pytorch
Issue: Build fail on Ubuntu 18.04: caffe2/CMakeFiles/init_test.dir/build.make:106: recipe for target 'bin/init_test' failed
Labels: module: build,triaged

## Build fail on Ubuntu 18.04

Build from source failed.

What am I doing wrong?

## To Reproduce

Steps to reproduce the behavior:

Followed the official guide for [build from source](https://github.com/pytorch/pytorch#from-source) step by step. 

```
...
[ 83%] Building CXX object caffe2/CMakeFiles/common_test.dir/core/common_test.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/init_test.dir/core/init_test.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/event_test.dir/core/event_test.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/net_simple_refcount_test.dir/core/net_simple_refcount_test.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/net_async_tracing_test.dir/core/net_async_tracing_test.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/graph_test.dir/core/graph_test.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/kernel_stackbased_test.dir/__/aten/src/ATen/core/boxing/impl/kernel_stackbased_test.cpp.o
[ 83%] Building CXX object caffe2/CMakeFiles/module_test.dir/core/module_test.cc.o
[ 83%] Linking CXX executable ../bin/init_test
[ 83%] Linking CXX executable ../bin/common_test
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `scopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dcopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dhseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dpotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dswap_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `shseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `daxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `idamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `isamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `srot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `spotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `saxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `drot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sswap_'
collect2: error: ld returned 1 exit status
caffe2/CMakeFiles/init_test.dir/build.make:106: recipe for target 'bin/init_test' failed
make[2]: *** [bin/init_test] Error 1
CMakeFiles/Makefile2:5589: recipe for target 'caffe2/CMakeFiles/init_test.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/init_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `scopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dcopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dhseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dpotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dswap_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `shseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `daxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `idamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `isamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `srot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `spotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `saxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `drot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sswap_'
collect2: error: ld returned 1 exit status
caffe2/CMakeFiles/common_test.dir/build.make:106: recipe for target 'bin/common_test' failed
make[2]: *** [bin/common_test] Error 1
CMakeFiles/Makefile2:5769: recipe for target 'caffe2/CMakeFiles/common_test.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/common_test.dir/all] Error 2
[ 83%] Linking CXX executable ../bin/event_test
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `scopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dcopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dhseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dpotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dswap_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `shseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `daxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `idamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `isamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `srot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `spotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `saxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `drot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sswap_'
collect2: error: ld returned 1 exit status
caffe2/CMakeFiles/event_test.dir/build.make:106: recipe for target 'bin/event_test' failed
make[2]: *** [bin/event_test] Error 1
CMakeFiles/Makefile2:5634: recipe for target 'caffe2/CMakeFiles/event_test.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/event_test.dir/all] Error 2
[ 83%] Linking CXX executable ../bin/net_async_tracing_test
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `scopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dcopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dhseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dpotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dswap_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `shseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `daxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `idamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `isamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `srot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `spotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `saxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `drot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sswap_'
collect2: error: ld returned 1 exit status
caffe2/CMakeFiles/net_async_tracing_test.dir/build.make:106: recipe for target 'bin/net_async_tracing_test' failed
make[2]: *** [bin/net_async_tracing_test] Error 1
CMakeFiles/Makefile2:5454: recipe for target 'caffe2/CMakeFiles/net_async_tracing_test.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/net_async_tracing_test.dir/all] Error 2
[ 83%] Linking CXX executable ../bin/kernel_stackbased_test
[ 83%] Linking CXX executable ../bin/net_simple_refcount_test
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `scopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dcopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dhseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dpotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dswap_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `shseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `daxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `idamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `isamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `srot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `spotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `saxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `drot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sswap_'
collect2: error: ld returned 1 exit status
caffe2/CMakeFiles/kernel_stackbased_test.dir/build.make:106: recipe for target 'bin/kernel_stackbased_test' failed
make[2]: *** [bin/kernel_stackbased_test] Error 1
CMakeFiles/Makefile2:5679: recipe for target 'caffe2/CMakeFiles/kernel_stackbased_test.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/kernel_stackbased_test.dir/all] Error 2
[ 83%] Linking CXX executable ../bin/module_test
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `scopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dcopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dhseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dpotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dswap_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `shseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `daxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `idamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `isamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `srot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `spotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `saxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `drot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sswap_'
collect2: error: ld returned 1 exit status
caffe2/CMakeFiles/net_simple_refcount_test.dir/build.make:106: recipe for target 'bin/net_simple_refcount_test' failed
make[2]: *** [bin/net_simple_refcount_test] Error 1
CMakeFiles/Makefile2:5724: recipe for target 'caffe2/CMakeFiles/net_simple_refcount_test.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/net_simple_refcount_test.dir/all] Error 2
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `scopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dcopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dhseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dpotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dswap_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `shseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `daxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `idamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `isamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `srot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `spotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `saxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `drot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sswap_'
collect2: error: ld returned 1 exit status
caffe2/CMakeFiles/module_test.dir/build.make:106: recipe for target 'bin/module_test' failed
make[2]: *** [bin/module_test] Error 1
CMakeFiles/Makefile2:5499: recipe for target 'caffe2/CMakeFiles/module_test.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/module_test.dir/all] Error 2
[ 83%] Linking CXX executable ../bin/graph_test
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `scopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sger_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sbdsdc_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dcopy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfb_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dladiv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dhseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dpotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dswap_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `shseqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaset_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaswp_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarft_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `daxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgeqrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `idamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slauum_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `isamax_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgebal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `srot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgehd2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed4_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sorgbr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dormqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgemm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamrg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dtrsm_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slacpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsyevd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgetrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamc3_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlaed2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `spotrf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slanst_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strtri_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsterf_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `strmv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `saxpy_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sormlq_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlarfg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sgemv_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dsteqr_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlamch_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `ssytrd_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slapy2_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlartg_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `drot_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slascl_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dgebak_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `dlabad_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `slange_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sscal_'
/home/mick/Downloads/pytorch/build/lib/libtorch_cuda.so: undefined reference to `sswap_'
collect2: error: ld returned 1 exit status
caffe2/CMakeFiles/graph_test.dir/build.make:106: recipe for target 'bin/graph_test' failed
make[2]: *** [bin/graph_test] Error 1
CMakeFiles/Makefile2:5544: recipe for target 'caffe2/CMakeFiles/graph_test.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/graph_test.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
  File "setup.py", line 737, in <module>
    build_deps()
  File "setup.py", line 316, in build_deps
    build_caffe2(version=version,
  File "/home/mick/Downloads/pytorch/tools/build_pytorch_libs.py", line 62, in build_caffe2
    cmake.build(my_env)
  File "/home/mick/Downloads/pytorch/tools/setup_helpers/cmake.py", line 345, in build
    self.run(build_args, my_env)
  File "/home/mick/Downloads/pytorch/tools/setup_helpers/cmake.py", line 141, in run
    check_call(command, cwd=self.build_dir, env=env)
  File "/home/mick/anaconda3/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '8']' returned non-zero exit status 2.
```

## Environment

```
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A

OS: Ubuntu 18.04.5 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.10.2

Python version: 3.8
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: GeForce GTX 670
Nvidia driver version: 440.33.01
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.0.2
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.0.2
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.0.2
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.0.2
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.0.2
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.0.2
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.0.2

Versions of relevant libraries:
[pip3] numpy==1.18.5
[pip3] numpydoc==1.1.0
[conda] blas                      1.0                         mkl  
[conda] magma-cuda102             2.5.2                         1    pytorch
[conda] mkl                       2020.1                      217  
[conda] mkl-service               2.3.0            py38he904b0f_0  
[conda] mkl_fft                   1.1.0            py38h23d657b_0  
[conda] mkl_random                1.1.1            py38h0573a6f_0  
[conda] numpy                     1.18.5           py38ha1c710e_0  
[conda] numpy-base                1.18.5           py38hde5b4d6_0  
[conda] numpydoc                  1.1.0                      py_0
```
 - CUDA Version: 10.2.89-440.33.01_1.0-1_amd64
 - How you installed PyTorch: source
 - Build command you used (if compiling from source): `python setup.py install`
 - This was the first attempt to build pytorch from source on fresh installation of Ubuntu, Conda, CUDA and cuDNN

cc @malfet