Cudaa kernel launch failure

Hi, I have made cuda c mex file after I run the mex file outputs are obtain but when gpu enable commands are run . I get an error cuda kernel launch failure. Further investigating I came to know that error is "gpu device busy or currantly unavailable "

2 件のコメント

Joss Knight
Joss Knight 2017 年 11 月 10 日
Probably your MEX kernel is still running when you try to access the result. Did you call cudaDeviceSynchronize() or cudaStreamSynchronize() after your MEX computation?
ARSALAN RIAZ
ARSALAN RIAZ 2017 年 11 月 10 日
Using mex file in loop I think some memory is leaked. Output argument are not overwritten some how!

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGPU Computing についてさらに検索

タグ

質問済み:

2017 年 11 月 10 日

コメント済み:

2017 年 11 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by