User Tools

Site Tools


schedule_code_generator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
schedule_code_generator [2017/04/19 13:31]
127.0.0.1 external edit
schedule_code_generator [2020/06/10 07:34] (current)
lnarmour fix minor typos
Line 23: Line 23:
 The following commands will generate the scheduled code based on the given target mapping. The following commands will generate the scheduled code based on the given target mapping.
  
-<sxh cs; gutter: false>+<sxh cs; gutter:true>
 # Load an alphabets program and store as 'program' # Load an alphabets program and store as 'program'
 program = ReadAlphabets("../../alphabets/matrix_product.ab"); program = ReadAlphabets("../../alphabets/matrix_product.ab");
Line 34: Line 34:
 setSpaceTimeMap(program, system, "temp_C",  "(i,j,k->i,j,k)"); setSpaceTimeMap(program, system, "temp_C",  "(i,j,k->i,j,k)");
 setSpaceTimeMap(program, system, "C",  "(i,j,k->i,j,k)"); setSpaceTimeMap(program, system, "C",  "(i,j,k->i,j,k)");
-Ser first and second dimension to be parallel (or generate sequential code by no parallel specification) +Set first and second dimension to be parallel (or generate sequential code by no parallel specification) 
-setParallel(prog, system, "", "0,1");+setParallel(program, system, "", "0,1");
  
  
Line 42: Line 42:
  
 # Set the memory map # Set the memory map
-setMemoryMap(program, system, "temp_C", "matrix_product",  "(i,j,k->i,j)");+setMemoryMap(program, system, "temp_C", "inner_product",  "(i,j,k->i,j)");
  
-</sxh> 
-<sxh cs; gutter:true> 
 # Generate scheduled code according to the target mapping # Generate scheduled code according to the target mapping
 generateScheduledCode(program, system, outDir); generateScheduledCode(program, system, outDir);
schedule_code_generator.1492630303.txt.gz · Last modified: 2017/04/19 13:31 by 127.0.0.1