Error using gpu acceleration

3 visualizzazioni (ultimi 30 giorni)
Shaw
Shaw il 10 Nov 2021
Commentato: Rik il 11 Mar 2022
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 Commenti
Joss Knight
Joss Knight il 11 Nov 2021
Modificato: Joss Knight il 11 Nov 2021
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 il 11 Nov 2021
@Joss Knight According to the Release information they entered, R2021b.

Accedi per commentare.

Risposte (1)

Hanumanth Hanumantharayappa
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 Commenti
han wang
han wang il 11 Mar 2022
Hi Chao,
Thanks for explanation. Your method works for me. I am using 2021B.
Rik
Rik il 11 Mar 2022
Comment posted as flag by @han wang:
GPU Simulink

Accedi per commentare.

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by