Error using gpu acceleration

조회 수: 2 (최근 30일)
Shaw
Shaw 2021년 11월 10일
댓글: Rik 2022년 3월 11일
I have trained network model in simulink, I am trying to perform GPU acceleration.
But, I am gettin the following error:
Value 'sm_86' is not defined for option 'gpu-architecture'
I have dowloaded cuda. Still, the error doesn't go
  댓글 수: 5
Joss Knight
Joss Knight 2021년 11월 11일
편집: Joss Knight 2021년 11월 11일
Which version of MATLAB are you using? I believe installing CUDA won't substitute for the version MATLAB is using unless you force it to. So presumably you are using a CUDA 10 version of MATLAB (R2020b or earlier)?
Edit: I see that CUDA 11.0 doesn't support compiling for cc8.6, so no released version of MATLAB will work. It seems you need support from the Coder team to determine how to prevent cc8.6 arch being used in the compiler options or alternatively to force Simulink to use your installed version of CUDA instead of the shipping version.
Walter Roberson
Walter Roberson 2021년 11월 11일
@Joss Knight According to the Release information they entered, R2021b.

댓글을 달려면 로그인하십시오.

답변 (1개)

Hanumanth Hanumantharayappa
Hanumanth Hanumantharayappa 2021년 11월 11일
The issue seems to be the same as the one captured in the below bug report. Please get the update mentioned in the below bug report and that should resolve the issue. Let me know if you face any problems.
  댓글 수: 4
han wang
han wang 2022년 3월 11일
Hi Chao,
Thanks for explanation. Your method works for me. I am using 2021B.
Rik
Rik 2022년 3월 11일
Comment posted as flag by @han wang:
GPU Simulink

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by