美文网首页
FPGA Acceleration:Git

FPGA Acceleration:Git

作者: everseeker | 来源:发表于2016-12-10 17:25 被阅读0次

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

相关文章

网友评论

      本文标题:FPGA Acceleration:Git

      本文链接:https://www.haomeiwen.com/subject/hjlumttx.html