Article ID: 000077344 Content Type: Troubleshooting Last Reviewed: 07/26/2018

Segmentation fault in acl_event_is_valid () using clEnqueueFillBuffer()

Environment

  • Intel® Quartus® Prime Pro Edition
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT
    Description

    A segmentation fault may be seen after in any memory manipulation on a buffer that was filled by a call to clEnqueueFillBuffer().  An example of the error message is shown below.

    Segmentation fault. 0x00007ffff5ae810b in acl_event_is_valid () from /intelFPGA_pro/17.0/hld/host/linux64/lib/libalteracl.so

    The clEnqueueFillBuffer() call itself returns no errors.

    Resolution

    To work around this problem,  fill a host buffer with the desired data and use the cCreateBuffer() function with the CL_MEM_COPY_HOST_PTR option.

    cl_mem buffer = clCreateBuffer (context, CL_MEM_COPY_HOST_PTR,   size, host_buffer, &error)

    This problem is scheduled to be fixed in a future release of the Intel® Quartus® Prime software

    Related Products

    This article applies to 1 products

    Intel® Programmable Devices