フィルターのクリア

Set up Stateful Predict to not try and use GPU Functionality

3 ビュー (過去 30 日間)
Wilson
Wilson 2024 年 5 月 21 日
コメント済み: Wilson 2024 年 5 月 31 日
Although our group has a Paralell Computing Toolbox license it is not always available. This means when trying to use a stateful Predict simulink block I encounter an error that GPU functionality requires that toolbox. It is not apparent that there is a way to set it to use CPU for the predictions from the block function or from what I could find in the documentation.

回答 (1 件)

Ruth
Ruth 2024 年 5 月 23 日
The "Stateful Predict" block can call the "predict" function in MATLAB which uses the GPU by default. To avoid using the GPU in this case, you can hide the GPU from MATLAB entirely by either:
gpuDevice([]);
or executing this right after you start MATLAB:
setenv CUDA_VISIBLE_DEVICES -1
Best wishes,
Ruth
  1 件のコメント
Wilson
Wilson 2024 年 5 月 31 日
This does not fix my issue. I still run into this problem after trying both methods.
The GPU functionality requires a Parallel Computing Toolbox license. License checkout failed. License Manager Error -4 Maximum number of users for Distrib_Computing_Toolbox reached. Try again later.
I don't require GPU functionality.

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

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by