Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@kaushikcfd
Copy link
Collaborator

No description provided.

@kaushikcfd
Copy link
Collaborator Author

kaushikcfd commented Oct 13, 2025

Before this patch LoopKernel.__str__() would be computed as:

---------------------------------------------------------------------------                                                                                                                   
KERNEL: loopy_kernel                                                                                                                                                                          
---------------------------------------------------------------------------                                                                                                                   
ARGUMENTS:                                                                                                                                                                                    
out: type: <auto/runtime>, shape: (10), dim_tags: (N0:stride:1) out aspace: global                                                                                                            
---------------------------------------------------------------------------                                                                                                                   
DOMAINS:                                                                                                                                                                                      
{ [i] : 0 <= i <= 9 }                                                                                                                                                                         
---------------------------------------------------------------------------                                                                                                                   
INAME TAGS:                                                                                                                                                                                   
i: None                                                                                                                                                                                       
---------------------------------------------------------------------------                                                                                                                   
SUBSTITUTION RULES:                                                                                                                                                                           
SubstitutionRule(name='a', arguments=('i',), expression=Product((2, Variable('i'))))                                                                                                          
---------------------------------------------------------------------------                                                                                                                   
INSTRUCTIONS:                                                                                                                                                                                 
for i                                                                                                                                                                                         
  out[i] = a(i)**2  {id=insn}                                                                                                                                                                 
end i                                                                                                                                                                                         
---------------------------------------------------------------------------  

After this patch, it will be evaluated as:

---------------------------------------------------------------------------
KERNEL: loopy_kernel
---------------------------------------------------------------------------
ARGUMENTS:
out: type: <auto/runtime>, shape: (10), dim_tags: (N0:stride:1) out aspace: global
---------------------------------------------------------------------------
DOMAINS:
{ [i] : 0 <= i <= 9 }
---------------------------------------------------------------------------
INAME TAGS:
i: None
---------------------------------------------------------------------------
SUBSTITUTION RULES:
a(i) := 2*i
---------------------------------------------------------------------------
INSTRUCTIONS:
for i
  out[i] = a(i)**2  {id=insn}
end i
---------------------------------------------------------------------------

@inducer inducer merged commit bee7cd8 into inducer:main Oct 13, 2025
17 checks passed
@inducer
Copy link
Owner

inducer commented Oct 13, 2025

Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants