forked from jan/opencl_fdtd
		
	Revert "Add restrict keyword to pointers (not sharing the same memory for multiple fields)"
This reverts commit 60b70bb332d29fb5a2aecb801517be659cf4daf9. It appears to have minimal performance impact, and fails to compile on nvidia cards.
This commit is contained in:
		
							parent
							
								
									fe2f4f4510
								
							
						
					
					
						commit
						d5fd78d493
					
				@ -170,7 +170,7 @@ class Simulation(object):
 | 
				
			|||||||
        ctype = type_to_C(self.arg_type)
 | 
					        ctype = type_to_C(self.arg_type)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        def ptr(arg: str) -> str:
 | 
					        def ptr(arg: str) -> str:
 | 
				
			||||||
            return ctype + ' * restrict ' + arg
 | 
					            return ctype + ' *' + arg
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        base_fields = OrderedDict()
 | 
					        base_fields = OrderedDict()
 | 
				
			||||||
        base_fields[ptr('E')] = self.E
 | 
					        base_fields[ptr('E')] = self.E
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user