Results 1 to 2 of 2

Thread: Wrong cl_mem pointer causes segfault

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    10

    Wrong cl_mem pointer causes segfault

    Hi All!

    I have a problem with my code and I can't figure it out.
    Here is the code: http://grid.kfki.hu/afs/szaqaei/web/hough.cpp

    So the problem is when I try to write the memory segment pointed by buffer[0] it causes
    "Segmentation fault (core dumped)" error. Everything else works fine, I checked everything
    : the real array is not null, transfer smaller size of data ... but keeps not working.
    The error is in cl_TransferData().


    I tried to detect the problem with valgrind but the program didn't terminate.
    Can somebody help me to find the error and suggest me a good debugger?


    Thanks in advance,
    Adam

  2. #2
    Junior Member
    Join Date
    Nov 2011
    Posts
    10

    Re: Wrong cl_mem pointer causes segfault

    I've found it in cl_calcDetVelo() I have to go till Num_Segments...

Similar Threads

  1. SegFault at clGetDeviceIDs?
    By ds789 in forum OpenCL
    Replies: 1
    Last Post: 12-28-2012, 03:48 PM
  2. Replies: 0
    Last Post: 12-19-2011, 05:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •