From f90a3e72170885a363743be94445f7cc89209cfa Mon Sep 17 00:00:00 2001 From: zhangyang Date: Fri, 14 Sep 2018 10:15:24 +0800 Subject: [PATCH] add header files and function parameter for FPGA track --- src/fpga/api.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fpga/api.cpp b/src/fpga/api.cpp index 0b3c1f8132..3d41d855c0 100644 --- a/src/fpga/api.cpp +++ b/src/fpga/api.cpp @@ -15,6 +15,7 @@ limitations under the License. */ #include "api.h" #include #include +#include #include #include #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 -- GitLab