猿代码 — 科研/AI模型/高性能计算
0

constexpr _ from a __device__ function("abs") is not allowed.

摘要: /public/software/Python-3.9.2/lib/python3.9/site-packages/cmake/data/bin/cmake -E rm -f /public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/build_cuda/modules/cudabgsegm/CMakeFiles/cuda_co ...

/public/software/Python-3.9.2/lib/python3.9/site-packages/cmake/data/bin/cmake -E rm -f /public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/build_cuda/modules/cudabgsegm/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_mog2.cu.o.depend.tmp /public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/build_cuda/modules/cudabgsegm/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_mog2.cu.o.NVCC-depend

-- Generating /public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/build_cuda/modules/cudabgsegm/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_mog2.cu.o

/public/software/cuda10.0/bin/nvcc /public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/modules/cudabgsegm/src/cuda/mog2.cu -c -o /public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/build_cuda/modules/cudabgsegm/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_mog2.cu.o -ccbin /usr/bin/cc -m64 -D__OPENCV_BUILD=1 -D_USE_MATH_DEFINES -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -Xcompiler ,\"-fsigned-char\",\"-ffast-math\",\"-W\",\"-Wall\",\"-Werror=return-type\",\"-Werror=non-virtual-dtor\",\"-Werror=address\",\"-Werror=sequence-point\",\"-Wformat\",\"-Werror=format-security\",\"-Winit-self\",\"-Wpointer-arith\",\"-Wuninitialized\",\"-Wno-unnamed-type-template-args\",\"-Wno-comment\",\"-Wno-missing-field-initializers\",\"-fdiagnostics-show-option\",\"-Wno-long-long\",\"-pthread\",\"-fomit-frame-pointer\",\"-ffunction-sections\",\"-fdata-sections\",\"-msse\",\"-msse2\",\"-msse3\",\"-fvisibility=hidden\",\"-Wno-undef\",\"-Wno-missing-declarations\",\"-Wno-shadow\",\"-Wno-unused-but-set-variable\",\"-O3\",\"-DNDEBUG\",\"-DNDEBUG\" -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -D_FORCE_INLINES --use_fast_math -Xcompiler -DCVAPI_EXPORTS -Xcompiler -fPIC --std=c++11 -DNVCC -I/public/software/cuda10.0/include -I/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/build_cuda/3rdparty/ippicv/ippicv_lnx/icv/include -I/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/build_cuda/3rdparty/ippicv/ippicv_lnx/iw/include -I/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/build_cuda -I/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/modules/cudabgsegm/include -I/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/build_cuda/modules/cudabgsegm -I/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/modules/cudev/include -I/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/modules/core/include -I/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/modules/imgproc/include -I/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/modules/video/include

/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/modules/core/include/opencv2/core/cuda/vec_math.hpp(203): error: calling a constexpr __host__ function("abs") from a __device__ function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

 

/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/modules/core/include/opencv2/core/cuda/vec_math.hpp(203): error: calling a constexpr __host__ function("abs") from a __device__ function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

 

/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/modules/core/include/opencv2/core/cuda/vec_math.hpp(203): error: calling a constexpr __host__ function("abs") from a __device__ function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

 

/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/modules/core/include/opencv2/core/cuda/vec_math.hpp(203): error: calling a constexpr __host__ function("abs") from a __device__ function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

 

/public/home/hpc221051/z1.gon/12-imageMaca/src/a1.opencv-3.4.16/modules/core/include/opencv2/core/cuda/vec_math.hpp(203): error: calling a constexpr __host__ function("abs") from a __device__ function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.


添加下面的编译选项:

 

cmake -DCUDA_NVCC_FLAGS=--expt-relaxed-constexpr ..

说点什么...

已有0条评论

最新评论...

本文作者
2023-12-30 22:22
  • 0
    粉丝
  • 433
    阅读
  • 0
    回复
资讯幻灯片
热门评论
热门专题
排行榜
Copyright   ©2015-2023   猿代码-超算人才智造局 高性能计算|并行计算|人工智能      ( 京ICP备2021026424号-2 )