- Posts: 13
- Joined: Thu Feb 23, 2017 8:19 pm
I'm trying to merge the "ProcessClipCUDA" and "ExtractFrame" samples in the Blackmagic RAW SDK to test working with image data processed via CUDA. But I'm getting segfaults any time I try and access the ProcessedImage's actual data retrieved with GetResource. I've tried a few different things and using the GetResource method I can see that it does have data, but attempting to access it always causes a segfault.
I've attached a bare minimum version of the combined example projects that has the issue.
Am I missing something with how to access the data?
I did have to modify the CUDART_VERSION check to look for "10010" instead of "10000" but I'm not getting any other errors so I don't believe that is the cause but I figured I should mention it.
System Info:
Ubuntu 20.04.2
SDK Version 2.2
Nvidia driver 460.32
- Code: Select all
Thread 7 "ExtractFrameCUD" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe4ffd700 (LWP 194755)]
0x0000555555556712 in OutputImage (width=4608, height=2592, imageData=0x7fffac000000) at ExtractFrameCUDA.cpp:114
114 unsigned char red = rgba[0];
I've attached a bare minimum version of the combined example projects that has the issue.
Am I missing something with how to access the data?
I did have to modify the CUDART_VERSION check to look for "10010" instead of "10000" but I'm not getting any other errors so I don't believe that is the cause but I figured I should mention it.
System Info:
Ubuntu 20.04.2
SDK Version 2.2
Nvidia driver 460.32
- Attachments
-
- ExtractFrameCUDA.zip
- cpp and makefile to test CUDA
- (3.74 KiB) Downloaded 91 times