Cannot use ProcessedImage Resource with CUDA

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

Shelby Jueden

  • Posts: 13
  • Joined: Thu Feb 23, 2017 8:19 pm

Cannot use ProcessedImage Resource with CUDA

PostTue Nov 02, 2021 3:44 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.

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
Offline

CaptainHook

Blackmagic Design

  • Posts: 2057
  • Joined: Wed Aug 22, 2012 4:50 am
  • Location: Melbourne, Australia
  • Real Name: Hook

Re: Cannot use ProcessedImage Resource with CUDA

PostWed Nov 03, 2021 12:56 am

Hi, it actually looks like there's some issues with our CUDA sample as it actually assumes a CPU pipeline. We will try correct this soon and I will post an updated sample here in this thread at a later stage. Thanks!
**Any post by me prior to Aug 2014 was before i started working for Blackmagic**
Offline

Shelby Jueden

  • Posts: 13
  • Joined: Thu Feb 23, 2017 8:19 pm

Re: Cannot use ProcessedImage Resource with CUDA

PostWed Nov 03, 2021 1:23 am

It felt like I was missing something big so that explains it. Thanks for letting me know and I look forward to the updates!

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 9 guests