mirror of
				https://github.com/stevenrobertson/cuburn.git
				synced 2025-11-03 18:00:55 -05:00 
			
		
		
		
	Added property ctx.warps_per_cta
This commit is contained in:
		@ -50,6 +50,10 @@ class LaunchContext(object):
 | 
				
			|||||||
    def threads_per_cta(self):
 | 
					    def threads_per_cta(self):
 | 
				
			||||||
        return self.block[0] * self.block[1] * self.block[2]
 | 
					        return self.block[0] * self.block[1] * self.block[2]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @property
 | 
				
			||||||
 | 
					    def warps_per_cta(self):
 | 
				
			||||||
 | 
					        return self.threads_per_cta / 32
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def compile(self, verbose=False, **kwargs):
 | 
					    def compile(self, verbose=False, **kwargs):
 | 
				
			||||||
        kwargs['ctx'] = self
 | 
					        kwargs['ctx'] = self
 | 
				
			||||||
        self.ptx = PTXModule(self.entry_types, kwargs, self.build_tests)
 | 
					        self.ptx = PTXModule(self.entry_types, kwargs, self.build_tests)
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user