You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 3, 2024. It is now read-only.
Please use the caffe-users list for usage, installation, or modeling questions, or other requests for help. Do not post such requests to Issues. Doing so interferes with the development of Caffe.
Compilation error with latest and greatest checkout
Steps to reproduce
Usual process of CMake followed by make
If you are having difficulty building Caffe or training a model, please ask the caffe-users mailing list. If you are reporting a build error that seems to be due to a bug in Caffe, please attach your build configuration (either Makefile.config or CMakeCache.txt) and the output of the make (or cmake) command.
Your system configuration
Operating system: ubuntu 18.04
Compiler: hcc (latest version - CLang 8.0)
CUDA version (if applicable):
CUDNN version (if applicable):
BLAS:
Python or MATLAB version (for pycaffe and matcaffe respectively):
[ 2%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/absval_layer_hip.cpp.o
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:13:3: error:
use of undeclared identifier 'caffe_gpu_abs'
caffe_gpu_abs(count, bottom[0]->gpu_data(), top_data);
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:29:1: note:
in instantiation of member function
'caffe::AbsValLayer::Forward_gpu' requested here
INSTANTIATE_LAYER_GPU_FUNCS(AbsValLayer);
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:85:3: note: expanded from
macro 'INSTANTIATE_LAYER_GPU_FUNCS'
INSTANTIATE_LAYER_GPU_FORWARD(classname);
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:67:35: note: expanded
from macro 'INSTANTIATE_LAYER_GPU_FORWARD'
template void classname::Forward_gpu(
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:13:3: error:
use of undeclared identifier 'caffe_gpu_abs'
caffe_gpu_abs(count, bottom[0]->gpu_data(), top_data);
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:29:1: note:
in instantiation of member function
'caffe::AbsValLayer::Forward_gpu' requested here
INSTANTIATE_LAYER_GPU_FUNCS(AbsValLayer);
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:85:3: note: expanded from
macro 'INSTANTIATE_LAYER_GPU_FUNCS'
INSTANTIATE_LAYER_GPU_FORWARD(classname);
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:70:36: note: expanded
from macro 'INSTANTIATE_LAYER_GPU_FORWARD'
template void classname::Forward_gpu(
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:24:5: error:
use of undeclared identifier 'caffe_gpu_sign'
caffe_gpu_sign(count, bottom_data, bottom_diff);
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:29:1: note:
in instantiation of member function
'caffe::AbsValLayer::Backward_gpu' requested here
INSTANTIATE_LAYER_GPU_FUNCS(AbsValLayer);
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:86:3: note: expanded from
macro 'INSTANTIATE_LAYER_GPU_FUNCS'
INSTANTIATE_LAYER_GPU_BACKWARD(classname)
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:75:35: note: expanded
from macro 'INSTANTIATE_LAYER_GPU_BACKWARD'
template void classname::Backward_gpu(
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:25:5: error:
use of undeclared identifier 'caffe_gpu_mul'
caffe_gpu_mul(count, bottom_diff, top_diff, bottom_diff);
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:24:5: error:
use of undeclared identifier 'caffe_gpu_sign'
caffe_gpu_sign(count, bottom_data, bottom_diff);
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:29:1: note:
in instantiation of member function
'caffe::AbsValLayer::Backward_gpu' requested here
INSTANTIATE_LAYER_GPU_FUNCS(AbsValLayer);
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:86:3: note: expanded from
macro 'INSTANTIATE_LAYER_GPU_FUNCS'
INSTANTIATE_LAYER_GPU_BACKWARD(classname)
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:79:36: note: expanded
from macro 'INSTANTIATE_LAYER_GPU_BACKWARD'
template void classname::Backward_gpu(
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:25:5: error:
use of undeclared identifier 'caffe_gpu_mul'
caffe_gpu_mul(count, bottom_diff, top_diff, bottom_diff);
^
6 errors generated.
src/caffe/CMakeFiles/caffe.dir/build.make:254: recipe for target 'src/caffe/CMakeFiles/caffe.dir/layers/absval_layer_hip.cpp.o' failed
make[2]: *** [src/caffe/CMakeFiles/caffe.dir/layers/absval_layer_hip.cpp.o] Error 1
CMakeFiles/Makefile2:235: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed
make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
skn123
changed the title
Compilation errors - Function not definec
Compilation errors - Function not defined
Jan 14, 2019
Please use the caffe-users list for usage, installation, or modeling questions, or other requests for help.
Do not post such requests to Issues. Doing so interferes with the development of Caffe.
Please read the guidelines for contributing before submitting this issue.
Issue summary
Compilation error with latest and greatest checkout
Steps to reproduce
Usual process of CMake followed by make
If you are having difficulty building Caffe or training a model, please ask the caffe-users mailing list. If you are reporting a build error that seems to be due to a bug in Caffe, please attach your build configuration (either Makefile.config or CMakeCache.txt) and the output of the make (or cmake) command.
Your system configuration
Operating system: ubuntu 18.04
Compiler: hcc (latest version - CLang 8.0)
CUDA version (if applicable):
CUDNN version (if applicable):
BLAS:
Python or MATLAB version (for pycaffe and matcaffe respectively):
[ 2%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/absval_layer_hip.cpp.o
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:13:3: error:
use of undeclared identifier 'caffe_gpu_abs'
caffe_gpu_abs(count, bottom[0]->gpu_data(), top_data);
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:29:1: note:
in instantiation of member function
'caffe::AbsValLayer::Forward_gpu' requested here
INSTANTIATE_LAYER_GPU_FUNCS(AbsValLayer);
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:85:3: note: expanded from
macro 'INSTANTIATE_LAYER_GPU_FUNCS'
INSTANTIATE_LAYER_GPU_FORWARD(classname);
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:67:35: note: expanded
from macro 'INSTANTIATE_LAYER_GPU_FORWARD'
template void classname::Forward_gpu(
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:13:3: error:
use of undeclared identifier 'caffe_gpu_abs'
caffe_gpu_abs(count, bottom[0]->gpu_data(), top_data);
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:29:1: note:
in instantiation of member function
'caffe::AbsValLayer::Forward_gpu' requested here
INSTANTIATE_LAYER_GPU_FUNCS(AbsValLayer);
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:85:3: note: expanded from
macro 'INSTANTIATE_LAYER_GPU_FUNCS'
INSTANTIATE_LAYER_GPU_FORWARD(classname);
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:70:36: note: expanded
from macro 'INSTANTIATE_LAYER_GPU_FORWARD'
template void classname::Forward_gpu(
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:24:5: error:
use of undeclared identifier 'caffe_gpu_sign'
caffe_gpu_sign(count, bottom_data, bottom_diff);
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:29:1: note:
in instantiation of member function
'caffe::AbsValLayer::Backward_gpu' requested here
INSTANTIATE_LAYER_GPU_FUNCS(AbsValLayer);
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:86:3: note: expanded from
macro 'INSTANTIATE_LAYER_GPU_FUNCS'
INSTANTIATE_LAYER_GPU_BACKWARD(classname)
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:75:35: note: expanded
from macro 'INSTANTIATE_LAYER_GPU_BACKWARD'
template void classname::Backward_gpu(
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:25:5: error:
use of undeclared identifier 'caffe_gpu_mul'
caffe_gpu_mul(count, bottom_diff, top_diff, bottom_diff);
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:24:5: error:
use of undeclared identifier 'caffe_gpu_sign'
caffe_gpu_sign(count, bottom_data, bottom_diff);
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:29:1: note:
in instantiation of member function
'caffe::AbsValLayer::Backward_gpu' requested here
INSTANTIATE_LAYER_GPU_FUNCS(AbsValLayer);
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:86:3: note: expanded from
macro 'INSTANTIATE_LAYER_GPU_FUNCS'
INSTANTIATE_LAYER_GPU_BACKWARD(classname)
^
/home/naths/srcs_new/hipCaffe/include/caffe/common.hpp:79:36: note: expanded
from macro 'INSTANTIATE_LAYER_GPU_BACKWARD'
template void classname::Backward_gpu(
^
/home/naths/srcs_new/hipCaffe/src/caffe/layers/absval_layer_hip.cpp:25:5: error:
use of undeclared identifier 'caffe_gpu_mul'
caffe_gpu_mul(count, bottom_diff, top_diff, bottom_diff);
^
6 errors generated.
src/caffe/CMakeFiles/caffe.dir/build.make:254: recipe for target 'src/caffe/CMakeFiles/caffe.dir/layers/absval_layer_hip.cpp.o' failed
make[2]: *** [src/caffe/CMakeFiles/caffe.dir/layers/absval_layer_hip.cpp.o] Error 1
CMakeFiles/Makefile2:235: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed
make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: