Parboil Instructions for Use

write first

Parboil is a multi-platform benchmark. The official website is here . This blog post briefly describes how to compile the benchmark.

download

From the above official website, you need to download the benchmark source code, driver, and datasets, and then decompress the driver file to get a parboil folder, put the downloaded benchmark source code folder, datasets folder into this folder, and name them respectively For benchmarks and datasets, the file structure is as shown:

file structure

It is not possible to use parboil's command without naming and preventing it by this name. As shown in the figure, you can see three READMEs. If you want to operate in depth, you need to read them all, especially the third buildsystem, which talks about the compiled file structure.

Modify the compiled file

Here we take cuda as an example to explain how to modify the compiled file as needed (for details, please refer to README.buildsystem)

  1. The main operation here is in the ./parboil/common directory. First enter the directory, there are three makefile.conf templates in it, select the one of cuda, after opening, set the path of cuda according to your local directory.

  2. Enter the plateform directory, modify cuda.default.mk, and modify the PLATFORM_CUDACFLAGS in it to the compilation options you need. For example, here we modify it to PLATFORM_CUDACFLAGS=-O1 -Xptxas -v -arch sm_61

  3. Then go back to the parboil root directory, open the terminal, and enter ./parboil list to view the benchmarks you have as shown in the figure:

    benchmark content

    Here you can enter ./parboil help to view the help for each command

  4. Then we want to compile one of the apps, just execute ./parboil compile spmv cuda where spmv is the app name and cuda is the platform name. Generally, you can compile the desired app in this way, but sometimes you need to modify the compiled file of the app, you need to go to benchmarks/spmv/src/cuda to modify the makefile. After modification, it can generally be compiled successfully

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325987642&siteId=291194637