Address of SymPy-Function `address_of`
Compare changes
- Stephan Seitz authored
pystencils_tests/test_address_of.py
0 → 100644
+ 58
− 0
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.