Pārlūkot izejas kodu

document MIC/SCC application porting

Samuel Thibault 12 gadi atpakaļ
vecāks
revīzija
12169f32ca
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10 0
      doc/chapters/mic-scc-support.texi

+ 10 - 0
doc/chapters/mic-scc-support.texi

@@ -29,6 +29,16 @@ Defines the path to the MIC cross-compiler. The current default is @code{/usr/li
 Defines the path to the COI library. The current default is @code{/opt/intel/mic/coi}
 @end table
 
+@section Porting applications to MIC/SCC
+
+The simplest way to port an application to MIC/SCC is to add the
+@code{cpu_funcs_name} field in the codelet, to provide StarPU with the function
+name of the CPU implementation. StarPU will thus simply use the existing CPU
+implementation (cross-rebuilt in the MIC case).
+
+@code{starpu_initialize} also has to be used instead of @code{starpu_init}, so
+as to pass @code{argc} and @code{argv}.
+
 @section Launching programs
 
 SCC programs are started through RCCE