|
@@ -30,14 +30,14 @@ The Simple Live CPU interface (SLiC) is Maxeler’s application programming inte
|
|
|
|
|
|
\section PortingApplicationsToFPGA Porting Applications to FPGA
|
|
\section PortingApplicationsToFPGA Porting Applications to FPGA
|
|
|
|
|
|
-The simplest way to port an application to FPGA is to set the field starpu_codelet::fpga_funcs_name, to provide StarPU with the function
|
|
|
|
-name of the FPGA implementation, so for instance:
|
|
|
|
|
|
+The way to port an application to FPGA is to set the field
|
|
|
|
+starpu_codelet::fpga_funcs, to provide StarPU with the function
|
|
|
|
+for FPGA implementation, so for instance:
|
|
|
|
|
|
\verbatim
|
|
\verbatim
|
|
struct starpu_codelet cl =
|
|
struct starpu_codelet cl =
|
|
{
|
|
{
|
|
.fpga_funcs = {myfunc},
|
|
.fpga_funcs = {myfunc},
|
|
- .fpga_funcs_name = {"myfunc"},
|
|
|
|
.nbuffers = 1,
|
|
.nbuffers = 1,
|
|
}
|
|
}
|
|
\endverbatim
|
|
\endverbatim
|
|
@@ -167,7 +167,6 @@ void fpga_add(void *buffers[], void *cl_arg)
|
|
.cpu_funcs = {cpu_func},
|
|
.cpu_funcs = {cpu_func},
|
|
.cpu_funcs_name = {"cpu_func"},
|
|
.cpu_funcs_name = {"cpu_func"},
|
|
.fpga_funcs = {fpga_add},
|
|
.fpga_funcs = {fpga_add},
|
|
- .fpga_funcs_name={"fpga_add"},
|
|
|
|
.nbuffers = 3,
|
|
.nbuffers = 3,
|
|
.modes = {STARPU_R, STARPU_R, STARPU_W}
|
|
.modes = {STARPU_R, STARPU_R, STARPU_W}
|
|
};
|
|
};
|