Skip to content

Arch Linux Question #27

@leezl

Description

@leezl

I have errors when compiling which probably have more to do with Arch then Caffe, but I thought I would ask.

/opt/cuda/bin/nvcc -ccbin=/usr/bin/g++ -Xcompiler -fPIC -DNDEBUG -O2 -I/usr/local/include -I/usr/include/python2.7 -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I./src -I./include -I/opt/cuda/include -I/opt/intel/mkl/include -arch=sm_30 -c src/caffe/layers/lrn_layer.cu -o src/caffe/layers/lrn_layer.cuo
/opt/cuda/bin/nvcc -ccbin=/usr/bin/g++ -Xcompiler -fPIC -DNDEBUG -O2 -I/usr/local/include -I/usr/include/python2.7 -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I./src -I./include -I/opt/cuda/include -I/opt/intel/mkl/include -arch=sm_30 -c src/caffe/layers/padding_layer.cu -o src/caffe/layers/padding_layer.cuo
/opt/cuda/bin/nvcc -ccbin=/usr/bin/g++ -Xcompiler -fPIC -DNDEBUG -O2 -I/usr/local/include -I/usr/include/python2.7 -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I./src -I./include -I/opt/cuda/include -I/opt/intel/mkl/include -arch=sm_30 -c src/caffe/layers/pooling_layer.cu -o src/caffe/layers/pooling_layer.cuo
src/caffe/layers/pooling_layer.cu(163): error: kernel launches from templates are not allowed in system files

src/caffe/layers/pooling_layer.cu(168): error: kernel launches from templates are not allowed in system files

src/caffe/layers/pooling_layer.cu(289): error: kernel launches from templates are not allowed in system files

src/caffe/layers/pooling_layer.cu(295): error: kernel launches from templates are not allowed in system files

src/caffe/layers/pooling_layer.cu(301): error: kernel launches from templates are not allowed in system files

5 errors detected in the compilation of "/tmp/tmpxft_00000bde_00000000-4_pooling_layer.cpp4.ii".
Makefile:130: recipe for target 'src/caffe/layers/pooling_layer.cuo' failed
make: *** [src/caffe/layers/pooling_layer.cuo] Error 2

I've seen a similar problem with thrust, but it happens because thrust code is inside /usr/local/include directories. This should not happen with code in my $HOME directory. I tried following the same steps suggested anyway, and my environment does not have any paths containing $HOME, and so it should not be considered a system file location. I'll see if Arch has anything related to this.

This error also occurs with dropout_layer.cu, and softmax_layer.cu, but not with any of the other cuda files. I've looked at them, but I could not tell what would cause this problem only for them. What do those 3 have in common?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions