Skip to content

Compile fails using g++ 4.8 with "kernel launches from templates are not allowed in system files"  #337

@AndrewLavin

Description

@AndrewLavin

Build fails using g++ 4.8 with error message "kernel launches from templates are not allowed in system files". Using g++ 4.6 instead works.

Here is the compiler error.

/opt/nvidia/cuda/bin/nvcc -ccbin=/usr/bin/g++ -Xcompiler -fPIC -DNDEBUG -O2 -I/usr/include/python2.7 -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I./include -I/opt/nvidia/cuda/include -I/opt/intel/mkl/include -gencode arch=compute_20,code=sm_20 -gencode arch=compute_20,code=sm_21 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -c src/caffe/layers/pooling_layer.cu -o build/src/caffe/layers/pooling_layer.cuo
src/caffe/layers/pooling_layer.cu(164): error: kernel launches from templates are not allowed in system files

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

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

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

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

5 errors detected in the compilation of "/tmp/tmpxft_00006a5e_00000000-10_pooling_layer.cpp4.ii".
make: *** [build/src/caffe/layers/pooling_layer.cuo] Error 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions