未验证 提交 080c26ec 编写于 作者: Z zhangyang0701 提交者: GitHub

Merge pull request #969 from zhangyang0701/develop

add header files and function parameter for FPGA track close #968
......@@ -15,6 +15,7 @@ limitations under the License. */
#include "api.h"
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <algorithm>
#include <memory>
#include "bias_scale.h"
......@@ -31,7 +32,7 @@ static const char *device_path = "/dev/fpgadrv0";
static inline int do_ioctl(int req, const void *arg) {
#ifdef PADDLE_MOBILE_OS_LINUX
return ioctl(req, (unsigned int64_t)arg);
return ioctl(fd, req, (unsigned int64_t)arg);
#else
return -1;
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册