ganyc717 / Darknet-On-OpenCL

Darknet On OpenCL
MIT License
100 stars 44 forks source link

Running this on FPGA #14

Open Thilanka97 opened 5 years ago

Thilanka97 commented 5 years ago

Hey, I am trying to optimize YOLOv3 architecture on fpga. I am planning to use a existing opencl implementation of yolov3 for this as a reference. I would like to know if I will be able to run this openCL implementation on FPGA ? If not what changes do I need to make ?

It would be a great help if you could give me your ideas. Thanks in advance !

ganyc717 commented 5 years ago

@Thilanka97 ,no I just run it on some intel cpu and nvidia GPU.

ganyc717 commented 5 years ago

@Thilanka97 ,actually, the changes depend on your OpenCL implementation, maybe you can pass without any changes, or met kernel compile error. You can rewrite the kernel code as well.

Thilanka97 commented 5 years ago

@ganyc717 Thank you so much for your reply. I will try to pass the existing code first and see.

Thilanka97 commented 5 years ago

@ganyc717 I tried compiling one of the kernel codes on AOC it creats the .aocx file without any errors. Also I have the make file I got after building the project. What should I run next ? I mean There is no one .cpp host file (there are many). How should I run this on my device ? Please guide me.

I would be so grateful if you could help me with this.

Thanks in advance!

Thilanka97 commented 5 years ago

@ganyc717 I mean since there is no main.cpp, how are we gonna run the host code ? Please guide me.

Thanks in advance!

ganyc717 commented 5 years ago

The main function is in example/darknet.cpp, you can refer to the darknet usage