nvidia driver와 cudatoolkit과 nvcc 설치

2022. 2. 28. 17:33· 건축 컴퓨터 비전/Computer Vision
목차
  1. undefined symbol 오류

nvdia 드라이버 설치 확인 명령어

nvidia-smi: 드라이버가 지원하는 최대 CUDA 버전

nvcc -V: 실제로 설치된 CUDA 버전

설치가 안되어있다면, 이 사이트(ubuntu 20.04)를 참고해서 설치한다.

그리고 cuda를 이 사이트(ubuntu 20.04)를 참고해서 설치한다.

 

컴퓨터 비전 패키지 Neural Recon을 빌드하던 중에, pycuda 관련 오류가 났다.

undefined symbol 오류

undefined symbol: _ZSt28__throw_bad_array_new_lengthv (Fedora 34, gcc 11)

아래 사이트를 참고해서 해결법을 찾았다.

https://github.com/stan-dev/pystan/issues/294

 

Compilation crashes with `undefined symbol: _ZSt28__throw_bad_array_new_lengthv` (Fedora 34, gcc 11) · Issue #294 · stan-dev/p

After installing pystan and running the 8schools example, the compilation crashes with error message ImportError: /home/solant/.cache/httpstan/4.4.2/models/sk7xw5y6/stan_services_model_sk7xw5y6.cpy...

github.com

I think this is the GCC commit that is causing this problem: gcc-mirror/gcc@f92a504

And basically, conda has libstdc++.so.6.0.28 but fedora 34 has libstdc++.so.6.0.29:

objdump -T /usr/lib64/libstdc++.so.6.0.29  | grep throw_bad_array
00000000000a423f g    DF .text  0000000000000035  GLIBCXX_3.4.29 _ZSt28__throw_bad_array_new_lengthv
00000000000a14ee g    DF .text  0000000000000035  CXXABI_1.3.8 __cxa_throw_bad_array_new_length
00000000000a13d3 g    DF .text  0000000000000033  CXXABI_1.3.8 __cxa_throw_bad_array_length

 objdump -T libstdc++.so.6.0.28 | grep throw_bad_array
00000000000a9e5d g    DF .text  000000000000002f  CXXABI_1.3.8 __cxa_throw_bad_array_new_length
00000000000a9dd0 g    DF .text  000000000000002f  CXXABI_1.3.8 __cxa_throw_bad_array_length

A temporary workaround until conda gets an updated libstdc++ is to go into your miniconda directory and force it to use the system libstdc++:

cd  ~/miniconda3/lib/
rm libstdc++.so libstdc++.so.6
ln -s /usr/lib64/libstdc++.so.6.0.29 libstdc++.so
ln -s /usr/lib64/libstdc++.so.6.0.29 libstdc++.so.6

나도 libstdc++문제일지도 모른다.

objdump 관련 설명하는 블로그다.

https://itsaessak.tistory.com/238

 

[1] 어셈블리 배경지식 / xxd, objdump 명령어 사용법

어셈블러를 하기 전에 알아두어야 하는 것은 ELF 라는 리눅스 실행파일 구조이다 리눅스에서 실행파일들을 ELF 라는 구조를 가지고 파일시그니쳐에 ELF 가 있다 ELF의 형식을 간단히 표현하자면 다

itsaessak.tistory.com

 

'건축 컴퓨터 비전 > Computer Vision' 카테고리의 다른 글

다양한 visual slam 자료  (0) 2022.07.08
리눅스에서 detectron2를 이용한 instance segmentation 활용기  (0) 2022.05.27
  1. undefined symbol 오류
'건축 컴퓨터 비전/Computer Vision' 카테고리의 다른 글
  • 다양한 visual slam 자료
  • 리눅스에서 detectron2를 이용한 instance segmentation 활용기
시도하고 시도
시도하고 시도
시도하고 시도
시도하고 시도하는 파이썬
시도하고 시도
전체
오늘
어제
  • 분류 전체보기 (97)
    • 건축 컴퓨터 비전 (24)
      • 3D Reconstruction (4)
      • ORB-SLAM3 (6)
      • Computer Vision (3)
      • 리눅스 troubleshoot (2)
      • 리눅스 지식쌓기 (6)
      • DSO-SLAM (1)
    • 파이썬 공부 (10)
      • 기초 (6)
    • 음식 (1)
      • 구리 맛집 (1)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • python none
  • MinGW
  • 친절한 음식점
  • python 들여쓰기
  • 파이썬 구구단
  • 자동들여쓰기
  • python 들여쓰기 길게
  • C++
  • 피그마 입문
  • UIUX
  • 홀수만 남을 때
  • 리스트 이동
  • UI/UX
  • python 초보
  • UX/UI
  • 구리 애월식당
  • orb-slam3
  • uxui
  • window
  • 중고서점 가격

최근 댓글

최근 글

hELLO · Designed By 정상우.v4.2.2
시도하고 시도
nvidia driver와 cudatoolkit과 nvcc 설치
상단으로

티스토리툴바

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.