新人菜鸟 求助
发表于 : 2015-10-28 11:44
最近因为要做作业,所以刚开始使用UBUNTU,老师让跑一个程序但是要跑几百次,所以我想些个脚本帮我跑。。。可是因为自己太菜了,所以一点头绪也没有,请各位大神帮忙,跪谢
1首先
打开terminal, 运行:
$ cd ../../opt/altera/15.0/hld
$ source init_opencl_15.0_de5net.sh
$ cd board/terasic/tests/IT302-cho-01eaa07/src/blowfish_opencl_fpga/
$ aoc -v blowfish_opencl_fpga.cl --report
2一分钟后关闭terminal (因为只需要第一步的结果,所以第一步在一分钟内就能跑完)
3进入文件夹opt/altera/15.0/hld/board/terasic/tests/IT302-cho-01eaa07/src/blowfish_opencl_fpga/blowfish_data/KEYSIZE
4新建文件夹”pragma unroll x"(x是当前loop的次数)
5进入文件夹/altera/15.0/hld/board/terasic/tests/IT302-cho-01eaa07/src/blowfish_opencl_fpga/blowfish_opencl_fpga
6移动四个文件“area.rpt”,“blowfish_opencl_fpga.log”“blowfish_main.attrib”“blowfish_main.area”去到刚才第四步新建的文件夹”pragma unroll x“
7进入文件夹/altera/15.0/hld/board/terasic/tests/IT302-cho-01eaa07/src/blowfish_opencl_fpga/, 修改kernel文件(我只知道我电脑里的编辑器有 gedit 和 vim)blowfish_opencl_fpga.cl
将第42行代码 #pragma unroll x ”(x是当前loop的次数) 改为 #pragma unroll x+1 ”(x是当前loop的次数)
退出编辑器
最后所有步骤loop 200遍
拜托了各位大神
1首先
打开terminal, 运行:
$ cd ../../opt/altera/15.0/hld
$ source init_opencl_15.0_de5net.sh
$ cd board/terasic/tests/IT302-cho-01eaa07/src/blowfish_opencl_fpga/
$ aoc -v blowfish_opencl_fpga.cl --report
2一分钟后关闭terminal (因为只需要第一步的结果,所以第一步在一分钟内就能跑完)
3进入文件夹opt/altera/15.0/hld/board/terasic/tests/IT302-cho-01eaa07/src/blowfish_opencl_fpga/blowfish_data/KEYSIZE
4新建文件夹”pragma unroll x"(x是当前loop的次数)
5进入文件夹/altera/15.0/hld/board/terasic/tests/IT302-cho-01eaa07/src/blowfish_opencl_fpga/blowfish_opencl_fpga
6移动四个文件“area.rpt”,“blowfish_opencl_fpga.log”“blowfish_main.attrib”“blowfish_main.area”去到刚才第四步新建的文件夹”pragma unroll x“
7进入文件夹/altera/15.0/hld/board/terasic/tests/IT302-cho-01eaa07/src/blowfish_opencl_fpga/, 修改kernel文件(我只知道我电脑里的编辑器有 gedit 和 vim)blowfish_opencl_fpga.cl
将第42行代码 #pragma unroll x ”(x是当前loop的次数) 改为 #pragma unroll x+1 ”(x是当前loop的次数)
退出编辑器
最后所有步骤loop 200遍
拜托了各位大神