Address of SymPy-Function `address_of`
Files
3+ 8
− 3
@@ -5,7 +5,11 @@ from typing import Set
@@ -15,8 +19,6 @@ except ImportError:
@@ -276,6 +278,9 @@ class CustomSympyPrinter(CCodePrinter):
Some CUDA functions (like atomic_add
) require pointers to data. This PR adds a SymPy function representing the C address-of operator (&
).
I tried to trigger cse to show a problem related to this function (dummy variables were not typed correctly as pointer). I'll include the fix in a follow-up PR.