FPGA Acceleration:Git

Mandelbrot ,Git资源整合:

1.Linux source code

The linux source for this project includes enabling CMA forOpenCL, Display drivers, patches for the Atlas board, and support for the GPIO buttons. The device tree source is also included in this branch.

git:https://github.com/altcrauer/linux.git

branch: socfpga-3.10-ltsi_de0_nano_with_tft

git web link:https://github.com/altcrauer/linux/tree/socfpga-3.10-ltsi_de0_nano_with_tft

Build commands

export ARCH=arm

export CROSS_COMPILE=arm-linux-gnueabihf-

make socfpga_defconfig

make zImage

make socfpga_de0_nano.dts

2.Buildroot source code

The Buildroot source includes a prelimary SDL2 patch that theOpenCLdemo needed, perl, and X.

git:https://github.com/altcrauer/buildroot.git

branch: 2015_08_with_sdl2_with_xorg

git web link:https://github.com/altcrauer/opencl_soc_bsp/tree/de0_nano_with_display

Build commands

make altera_soc_defconfig

make

3.OpenCLBSP source / FPGA Project

The includes theOpenCLBSP used for this project. This is basically an FPGA project that is used base for theOpenCLcompilation.

git:https://github.com/altcrauer/opencl_soc_bsp.git

branch: de0_nano_with_display

git web link:https://github.com/altcrauer/opencl_soc_bsp/tree/de0_nano_with_display

Build commands

#To build with the BSP, you have to set AOCL_BOARD_PACKAGE_ROOT

export AOCL_BOARD_PACKAGE_ROOT=/path/to/bsp

#you should see the de0 listed with this command

aoc --list-boards

#if you recompile linux, you need to compile the driver in opencl_soc_bsp/c5soc/driver

make KDIR=path/to/linux/src

4.Mandelbrot application source code

This git repository includes theOpenCLkernel code and the application code. The source code is based Mandelbrot example from the AlteraOpenCLdesign examples page.

git:https://github.com/altcrauer/mandelbrot_demo.git

branch: master

git web link:https://github.com/altcrauer/mandelbrot_demo.git

Build commands

#set this env var

export AOCL_BOARD_PACKAGE_ROOT=/path/to/bsp

#build aocx with this command

aoc device/mandelbrot_kernel.cl --board de0_nano_sharedonly_with_spi_tft

#build host code

make -f Makefile.arm

Platform :

Atlas-SoC Development Platform

Reference :

https://rocketboards.org/foswiki/view/Projects/OpenCLMandelbrotDemoOnAtlasSoC

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,556评论 2 45
  • 没有空整理太多,也怕拖延太晚影响休息,那么,该什么时候写,就什么时候下笔吧,不一定要在睡前,对吗? 今天考了第一科...
    倾葶阅读 623评论 0 0
  • 可能是我对春天有偏见吧,总之觉得特别丧。乔之在心中如是地想着。 “这雨他妈的还停不停了?!老娘衣服又没干!!”乔之...
    一颗好看的纽扣阅读 189评论 0 0
  • 《道德经》第29章:将欲取天下而为之。吾见其不得已。天下神器、不可为也。为者败之。执者失之。故物或行或随。或呴或吹...
    奔跑的石头阅读 5,799评论 0 15
  • 第三方支付是一个很大的范畴,要认识第三方支付或者描述清楚第三方支付的涵义是不容易的。分类是一个很好的视角,就像七巧...
    繁华小宇宙阅读 1,579评论 0 3