host compiler failed but others all passed with 'coder.che​ckGpuInsta​ll('full')​'

조회 수: 3 (최근 30일)
Junda Wang
Junda Wang 2023년 5월 21일
답변: Joss Knight 2023년 5월 26일
Dear staff,
Greetings! I want to train some nets with matlab equipped with GPU. But some problems occurred during the configuration.
MATLAB: R2022b
Cuda: v11.2
nvidia toolkit: 12.1
GPU: RTX 4070 laptop
here's the results.
I tried many methods including MinGW, adding environmental variables, copying files into cuda path... but no useful.
My matlab also passed the vl_compilenn.m and vl_testnn.m. The mex -setup compiler was the MSVS c++2022. Also, I used gpuArray to transform data in my project and GPU likely worked and no error arised.

답변 (1개)

Joss Knight
Joss Knight 2023년 5월 26일
MSVC 2022 was not supported by the NVIDIA CUDA compiler in R2022b. You either need to install MSVC 2019 (or 2017) or upgrade MATLAB to R2023a.
If you are actually using code generation then it is possible also to do this by installing your own version of the CUDA toolkit. However I'm not sure you are using code generation, since it does not support training. If you are using mexcuda then follow the above.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by