我尝试使用AWS Deep Learning AMI https://aws.amazon.com/marketplace/pp/B077GCH38C?qid=1530671113739&sr=0-2&ref_=srh_res_product_title
在AWS p3.2xlarge实例上构建Openpose C ++源代码操作系统为Ubuntu 16.04,几乎预装了所有必备软件(CUDA,cuDNN,OpenCV,Caffe)。 我按照官方指示进行操作。 https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation.md#operating-systems
这是我尝试使用cmake构建它时遇到的主要错误消息。 这是否意味着GPU架构对于openpose而言太新了,因此无法编译?有人可以解释我遇到的错误吗?
nvcc致命:不支持的GPU架构'compute_70'
在构建之前的步骤中是否有可能出现问题?
最后,我想知道哪种环境可以真正运行openpose,尤其是对于AWS。任何报告表示赞赏。
整个错误消息在这里。
src / openpose / CMakeFiles / openpose.dir / build.make:63:目标配方 'src / openpose / CMakeFiles / openpose.dir / hand / openpose_genic_renderHand.cu.o' 失败的make [2]:* [src / openpose / CMakeFiles / openpose.dir / hand / openpose_genic_renderHand.cu.o] 错误1 make [2]:*等待未完成的作业。...nvcc致命: 不受支持的GPU架构'compute_70'CMake错误,位于 openpose_generation_bodyPartConnectorBase.cu.o.cmake:207(消息): 产生错误 /home/ubuntu/openpose/build/src/openpose/CMakeFiles/openpose.dir/pose /./ openpose_generation_bodyPartConnectorBase.cu.o
nvcc致命:不支持的GPU架构'compute_70' src / openpose / CMakeFiles / openpose.dir / build.make:77:目标配方 'src / openpose / CMakeFiles / openpose.dir / pose / openpose_genic_bodyPartConnectorBase.cu.o' 失败的制作[2]:*** [src / openpose / CMakeFiles / openpose.dir / pose / openpose_generation_bodyPartConnectorBase.cu.o] 在openpose_generation_maximumBase.cu.o.cmake上的错误1 CMake错误:207 (消息):生成错误 /home/ubuntu/openpose/build/src/openpose/CMakeFiles/openpose.dir/net /./ openpose_generation_maximumBase.cu.o
src / openpose / CMakeFiles / openpose.dir / build.make:98:目标配方 'src / openpose / CMakeFiles / openpose.dir / net / openpose_generation_maximumBase.cu.o' 失败的制作[2]:*** [src / openpose / CMakeFiles / openpose.dir / net / openpose_generation_maximumBase.cu.o] 错误1 NVCC致命:不支持的GPU架构'compute_70'CMake openpose_generation_renderPose.cu.o.cmake:207(消息)时出错:错误 产生 /home/ubuntu/openpose/build/src/openpose/CMakeFiles/openpose.dir/pose /./ openpose_generation_renderPose.cu.o
nvcc致命:不支持的gpu架构'compute_70'CMake错误位于 openpose_generation_renderFace.cu.o.cmake:207(消息):错误 产生 /home/ubuntu/openpose/build/src/openpose/CMakeFiles/openpose.dir/face /./ openpose_generation_renderFace.cu.o
src / openpose / CMakeFiles / openpose.dir / build.make:84:目标配方 'src / openpose / CMakeFiles / openpose.dir / pose / openpose_genic_renderPose.cu.o' 失败的制作[2]:*** [src / openpose / CMakeFiles / openpose.dir / pose / openpose_genic_renderPose.cu.o] 错误1 NVCC致命:不支持的GPU架构'compute_70'CMake openpose_genic_resizeAndMergeBase.cu.o.cmake处发生错误:207 (消息):生成错误 /home/ubuntu/openpose/build/src/openpose/CMakeFiles/openpose.dir/net /./ openpose_generation_resizeAndMergeBase.cu.o
src / openpose / CMakeFiles / openpose.dir / build.make:70:目标配方 'src / openpose / CMakeFiles / openpose.dir / face / openpose_genic_renderFace.cu.o' 失败的make [2]:* [src / openpose / CMakeFiles / openpose.dir / face / openpose_generation_renderFace.cu.o] 错误1 src / openpose / CMakeFiles / openpose.dir / build.make:112:配方 为目标 'src / openpose / CMakeFiles / openpose.dir / net / openpose_generation_resizeAndMergeBase.cu.o' 失败的make [2]:* [src / openpose / CMakeFiles / openpose.dir / net / openpose_generation_resizeAndMergeBase.cu.o] 错误1 NVCC致命:不支持的GPU架构'compute_70'CMake openpose_generation_pyramidalLK.cu.o.cmake:207(消息)出错: 产生错误 /home/ubuntu/openpose/build/src/openpose/CMakeFiles/openpose.dir/tracking /./ openpose_generation_pyramidalLK.cu.o
src / openpose / CMakeFiles / openpose.dir / build.make:91:目标配方 'src / openpose / CMakeFiles / openpose.dir / tracking / openpose_genic_pyramidalLK.cu.o' 失败的make [2]:* [src / openpose / CMakeFiles / openpose.dir / tracking / openpose_generation_pyramidalLK.cu.o] 错误1 CMakeFiles / Makefile2:179:目标配方 'src / openpose / CMakeFiles / openpose.dir / all'使make [1]失败:* [src / openpose / CMakeFiles / openpose.dir / all]错误2 make [1]:*** 等待未完成的工作。...[8%]建筑CXX对象 src / openpose / filestream / CMakeFiles / openpose_filestream.dir / bvhSaver.cpp.o 扫描目标openpose_gpu的依赖项 target openpose_thread [8%]构建NVCC(设备)对象 src / openpose / hand / CMakeFiles / openpose_hand.dir / openpose_hand_genic_renderHand.cu.o [9%]构建NVCC(设备)对象 src / openpose / face / CMakeFiles / openpose_face.dir / openpose_face_genic_renderFace.cu.o 扫描目标openpose_calibration的依赖项[9%] CXX对象 src / openpose / filestream / CMakeFiles / openpose_filestream.dir / cocoJsonSaver.cpp.o [9%]建立CXX对象 src / openpose / filestream / CMakeFiles / openpose_filestream.dir / defineTemplates.cpp.o [10%]建立CXX对象 src / openpose / thread / CMakeFiles / openpose_thread.dir / defineTemplates.cpp.o [11%]建立CXX对象 src / openpose / calibration / CMakeFiles / openpose_calibration.dir / cameraParameterEstimation.cpp.o [11%]建立CXX对象 src / openpose / calibration / CMakeFiles / openpose_calibration.dir / gridPatternFunctions.cpp.o nvcc致命:不支持的gpu架构'compute_70'CMake错误位于 openpose_hand_generation_renderHand.cu.o.cmake:207(消息):错误 产生 /home/ubuntu/openpose/build/src/openpose/hand/CMakeFiles/openpose_hand.dir //../ openpose_hand_genic_renderHand.cu.o
nvcc致命:不支持的gpu架构'compute_70'CMake错误位于 openpose_face_generation_renderFace.cu.o.cmake:207(消息):错误 产生 /home/ubuntu/openpose/build/src/openpose/face/CMakeFiles/openpose_face.dir //../ openpose_face_generation_renderFace.cu.o
src / openpose / hand / CMakeFiles / openpose_hand.dir / build.make:63:配方 为目标 'src / openpose / hand / CMakeFiles / openpose_hand.dir / openpose_hand_genic_renderHand.cu.o' 失败的make [2]:* [src / openpose / hand / CMakeFiles / openpose_hand.dir / openpose_hand_genic_renderHand.cu.o] 错误1 CMakeFiles / Makefile2:344:目标配方 'src / openpose / hand / CMakeFiles / openpose_hand.dir / all'使make [1]失败:* [src / openpose / hand / CMakeFiles / openpose_hand.dir / all]错误2
src / openpose / face / CMakeFiles / openpose_face.dir / build.make:63:配方 为目标 'src / openpose / face / CMakeFiles / openpose_face.dir / openpose_face_genic_renderFace.cu.o' 失败的make [2]:* [src / openpose / face / CMakeFiles / openpose_face.dir / openpose_face_genic_renderFace.cu.o] 错误1 CMakeFiles / Makefile2:456:目标配方 'src / openpose / face / CMakeFiles / openpose_face.dir / all'使make [1]失败: [src / openpose / face / CMakeFiles / openpose_face.dir / all]错误2 [12%] 建立CXX对象 src / openpose / filestream / CMakeFiles / openpose_filestream.dir / fileSaver.cpp.o [12%]建立CXX对象 src / openpose / filestream / CMakeFiles / openpose_filestream.dir / fileStream.cpp.o [12%]建立CXX对象 src / openpose / gpu / CMakeFiles / openpose_gpu.dir / cuda.cpp.o在文件中 来自 /home/ubuntu/openpose/include/openpose/filestream/headers.hpp:9:0, 从 /home/ubuntu/openpose/src/openpose/filestream/defineTemplates.cpp:1: /home/ubuntu/openpose/include/openpose/filestream/fileStream.hpp:54:32: 错误:在此范围内未声明“ CV_IMWRITE_JPEG_QUALITY” = {CV_IMWRITE_JPEG_QUALITY,100,CV_IMWRITE_PNG_COMPRESSION,9}); ^ 由于-Wfatal-errors,编译终止。 src / openpose / filestream / CMakeFiles / openpose_filestream.dir / build.make:110: 目标配方 'src / openpose / filestream / CMakeFiles / openpose_filestream.dir / defineTemplates.cpp.o' 失败的make [2]: [src / openpose / filestream / CMakeFiles / openpose_filestream.dir / defineTemplates.cpp.o] 错误1 make [2]:正在等待未完成的作业。...[13%]正在构建CXX 对象src / openpose / gpu / CMakeFiles / openpose_gpu.dir / gpu.cpp.o在文件中 来自 /home/ubuntu/openpose/src/openpose/filestream/fileStream.cpp:7:0: /home/ubuntu/openpose/include/openpose/filestream/fileStream.hpp:54:32: 错误:在此范围内未声明“ CV_IMWRITE_JPEG_QUALITY” = {CV_IMWRITE_JPEG_QUALITY,100,CV_IMWRITE_PNG_COMPRESSION,9}); ^ 由于-Wfatal-errors,编译终止。 src / openpose / filestream / CMakeFiles / openpose_filestream.dir / build.make:158: 目标配方 'src / openpose / filestream / CMakeFiles / openpose_filestream.dir / fileStream.cpp.o' 失败的make [2]: [src / openpose / filestream / CMakeFiles / openpose_filestream.dir / fileStream.cpp.o] 错误1 [13%]构建CXX对象 src / openpose / gpu / CMakeFiles / openpose_gpu.dir / opencl.cpp.o CMakeFiles / Makefile2:234:目标配方 'src / openpose / filestream / CMakeFiles / openpose_filestream.dir / all' 失败的make [1]: [src / openpose / filestream / CMakeFiles / openpose_filestream.dir / all]错误 2在包含的文件中 /home/ubuntu/openpose/src/openpose/calibration/cameraParameterEstimation.cpp:11:0: /home/ubuntu/openpose/include/openpose/filestream/fileStream.hpp:54:32: 错误:在此范围内未声明“ CV_IMWRITE_JPEG_QUALITY” = {CV_IMWRITE_JPEG_QUALITY,100,CV_IMWRITE_PNG_COMPRESSION,9}); ^ 由于-Wfatal-errors,编译终止。 src / openpose / calibration / CMakeFiles / openpose_calibration.dir / build.make:62: 目标配方 'src / openpose / calibration / CMakeFiles / openpose_calibration.dir / cameraParameterEstimation.cpp.o' 失败的make [2]: [src / openpose / calibration / CMakeFiles / openpose_calibration.dir / cameraParameterEstimation.cpp.o] 错误1 make [2]:正在等待未完成的作业。 /home/ubuntu/openpose/src/openpose/calibration/gridPatternFunctions.cpp: 在功能'void op :: improveCornersPositionsAtSubPixelLevel(std :: vector>&,const cv :: Mat&)’: /home/ubuntu/openpose/src/openpose/calibration/gridPatternFunctions.cpp:22:52: 错误:在此范围内未声明“ CV_TERMCRIT_EPS” cv :: TermCriteria {CV_TERMCRIT_EPS + CV_TERMCRIT_ITER,1000,1e-9}); ^ 由于-Wfatal-errors,编译终止。 src / openpose / calibration / CMakeFiles / openpose_calibration.dir / build.make:86: 目标配方 'src / openpose / calibration / CMakeFiles / openpose_calibration.dir / gridPatternFunctions.cpp.o' 失败的make [2]: [src / openpose / calibration / CMakeFiles / openpose_calibration.dir / gridPatternFunctions.cpp.o] 错误1 CMakeFiles / Makefile2:511:目标配方 'src / openpose / calibration / CMakeFiles / openpose_calibration.dir / all' 失败的make [1]:* [src / openpose / calibration / CMakeFiles / openpose_calibration.dir / all] 错误2 [13%]链接CXX共享库libopenpose_gpu.so [13%] 内置目标openpose_gpu [13%]链接CXX共享库 libopenpose_thread.so [13%]建立目标openpose_thread Makefile:127:目标“全部”的配方失败:*** [all]错误2
答案 0 :(得分:1)
AWS p3实例具有需要CUDA 9及更高版本的Tesla V100。 但是OpenPose需要CUDA8。
如果要在AWS上使用OpenPose,则必须使用p2实例。