Test GPU code generation failed with the error 'emlc:compilationError'

27 ビュー (過去 30 日間)
慧明 张
慧明 张 2022 年 4 月 1 日
コメント済み: 贝宁 竺 2022 年 4 月 11 日
cuDNN Environment : PASSED (Warning: Deep learning code generation has been tested with cuDNN v8.1. The provided cuDNN library v7.6 may not be fully compatible.)
TensorRT Environment : FAILED (Unable to find the 'NVIDIA_TENSORRT' environment variable. Set 'NVIDIA_TENSORRT' to point to the root directory of a TensorRT installation.)
Profiling Environment : PASSED
Basic Code Generation : FAILED (Test GPU code generation failed with the error 'emlc:compilationError'. View report for further information: View report)
Could anyone help me out of this problem? Thanks a lot in advance!
R2021a,CUDA v9.2,cudnn v7.6,MX150
  5 件のコメント
Fangjun Jiang
Fangjun Jiang 2022 年 4 月 1 日
emlc stands for Embedded MATLAB Coder? Need to dig in the report to see if there are detailed messages.
贝宁 竺
贝宁 竺 2022 年 4 月 11 日
你解决这个问题了吗,我也遇到了同样的问题

サインインしてコメントする。

回答 (1 件)

Esha Chakraborty
Esha Chakraborty 2022 年 4 月 5 日
Hi 慧明 张,
I understand that you are encountering - Test GPU code generation failed with the error 'emlc:compilationError', in you DL basic code generation problem. Most often this error is indicative of an incompatible compiler. You can check which c++ compiler is being used by executing the following command at the command line:
mex -setup c++
You can find the list of the supported compilers for GPU coder here.
In addition to the "Verify Setup" steps, you can also ensure that all the details are taken care of, by refering to the GPU coder setup documentation here.
Another possible source of this error message for DL basic code generation is an incorrect cuDNN version. Make sure that you are using the specified version of cuDNN from the install prerequisites page.
This is likely to solve your issue.

カテゴリ

Help Center および File ExchangeGet Started with GPU Coder についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by