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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • afinalAfinal是一個(gè)android的ioc,orm框架 https://github.com/yangf...
    passiontim閱讀 15,873評(píng)論 2 45
  • 沒(méi)有空整理太多,也怕拖延太晚影響休息,那么,該什么時(shí)候?qū)懀褪裁磿r(shí)候下筆吧,不一定要在睡前,對(duì)嗎? 今天考了第一科...
    傾葶閱讀 724評(píng)論 0 0
  • 可能是我對(duì)春天有偏見(jiàn)吧,總之覺(jué)得特別喪。喬之在心中如是地想著。 “這雨他媽的還停不停了?!老娘衣服又沒(méi)干??!”喬之...
    一顆好看的紐扣閱讀 205評(píng)論 0 0
  • 《道德經(jīng)》第29章:將欲取天下而為之。吾見(jiàn)其不得已。天下神器、不可為也。為者敗之。執(zhí)者失之。故物或行或隨?;騾榛虼?..
    奔跑的石頭閱讀 5,842評(píng)論 0 15
  • 第三方支付是一個(gè)很大的范疇,要認(rèn)識(shí)第三方支付或者描述清楚第三方支付的涵義是不容易的。分類(lèi)是一個(gè)很好的視角,就像七巧...
    繁華小宇宙閱讀 1,609評(píng)論 0 3

友情鏈接更多精彩內(nèi)容