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 Exchange에서 GPU 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