[Tensorflow] Tensorflow와 CuDNN 버전 에러

2023. 1. 28. 22:53·Error Note
728x90
반응형
반응형

- 전체에러 문구

E tensorflow/stream_executor/cuda/cuda_dnn.cc:378] Loaded runtime CuDNN library: 7603 (compatibility version 7600) but source was compiled with 7004 (compatibility version 7000). If using a binary install, upgrade your CuDNN library to match. If building from sources, make sure the library loaded at runtime matches a compatible version specified during compile configuration.

F tensorflow/core/kernels/conv_ops.cc:717] Check failed: stream->parent()->GetConvolveAlgorithms( conv_parameters.ShouldIncludeWinogradNonfusedAlgo<T>(), &algorithms)

​

​

Tensorflow와 현재 CuDNN 사이의 버전이 맞지 않는 경우 발생하는 에러입니다. 저의 경우 각각의 사용버전은 아래와 같습니다.

사용 Tensorflow 버전: Tensorflow-gpu 1.5.0

사용 CUDA 버전: 9.0

​

에러 문구의 가장 앞쪽에 표시된 7603( CuDNN 7.6.3버전에 해당)으로 새로 설치하여 버전을 수정함으로써 해결할 수 있습니다!

​

- CuDNN 설치 방법

1. 아래 사이트에서 사용 CUDA버전과 맞는 원하는 CuDNN 버전을 다운로드해줍니다.

https://developer.nvidia.com/cudnn

 

CUDA Deep Neural Network

cuDNN provides researchers and developers with high-performance GPU acceleration.

developer.nvidia.com

 

2. 다운로드된 폴더로 이동하고 아래 명령어로 압축을 풀어줍니다.

tar xzvf "파일 이름"
예시) tar xzvf cudnn-9.0-linux-x64-v7.6.3.30.solitairetheme8

3. 아래 명령어를 이용해 기타 패키지들을 설치해줍니다.

sudo apt-get install libcupti-dev

4. 아래 명령어를 이용해 맞는 버전이 설치되었는지, 설치된 버전을 확인해 줍니다.

cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2

 

728x90
반응형
저작자표시 (새창열림)

'Error Note' 카테고리의 다른 글

[Pytorch] RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn  (0) 2023.01.29
TypeError: Encoders require their input to be uniformly strings or numbers. Got ['int', 'str']  (0) 2023.01.29
[Pytorch] RuntimeError: Expected object of scalar type Long but got scalar type Float for argument #  (0) 2023.01.29
[Pytorch] RuntimeError: DataLoader worker (pid(s) 19106, 19107, 19109, 19110) exited unexpectedly.  (0) 2023.01.28
[Tensorflow] Tensorflow Error: InvalidArgumentError: slice index 0 of dimension 0 out bounds.  (0) 2023.01.28
'Error Note' 카테고리의 다른 글
  • TypeError: Encoders require their input to be uniformly strings or numbers. Got ['int', 'str']
  • [Pytorch] RuntimeError: Expected object of scalar type Long but got scalar type Float for argument #
  • [Pytorch] RuntimeError: DataLoader worker (pid(s) 19106, 19107, 19109, 19110) exited unexpectedly.
  • [Tensorflow] Tensorflow Error: InvalidArgumentError: slice index 0 of dimension 0 out bounds.
ga.0_0.ga
ga.0_0.ga
    반응형
    250x250
  • ga.0_0.ga
    ##뚝딱뚝딱 딥러닝##
    ga.0_0.ga
  • 전체
    오늘
    어제
    • 분류 전체보기 (181) N
      • Paper Review (51) N
        • Video Scene Graph Generation (6)
        • Image Scene Graph Generation (18)
        • Graph Model (5)
        • Key Information Extraction (4)
        • Fake Detection (2)
        • Text to Image (1)
        • Diffusion Personalization (4)
        • etc (11) N
      • AI Research (49)
        • Deep Learning (30)
        • Artificial Intelligence (15)
        • Data Analysis (4)
      • Pytorch (10)
      • ONNX (5)
      • OpenCV (2)
      • Error Note (34)
      • Linux (2)
      • Docker (3)
      • Etc (7)
      • My Study (16)
        • Algorithm (10)
        • Project (4)
        • Interview (2)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    linear regression
    dataset
    그래프신경망
    GCN
    Inductive bias
    tensorflow
    pandas
    TypeError
    나이브 베이즈 분류
    JNI
    i3d
    HRNet
    torch.nn
    pytorch
    차원의 저주
    3dinput
    contiguous
    오차 역전파
    RuntimeError
    정규화
    dataloader
    ONNX
    알고리즘
    permute
    fine tuning
    활성화 함수
    Logistic regression
    Activation Function
    forch.nn.functional
    transformer
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.0
ga.0_0.ga
[Tensorflow] Tensorflow와 CuDNN 버전 에러
상단으로

티스토리툴바