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