Beispiel #1
0
    def atomic_xor(self, other):
        """Return the new expression of computing atomic xor between self and a given operand.

        Args:
            other (Any): Given operand.

        Returns:
            :class:`~taichi.lang.expr.Expr`: The computing expression of atomic xor."""
        _taichi_skip_traceback = 1
        return ti.atomic_xor(self, other)
Beispiel #2
0
 def atomic_xor(self, other):
     import taichi as ti
     return ti.atomic_xor(self, other)
 def func():
     a = 1023
     for i in range(10):
         ti.atomic_xor(a, 2**i)
     A[None] = a
Beispiel #4
0
 def func():
     c[None] = 1023
     for i in range(10):
         # this is an expr with side effect, make sure it's not optimized out.
         ti.atomic_xor(c[None], 2**i)
Beispiel #5
0
 def atomic_xor(self, other):
     import taichi as ti
     _taichi_skip_traceback = 1
     return ti.atomic_xor(self, other)
Beispiel #6
0
 def atomic_xor(self, other):
     _taichi_skip_traceback = 1
     return ti.atomic_xor(self, other)