Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: identifier "std::fmin<float, double> " is undefined in device code #53

Open
azuryl opened this issue Jan 12, 2022 · 0 comments
Open

Comments

@azuryl
Copy link

azuryl commented Jan 12, 2022

ubuntu 18.04
cuda 10.2

azuryl@azuryl-Precision-5820-Tower-X-Series:~/project/sscnet/caffe_code/caffe3d_suncg$ make -j8
CXX /home/jliu/build_master_release/src/caffe/proto/caffe.pb.cc
NVCC src/caffe/layers/suncg_data_layer.cu
NVCC src/caffe/layers/contrastive_loss_layer.cu
NVCC src/caffe/layers/bnll_layer.cu
NVCC src/caffe/layers/euclidean_loss_layer.cu
NVCC src/caffe/layers/hdf5_data_layer.cu
NVCC src/caffe/layers/cudnn_sigmoid_layer.cu
NVCC src/caffe/layers/cudnn_conv_layer.cu
NVCC src/caffe/layers/pooling_layer.cu
NVCC src/caffe/layers/softmax_loss_layer.cu
src/caffe/layers/suncg_fusion.hpp(410): error: calling a host function("std::fmin<float, double> ") from a global function("Integrate ") is not allowed

src/caffe/layers/suncg_fusion.hpp(410): error: identifier "std::fmin<float, double> " is undefined in device code

src/caffe/layers/suncg_fusion.hpp(410): error: calling a host function("std::fmax<double, float> ") from a global function("Integrate ") is not allowed

src/caffe/layers/suncg_fusion.hpp(410): error: identifier "std::fmax<double, float> " is undefined in device code

src/caffe/layers/suncg_fusion.hpp(279): error: calling a host function("std::fmin<float, double> ") from a global function("SquaredDistanceTransform ") is not allowed

src/caffe/layers/suncg_fusion.hpp(279): error: identifier "std::fmin<float, double> " is undefined in device code

src/caffe/layers/suncg_fusion.hpp(279): error: calling a host function("std::fmax<double, float> ") from a global function("SquaredDistanceTransform ") is not allowed

src/caffe/layers/suncg_fusion.hpp(279): error: identifier "std::fmax<double, float> " is undefined in device code

8 errors detected in the compilation of "/tmp/tmpxft_0000342c_00000000-11_suncg_data_layer.compute_61.cpp1.ii".
Makefile:596: recipe for target '/home/jliu/build_master_release/cuda/src/caffe/layers/suncg_data_layer.o' failed
make: *** [/home/jliu/build_master_release/cuda/src/caffe/layers/suncg_data_layer.o] Error 1
make: *** Waiting for unfinished jobs....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant