How to force enable GPU usage in fitrgp

8 ビュー (過去 30 日間)
M N
M N 2023 年 4 月 7 日
コメント済み: Ive J 2023 年 4 月 9 日
When i am using Regression learner app , and select 'Use Parallel' option for training, i can see my Nvidia GPU ( compute 7.2) being used.
But when i generate function from it and try to run from script, it wont, Can we set something in script to use GPU from script.
i tried Gpuarrays and tall array and both are not supported by fitrgp.
regressionGP = fitrgp(...
(X), ...
(Y), ...
'BasisFunction', 'constant', ...
'KernelFunction', 'exponential', ...
'Standardize', true,...
'OptimizeHyperparameters','auto',...
'HyperparameterOptimizationOptions',struct(...
'Verbose',1,...
'UseParallel',true));
  3 件のコメント
M N
M N 2023 年 4 月 8 日
編集済み: M N 2023 年 4 月 8 日
is there somethings specific you are not able to understand?
Walter Roberson
Walter Roberson 2023 年 4 月 8 日
In MATLAB Answers, each user can communicate in whatever language they feel most comfortable communicating in. If a reader has difficulty understanding, then the reader can ask for clarification of particular parts... or the reader can move on to other questions.
There is no requirement that people post in English -- and if they do post in English then it is fine if they used a machine translation that might get words or capitalization or contractions wrong compared to "perfect" English. We are here for Mathworks products, not for complaining about typographic mistakes.

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

採用された回答

Ive J
Ive J 2023 年 4 月 7 日
fitrgp does not [yet] support GPU arrays. You can easily scroll down the doc page and check "Extended Capabilities" for each function. UseParallel as the name suggests, will invoke parallel computations.
  4 件のコメント
M N
M N 2023 年 4 月 9 日
Thanks for explaination, my bad, just in pursuit to get maximize usage of my GPU/CPU, i am thinkings stuff beyond documentation.
In screenhot below, when i run app, i see 7% GPU usage on my computer as soon as i hit train button on Regression Learner app.
So ledme to think that something in app or Matlab instance itself is trying to run on GPU itself, while running fitrgp. but i think its Regression learner's UI that is using the GPU not fitrgp, fitrgp seems to consume the CPU itself.
Is there a plan by Mathworks to add gpuarray support for fitrgp?
Ive J
Ive J 2023 年 4 月 9 日
For that you need directly to contact TMW :-)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGaussian Process Regression についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by