Skip to content

../libATen.so.1: undefined reference to `cublasGemmStridedBatchedEx' #5631

@ashishlal

Description

@ashishlal

Ubuntu 16.04
Intel Python 3.6.3
cuda 9.1
cudnn 7.0.5
pytorch downloaded today

commit c2721ab
Author: theweiho theweiho@users.noreply.github.com
Date: Wed Mar 7 15:16:51 2018 -0800
Add per-element unique op for CPU (#5503)

Questions/possible future works:
......
......

Also tried with git checkout 4afd62d but same result
git log shows
commit 4afd62d
Author: Adam Paszke adam.paszke@gmail.com
Date: Thu Mar 1 07:50:50 2018 +0100

Add TracedModule to the JIT (#5409)

instructions given below -

Instructions -
On Linux

export CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" # [anaconda root directory]

# Install basic dependencies
conda install numpy pyyaml mkl setuptools cmake cffi typing

# Add LAPACK support for the GPU
conda install -c pytorch magma-cuda91 

Get the PyTorch source
git clone --recursive https://github.com/pytorch/pytorch
cd pytorch
Install PyTorch
python setup.py install

I see the following errors when I build pytorch

Errors given below -

../libATen.so.1: undefined reference to `cublasGemmStridedBatchedEx'
../libATen.so.1: undefined reference to `cublasSetMathMode'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/wrapdim_test.dir/build.make:117: recipe for target 'src/ATen/test/wrapdim_test' failed
make[2]: *** [src/ATen/test/wrapdim_test] Error 1
CMakeFiles/Makefile2:338: recipe for target 'src/ATen/test/CMakeFiles/wrapdim_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/wrapdim_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
../libATen.so.1: undefined reference to `cublasGemmStridedBatchedEx'
../libATen.so.1: undefined reference to `cublasSetMathMode'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/undefined_tensor_test.dir/build.make:117: recipe for target 'src/ATen/test/undefined_tensor_test' failed
make[2]: *** [src/ATen/test/undefined_tensor_test] Error 1
CMakeFiles/Makefile2:560: recipe for target 'src/ATen/test/CMakeFiles/undefined_tensor_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/undefined_tensor_test.dir/all] Error 2
[ 99%] Linking CXX executable basic
../libATen.so.1: undefined reference to `cublasGemmStridedBatchedEx'
../libATen.so.1: undefined reference to `cublasSetMathMode'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/atest.dir/build.make:117: recipe for target 'src/ATen/test/atest' failed
make[2]: *** [src/ATen/test/atest] Error 1
CMakeFiles/Makefile2:412: recipe for target 'src/ATen/test/CMakeFiles/atest.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/atest.dir/all] Error 2
../libATen.so.1: undefined reference to `cublasGemmStridedBatchedEx'
../libATen.so.1: undefined reference to `cublasSetMathMode'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/dlconvertor_test.dir/build.make:117: recipe for target 'src/ATen/test/dlconvertor_test' failed
make[2]: *** [src/ATen/test/dlconvertor_test] Error 1
CMakeFiles/Makefile2:301: recipe for target 'src/ATen/test/CMakeFiles/dlconvertor_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/dlconvertor_test.dir/all] Error 2
[100%] Linking CXX executable native_test
../libATen.so.1: undefined reference to `cublasGemmStridedBatchedEx'
../libATen.so.1: undefined reference to `cublasSetMathMode'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/broadcast_test.dir/build.make:117: recipe for target 'src/ATen/test/broadcast_test' failed
make[2]: *** [src/ATen/test/broadcast_test] Error 1
CMakeFiles/Makefile2:449: recipe for target 'src/ATen/test/CMakeFiles/broadcast_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/broadcast_test.dir/all] Error 2
../libATen.so.1: undefined reference to `cublasGemmStridedBatchedEx'
../libATen.so.1: undefined reference to `cublasSetMathMode'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/scalar_test.dir/build.make:117: recipe for target 'src/ATen/test/scalar_test' failed
make[2]: *** [src/ATen/test/scalar_test] Error 1
CMakeFiles/Makefile2:486: recipe for target 'src/ATen/test/CMakeFiles/scalar_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/scalar_test.dir/all] Error 2
../libATen.so.1: undefined reference to `cublasGemmStridedBatchedEx'
../libATen.so.1: undefined reference to `cublasSetMathMode'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/scalar_tensor_test.dir/build.make:117: recipe for target 'src/ATen/test/scalar_tensor_test' failed
make[2]: *** [src/ATen/test/scalar_tensor_test] Error 1
CMakeFiles/Makefile2:523: recipe for target 'src/ATen/test/CMakeFiles/scalar_tensor_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/scalar_tensor_test.dir/all] Error 2
../libATen.so.1: undefined reference to `cublasGemmStridedBatchedEx'
../libATen.so.1: undefined reference to `cublasSetMathMode'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/basic.dir/build.make:117: recipe for target 'src/ATen/test/basic' failed
make[2]: *** [src/ATen/test/basic] Error 1
CMakeFiles/Makefile2:671: recipe for target 'src/ATen/test/CMakeFiles/basic.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/basic.dir/all] Error 2
../libATen.so.1: undefined reference to `cublasGemmStridedBatchedEx'
../libATen.so.1: undefined reference to `cublasSetMathMode'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/native_test.dir/build.make:117: recipe for target 'src/ATen/test/native_test' failed
make[2]: *** [src/ATen/test/native_test] Error 1
CMakeFiles/Makefile2:375: recipe for target 'src/ATen/test/CMakeFiles/native_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/native_test.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting response (this tag is deprecated)This tag is deprecated while we figure out what to do with itmodule: buildBuild system issuesneeds reproductionEnsure you have actionable steps to reproduce the issue. Someone else needs to confirm the repro.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions