提交 f90a3e72 编写于 作者: Z zhangyang

add header files and function parameter for FPGA track

上级 09a678af
......@@ -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.
先完成此消息的编辑!
想要评论请 注册