You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
boolsaveImage( constchar* filename, void* ptr, int width, int height, imageFormat format, int quality, const float2& pixel_range, bool sync )
in this case, it checks the result from stbi_write_jpg() 3rd-party library function, and I'm not sure why that would work ok normally but fail under GDB
[Environment]
[Question]
The simple code below should work fine when running in debugging mode using gdb.
But strangely, when I run it directly from the terminal (e.g. ./myAPP), I get failed on
saveImage
.Have you experienced similar symptoms?
I suspected a synchronization problem and added
cudaDeviceSynchronize
right after loadImage and saveImage, but it doesn't improve.Below are the results of the run. Is there a way to view the verbose log instead of SetLevel?
I referenced this article. I'm new to CUDA, so please bear with me.
The text was updated successfully, but these errors were encountered: