当前位置:   article > 正文

python3 setup.py build_ext --inplace报错需要注释掉的:_warning: passing language='c++' to cythonize() is

warning: passing language='c++' to cythonize() is deprecated. instead, put

#CUDA = locate_cuda()#self.set_executable(‘compiler_so’, CUDA[‘nvcc’])
#Extension(‘nms.gpu_nms’,

#[‘nms/nms_kernel.cu’, ‘nms/gpu_nms.pyx’],

#library_dirs=[CUDA[‘lib64’]],

#libraries=[‘cudart’],

#language=‘c++’,
#runtime_library_dirs=[CUDA[‘lib64’]],

#this syntax is specific to this build system

#we’re only going to use certain compiler args with nvcc and not with

#gcc the implementation of this trick is in customize_compiler() below extra_compile_args={‘gcc’: ["-Wno-unused-function"],

#‘nvcc’: [’-arch=sm_35’,’–ptxas-options=-v’,’-c’,’–compiler-options’,"’-fPIC’"]},#include_dirs = [numpy_include, CUDA[‘include’]]

#),

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/寸_铁/article/detail/1014834
推荐阅读
相关标签
  

闽ICP备14008679号