Altera_Forum
Honored Contributor
8 years agoassertion failed! Pin_memory problem.
Hi
I'm encountering an assertion failed problem. The returned message is "MMD FATAL: acl_pcie_dma_windows.cpp:381: WDC_DMASGBufLock function failed." I looked into the acl_pcie_dma_windows.cpp file and it was somthing about pin_memory: 379 assert(lock_size < MAXDWORD);
380 WD_status = WDC_DMASGBufLock(m_device, lock_addr, lock_options, (DWORD)lock_size, &new_mem->dma );
381 ACL_PCIE_ASSERT( WD_status == WD_STATUS_SUCCESS, "WDC_DMASGBufLock function failed.\n" ); It doesn't happened every time I execute my program, most of the time it would run successfully (without recompilation), but the frequency is increasing as I'm using more clCreateBuffer (which is the only thing I can think of that is related to pinning memory). Anyone have idea of what does this error mean and how to solve it? Thanks a lot!