User Tools

Site Tools


Sidebar

<menu col=1,align=center>

<item>Documentation||[[lara:documentation]]|{{:lara:img:dictionary.png?25}}</item>
<item>Downloads||[[lara:downloads]]| {{:lara:img:projects.png?25}}</item>
<item>Tutorials||[[lara:tutorial]]|{{:lara:img:books.png?25}}</item>
<item>Other uses of LARA||[[lara:other]]|{{:lara:img:globe.png?25}}</item>
<item>About Us||[[https://sites.google.com/site/specsfeup/]]| {{:lara:img:specslogo.png?25}}</item>
<item>Projects||[[lara:usage]]| {{:lara:img:math.png?25}}</item>

</menu>

/* They are empty */ /* <item>FAQ||faq|</item> */ /* <item>Dev. Team||team| </item> */ /* <item>About LARA||about|</item> */

lara:dynamic:examples

Dynamic LARA Examples

<sxh lara; first-line: 70; highlight: [75,78]; toolbar: false; > aspectdef SpecializeKernel

input lowT, highT end

call spCall: PrepareSpecialize('kernel','size');
select fCall{'kernel'}.arg{'size'} end
apply dynamic 

replace

	call spOut : Specialize($call, $arg.name, $arg.runtimeValue);
	call UnrollInnermostLoops(spOut.$func, $arg.runtimeValue); 
	call AddVersion(spCall, spOut.$func, $arg.runtimeValue);  
end
condition
	$arg.runtimeValue >= lowT && 
	$arg.runtimeValue <= highT
end

end

</sxh>

lara/dynamic/examples.txt · Last modified: 2019/09/22 15:47 (external edit)